fix invalid debug-level "warning", has to be "warn"

This commit is contained in:
Ralf Becker 2014-01-21 14:39:51 +00:00
parent dbb6adf806
commit 3a140463e8
3 changed files with 39 additions and 39 deletions

View File

@ -794,7 +794,7 @@ var et2_widget = Class.extend(
if(warn_if_deferred) if(warn_if_deferred)
{ {
// Might not be a problem, but if you need the widget to be really loaded, it could be // Might not be a problem, but if you need the widget to be really loaded, it could be
egw.debug("warning", "Loading was deferred for widget %o, but creator is not checking. Pass a list to loadingFinished()."); egw.debug("warn", "Loading was deferred for widget %o, but creator is not checking. Pass a list to loadingFinished().", this);
} }
// Widget is waiting. Add to the list // Widget is waiting. Add to the list
promises.push(result); promises.push(result);

View File

@ -458,7 +458,7 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
_needsDiffWidget: function(columnName, value) { _needsDiffWidget: function(columnName, value) {
if(typeof value !== "string") if(typeof value !== "string")
{ {
this.egw().debug("warning", "Crazy diff value", value); this.egw().debug("warn", "Crazy diff value", value);
return false; return false;
} }
return columnName == 'note' || columnName == 'description' || (value && (value.length > 50 || value.match(/\n/g))); return columnName == 'note' || columnName == 'description' || (value && (value.length > 50 || value.match(/\n/g)));

View File

@ -563,7 +563,7 @@ var et2_selectbox = et2_inputWidget.extend(
{ {
if(jQuery("input[value='"+_value+"']", this.multiOptions).prop("checked", true).length == 0) if(jQuery("input[value='"+_value+"']", this.multiOptions).prop("checked", true).length == 0)
{ {
this.egw().debug("warning", "Tried to set value that isn't an option", this, _value); this.egw().debug("warn", "Tried to set value that isn't an option", this, _value);
} }
} }