Oprah doesn't support event.stopImmediatePropagation.

This commit is contained in:
Nicolas Stepien 2012-07-11 23:32:42 +02:00
parent 9c59c0d6f9
commit b505dd34df
2 changed files with 18 additions and 13 deletions

View File

@ -2531,13 +2531,18 @@
Options = {
init: function() {
var a, settings, _i, _len, _ref;
_ref = [$.id('navtopr'), $.id('navbotr')];
var a, el, settings, _i, _len, _ref;
_ref = ['navtopr', 'navbotr'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
settings = _ref[_i];
a = settings.firstElementChild;
a.textContent = '4chan X Settings';
a = $.el('a', {
href: 'javascript:;',
textContent: '4chan X Settings'
});
$.on(a, 'click', Options.dialog);
el = $.id(settings).firstElementChild;
el.hidden = true;
$.before(el, a);
}
if (!$.get('firstrun')) {
if (!Favicon.el) {
@ -2547,11 +2552,8 @@
return Options.dialog();
}
},
dialog: function(e) {
dialog: function() {
var arr, back, checked, description, dialog, favicon, fileInfo, filter, hiddenNum, hiddenThreads, indicator, indicators, input, key, li, obj, overlay, sauce, time, tr, ul, _i, _len, _ref, _ref1, _ref2;
if (e != null) {
e.stopImmediatePropagation();
}
dialog = $.el('div', {
id: 'options',
className: 'reply dialog',

View File

@ -1988,18 +1988,21 @@ QR =
Options =
init: ->
for settings in [$.id('navtopr'), $.id('navbotr')]
a = settings.firstElementChild
a.textContent = '4chan X Settings'
for settings in ['navtopr', 'navbotr']
a = $.el 'a',
href: 'javascript:;'
textContent: '4chan X Settings'
$.on a, 'click', Options.dialog
el = $.id(settings).firstElementChild
el.hidden = true
$.before el, a
unless $.get 'firstrun'
# Prevent race conditions
Favicon.init() unless Favicon.el
$.set 'firstrun', true
Options.dialog()
dialog: (e) ->
e?.stopImmediatePropagation()
dialog: ->
dialog = $.el 'div'
id: 'options'
className: 'reply dialog'