Make sure to initialize the options UI, in case something goes wrong let the user change his settings.
This commit is contained in:
parent
726335775c
commit
5452d7f46b
@ -3096,6 +3096,7 @@
|
||||
$.onLoad(qr.sys);
|
||||
return;
|
||||
}
|
||||
$.onLoad(options.init);
|
||||
$.on(window, 'message', Main.message);
|
||||
now = Date.now();
|
||||
if (conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * HOUR) {
|
||||
@ -3195,8 +3196,7 @@
|
||||
alert(err);
|
||||
}
|
||||
}
|
||||
$.on($('form[name=delform]'), 'DOMNodeInserted', Main.node);
|
||||
return options.init();
|
||||
return $.on($('form[name=delform]'), 'DOMNodeInserted', Main.node);
|
||||
},
|
||||
message: function(e) {
|
||||
var data, origin;
|
||||
|
||||
@ -2398,6 +2398,8 @@ Main =
|
||||
$.onLoad qr.sys
|
||||
return
|
||||
|
||||
$.onLoad options.init
|
||||
|
||||
$.on window, 'message', Main.message
|
||||
|
||||
now = Date.now()
|
||||
@ -2550,7 +2552,6 @@ Main =
|
||||
catch err
|
||||
alert err
|
||||
$.on $('form[name=delform]'), 'DOMNodeInserted', Main.node
|
||||
options.init()
|
||||
|
||||
message: (e) ->
|
||||
{origin, data} = e
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user