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);
|
$.onLoad(qr.sys);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$.onLoad(options.init);
|
||||||
$.on(window, 'message', Main.message);
|
$.on(window, 'message', Main.message);
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
if (conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * HOUR) {
|
if (conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * HOUR) {
|
||||||
@ -3195,8 +3196,7 @@
|
|||||||
alert(err);
|
alert(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.on($('form[name=delform]'), 'DOMNodeInserted', Main.node);
|
return $.on($('form[name=delform]'), 'DOMNodeInserted', Main.node);
|
||||||
return options.init();
|
|
||||||
},
|
},
|
||||||
message: function(e) {
|
message: function(e) {
|
||||||
var data, origin;
|
var data, origin;
|
||||||
|
|||||||
@ -2398,6 +2398,8 @@ Main =
|
|||||||
$.onLoad qr.sys
|
$.onLoad qr.sys
|
||||||
return
|
return
|
||||||
|
|
||||||
|
$.onLoad options.init
|
||||||
|
|
||||||
$.on window, 'message', Main.message
|
$.on window, 'message', Main.message
|
||||||
|
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
@ -2550,7 +2552,6 @@ Main =
|
|||||||
catch err
|
catch err
|
||||||
alert err
|
alert err
|
||||||
$.on $('form[name=delform]'), 'DOMNodeInserted', Main.node
|
$.on $('form[name=delform]'), 'DOMNodeInserted', Main.node
|
||||||
options.init()
|
|
||||||
|
|
||||||
message: (e) ->
|
message: (e) ->
|
||||||
{origin, data} = e
|
{origin, data} = e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user