parent
a962d97bfb
commit
f940676357
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@
|
||||||
},
|
},
|
||||||
submit: function(e) {
|
submit: function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.post(this.$('textarea').val()).then(function(url) {
|
var log = this.$('textarea').val();
|
||||||
|
if (log.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.post(log).then(function(url) {
|
||||||
this.$('.loading').removeClass('loading');
|
this.$('.loading').removeClass('loading');
|
||||||
var link = this.$('.result').find('a');
|
var link = this.$('.result').find('a');
|
||||||
link.attr('href', url).text(url);
|
link.attr('href', url).text(url);
|
||||||
|
|
Loading…
Reference in a new issue