function updateSelf() { try { var query = "backend.php?op=pluginhandler&plugin=updater&method=updateSelf"; if (dijit.byId("updateSelfDlg")) dijit.byId("updateSelfDlg").destroyRecursive(); var dialog = new dijit.Dialog({ id: "updateSelfDlg", title: __("Update Tiny Tiny RSS"), style: "width: 600px", closable: false, performUpdate: function(step) { dijit.byId("self_update_start_btn").attr("disabled", true); dijit.byId("self_update_stop_btn").attr("disabled", true); notify_progress("Loading, please wait...", true); new Ajax.Request("backend.php", { parameters: "?op=pluginhandler&plugin=updater&method=performUpdate&step=" + step + "¶ms=" + param_escape(JSON.stringify(dialog.attr("update-params"))), onComplete: function(transport) { try { rv = JSON.parse(transport.responseText); if (rv) { notify(''); rv['log'].each(function(line) { $("self_update_log").innerHTML += "