location input bar now disabled while searching

This commit is contained in:
Doug Bell 2010-08-25 16:33:21 -05:00
parent 8472cb99a2
commit 95f51b61ce
2 changed files with 17 additions and 1 deletions

View file

@ -5,6 +5,11 @@
html,body { margin: 0; padding: 0; height: 100% }
input.disabled {
font-style: italic;
color: #555;
}
#wrapper {
position: relative;
margin-left: 165px; /* move out of the adminbar's way */
@ -107,7 +112,8 @@ html,body { margin: 0; padding: 0; height: 100% }
width: 99%;
height: 90%;
border: none;
font: 14px Verdana, sans-serif;
font-size: 14px;
font-family: Verdana, sans-serif;
}
#locationBar #locationTitle {

View file

@ -1057,13 +1057,23 @@ WebGUI.Admin.LocationBar.prototype.goHome
*/
WebGUI.Admin.LocationBar.prototype.toggleSearchDialog
= function ( ) {
var input = document.getElementById( 'locationInput' );
if ( this.searchDialog == true ) {
this.hideSearchDialog();
this.searchDialog = false;
input.value = this.savedLocationInput;
this.savedLocationInput = "";
input.readonly = false;
YAHOO.util.Dom.removeClass( input, 'disabled' );
}
else {
this.showSearchDialog();
this.searchDialog = true;
this.savedLocationInput = input.value;
input.value = "";
this.updateLocationBarQuery();
input.readonly = true;
YAHOO.util.Dom.addClass( input, 'disabled' );
}
};