Make sure to initialize the options UI, in case something goes wrong let the user change his settings.

This commit is contained in:
Nicolas Stepien 2012-01-04 16:07:13 +01:00
parent 726335775c
commit 5452d7f46b
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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