A few debug logging fixes

This commit is contained in:
Dan Stillman 2009-08-10 17:37:35 +00:00
parent 5f9e39f959
commit cf93417ec9
2 changed files with 8 additions and 8 deletions

View File

@ -29,8 +29,8 @@ var _io = {};
var Zotero_Preferences = {
onClose: function () {
Zotero_Preferences.DebugOutput.onClose();
onUnload: function () {
Zotero_Preferences.Debug_Output.onUnload();
}
}
@ -1268,7 +1268,7 @@ Zotero_Preferences.Debug_Output = {
document.getElementById('debug-output-submit').disabled = true;
document.getElementById('debug-output-submit-progress').hidden = false;
var url = "http://www.zotero.org/utils/dev/repo/report?debug=1";
var url = "http://www.zotero.org/repo/report?debug=1";
var output = Zotero.Debug.get();
var uploadCallback = function (xmlhttp) {
@ -1407,10 +1407,11 @@ Zotero_Preferences.Debug_Output = {
updateLines: function () {
var enabled = Zotero.Debug.storing;
var lines = Zotero.Debug.count();
document.getElementById('debug-output-lines').value = lines;
var empty = lines == 0;
document.getElementById('debug-output-view').disabled = empty;
document.getElementById('debug-output-view').disabled = !enabled && empty;
document.getElementById('debug-output-clear').disabled = empty;
document.getElementById('debug-output-submit').disabled = empty;
},
@ -1441,7 +1442,7 @@ Zotero_Preferences.Debug_Output = {
},
onClose: function () {
onUnload: function () {
if (this._timer) {
this._timer.cancel();
}

View File

@ -37,9 +37,8 @@ To add a new preference:
in Zotero.Prefs.observe()
-->
<prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="moveToAlertPosition(); init()" onclose="Zotero_Preferences.onClose()"
windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="moveToAlertPosition(); init()" onunload="Zotero_Preferences.onUnload()"
windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="zotero-prefpane-general"
label="&zotero.preferences.prefpane.general;"