A few debug logging fixes
This commit is contained in:
parent
5f9e39f959
commit
cf93417ec9
2 changed files with 8 additions and 8 deletions
|
@ -29,8 +29,8 @@ var _io = {};
|
||||||
|
|
||||||
var Zotero_Preferences = {
|
var Zotero_Preferences = {
|
||||||
|
|
||||||
onClose: function () {
|
onUnload: function () {
|
||||||
Zotero_Preferences.DebugOutput.onClose();
|
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').disabled = true;
|
||||||
document.getElementById('debug-output-submit-progress').hidden = false;
|
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 output = Zotero.Debug.get();
|
||||||
|
|
||||||
var uploadCallback = function (xmlhttp) {
|
var uploadCallback = function (xmlhttp) {
|
||||||
|
@ -1407,10 +1407,11 @@ Zotero_Preferences.Debug_Output = {
|
||||||
|
|
||||||
|
|
||||||
updateLines: function () {
|
updateLines: function () {
|
||||||
|
var enabled = Zotero.Debug.storing;
|
||||||
var lines = Zotero.Debug.count();
|
var lines = Zotero.Debug.count();
|
||||||
document.getElementById('debug-output-lines').value = lines;
|
document.getElementById('debug-output-lines').value = lines;
|
||||||
var empty = lines == 0;
|
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-clear').disabled = empty;
|
||||||
document.getElementById('debug-output-submit').disabled = empty;
|
document.getElementById('debug-output-submit').disabled = empty;
|
||||||
},
|
},
|
||||||
|
@ -1441,7 +1442,7 @@ Zotero_Preferences.Debug_Output = {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
onClose: function () {
|
onUnload: function () {
|
||||||
if (this._timer) {
|
if (this._timer) {
|
||||||
this._timer.cancel();
|
this._timer.cancel();
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,9 +37,8 @@ To add a new preference:
|
||||||
in Zotero.Prefs.observe()
|
in Zotero.Prefs.observe()
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="moveToAlertPosition(); init()" onclose="Zotero_Preferences.onClose()"
|
<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"
|
windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
>
|
|
||||||
|
|
||||||
<prefpane id="zotero-prefpane-general"
|
<prefpane id="zotero-prefpane-general"
|
||||||
label="&zotero.preferences.prefpane.general;"
|
label="&zotero.preferences.prefpane.general;"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue