started asset helpers

This commit is contained in:
Doug Bell 2010-04-21 11:20:22 -05:00
parent 8d432c8be6
commit a9ff59d7b2
3 changed files with 56 additions and 9 deletions

View file

@ -723,18 +723,18 @@ WebGUI.Admin.Tree.prototype.formatTitle
= function ( elCell, oRecord, oColumn, orderNumber ) {
elCell.innerHTML = '<span class="hasChildren">'
+ ( oRecord.getData( 'childCount' ) > 0 ? "+" : "&nbsp;" )
+ '</span> <a href="' + appendToUrl(oRecord.getData( 'url' ), 'op=assetManager;method=manage') + '">'
+ '</span> <span class="clickable">'
+ oRecord.getData( 'title' )
+ '</a>'
+ '</span>'
;
};
WebGUI.Admin.Tree.prototype.goto
= function ( assetUrl ) {
var callback = {
success : this.dataTable.onDataReturnInitializeTable,
failure : this.dataTable.onDataReturnInitializeTable,
scope : this.dataTable,
success : this.onDataReturnInitializeTable,
failure : this.onDataReturnInitializeTable,
scope : this,
argument: this.dataTable.getState()
};
@ -748,6 +748,16 @@ WebGUI.Admin.Tree.prototype.goto
);
};
/**
* onDataReturnInitializeTable ( sRequest, oResponse, oPayload )
* Initialize the table with a new response from the server
*/
WebGUI.Admin.Tree.prototype.onDataReturnInitializeTable
= function ( sRequest, oResponse, oPayload ) {
this.dataTable.onDataReturnInitializeTable.call( this.dataTable, sRequest, oResponse, oPayload );
};
/**
* removeHighlightFromRow ( child )
* Remove the highlight from a row by removing the "highlight" class.