remove old search toggle routines

This commit is contained in:
Doug Bell 2010-09-21 17:45:43 -05:00
parent e8827d77b1
commit 31d1ab06ac

View file

@ -1070,80 +1070,6 @@ WebGUI.Admin.LocationBar.prototype.goHome
window.admin.gotoAsset( this.cfg.homeUrl );
};
/**
* toggleSearchDialog ( )
* Show or hide the search dialog as necessary
*/
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' );
}
};
/**
* showSearchDialog ( )
* Show the search dialog, dimming the content behind it
*/
WebGUI.Admin.LocationBar.prototype.showSearchDialog
= function ( ) {
// Dim the content
//window.admin.dim( 'tab_content_wrapper' );
// Roll out the dialog
var searchDialog = document.getElementById( 'search' );
var height = WebGUI.Admin.getRealHeight( searchDialog );
searchDialog.style.top = -1 * height + 'px';
searchDialog.style.display = "block";
var anim = new YAHOO.util.Anim( searchDialog );
anim.duration = 0.25;
anim.method = YAHOO.util.Easing.easeOut;
anim.attributes.top = { to: 0 };
anim.animate();
};
/**
* hideSearchDialog ( )
* Hide the search dialog, undimming the content behind it
*/
WebGUI.Admin.LocationBar.prototype.hideSearchDialog
= function ( ) {
// Undim the content
//window.admin.undim( 'tab_content_wrapper' );
// Roll up the dialog
var searchDialog = document.getElementById( 'search' );
var height = WebGUI.Admin.getRealHeight( searchDialog );
searchDialog.style.display = "block";
var anim = new YAHOO.util.Anim( searchDialog );
anim.duration = 0.25;
anim.method = YAHOO.util.Easing.easeOut;
anim.attributes.top = { to: -1 * height };
var hideContent = function () {
searchDialog.style.display = "none";
anim.onComplete.unsubscribe( hideContent );
};
anim.onComplete.subscribe( hideContent, this );
anim.animate();
};
/**
* createSearchTab ( )
* Create a new search tab and clone the searchForm node into it