From: Michael M Slusarz Date: Mon, 28 Sep 2009 22:07:12 +0000 (-0600) Subject: Better naming for this function X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a63503caf3189465141a627c7a3254d24babe6ef;p=horde.git Better naming for this function --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 9ece6ae1c..33250e6f4 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -1332,7 +1332,7 @@ var DimpBase = { { $('qsearch').removeClassName('qsearchFocus'); if (!$F('qsearch_input')) { - this._setFilterText(true); + this._setQsearchText(true); } }, @@ -1356,7 +1356,7 @@ var DimpBase = { $('qsearch_close').hide(); DimpCore.DMenu.disable('qsearch_icon', true, false); if (!$('qsearch').hasClassName('qsearchFocus')) { - this._setFilterText(true); + this._setQsearchText(true); } this.resetSelected(); $('qsearch_input').show(); @@ -1368,8 +1368,8 @@ var DimpBase = { } }, - // d = (boolean) Deactivate filter input? - _setFilterText: function(d) + // d = (boolean) Deactivate quicksearch input? + _setQsearchText: function(d) { $('qsearch_input').setValue(d ? DIMP.text.search : ''); [ $('qsearch') ].invoke(d ? 'removeClassName' : 'addClassName', 'qsearchActive'); @@ -1755,7 +1755,7 @@ var DimpBase = { if (e.element().readAttribute('id') != 'qsearch_icon') { elt.addClassName('qsearchFocus'); if (!elt.hasClassName('qsearchActive')) { - this._setFilterText(false); + this._setQsearchText(false); } $('qsearch_input').focus(); } @@ -2543,7 +2543,7 @@ var DimpBase = { } } - this._setFilterText(true); + this._setQsearchText(true); /* Add popdown menus. Check for disabled compose at the same time. */ this._addMouseEvents({ id: 'button_other', type: 'otheractions' }, $('button_other'));