Fix Options.init when it's executed as an event callback.
This commit is contained in:
parent
fcfafa6ae3
commit
f38f8fa9e9
@ -1611,7 +1611,6 @@
|
||||
bb.append(ui8a.buffer);
|
||||
_this.url = url.createObjectURL(bb.getBlob('image/png'));
|
||||
_this.el.style.backgroundImage = "url(" + _this.url + ")";
|
||||
console.log(_this.url);
|
||||
return url.revokeObjectURL(fileUrl);
|
||||
});
|
||||
return img.src = fileUrl;
|
||||
@ -2155,12 +2154,12 @@
|
||||
textContent: '4chan X',
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(a, 'click', this.dialog);
|
||||
$.on(a, 'click', Options.dialog);
|
||||
$.replace(home.firstElementChild, a);
|
||||
}
|
||||
if (!$.get('firstrun')) {
|
||||
$.set('firstrun', true);
|
||||
return this.dialog();
|
||||
return Options.dialog();
|
||||
}
|
||||
},
|
||||
dialog: function() {
|
||||
@ -4244,7 +4243,7 @@ textarea.field {\
|
||||
.warning {\
|
||||
color: red;\
|
||||
}\
|
||||
td.replyhider {\
|
||||
.replyhider {\
|
||||
vertical-align: top;\
|
||||
}\
|
||||
\
|
||||
|
||||
@ -1319,7 +1319,6 @@ qr =
|
||||
|
||||
@url = url.createObjectURL bb.getBlob 'image/png'
|
||||
@el.style.backgroundImage = "url(#{@url})"
|
||||
console.log @url
|
||||
url.revokeObjectURL fileUrl
|
||||
|
||||
img.src = fileUrl
|
||||
@ -1770,11 +1769,11 @@ Options =
|
||||
a = $.el 'a',
|
||||
textContent: '4chan X'
|
||||
href: 'javascript:;'
|
||||
$.on a, 'click', @dialog
|
||||
$.on a, 'click', Options.dialog
|
||||
$.replace home.firstElementChild, a
|
||||
unless $.get 'firstrun'
|
||||
$.set 'firstrun', true
|
||||
@dialog()
|
||||
Options.dialog()
|
||||
|
||||
dialog: ->
|
||||
dialog = $.el 'div'
|
||||
@ -3541,7 +3540,7 @@ textarea.field {
|
||||
.warning {
|
||||
color: red;
|
||||
}
|
||||
td.replyhider {
|
||||
.replyhider {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user