remove rank from default assettable. only in tree
This commit is contained in:
parent
77916cf8d2
commit
1f3a97235b
1 changed files with 18 additions and 17 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
/**
|
/**
|
||||||
* WebGUI.Admin -- The WebGUI Admin Console
|
* WebGUI.Admin -- The WebGUI Admin Console
|
||||||
*/
|
*/
|
||||||
|
bind = function ( scope, func ) {
|
||||||
|
return function() { func.apply( scope, arguments ) }
|
||||||
|
};
|
||||||
|
|
||||||
if ( typeof WebGUI == "undefined" ) {
|
if ( typeof WebGUI == "undefined" ) {
|
||||||
WebGUI = {};
|
WebGUI = {};
|
||||||
|
|
@ -1143,56 +1146,46 @@ WebGUI.Admin.AssetTable
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var makeScopedFormatter = function ( scope, func ) {
|
|
||||||
return function() { func.apply( scope, arguments ) }
|
|
||||||
};
|
|
||||||
|
|
||||||
this.columnDefs
|
this.columnDefs
|
||||||
= [
|
= [
|
||||||
{
|
{
|
||||||
key: 'assetId',
|
key: 'assetId',
|
||||||
label: selectAllSpan.innerHTML,
|
label: selectAllSpan.innerHTML,
|
||||||
formatter: makeScopedFormatter( this, this.formatAssetIdCheckbox )
|
formatter: bind( this, this.formatAssetIdCheckbox )
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'lineage',
|
|
||||||
label: window.admin.i18n.get('Asset','rank'),
|
|
||||||
sortable: true,
|
|
||||||
formatter: makeScopedFormatter( this, this.formatRank )
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'helpers',
|
key: 'helpers',
|
||||||
label: "",
|
label: "",
|
||||||
formatter: makeScopedFormatter( this, this.formatHelpers )
|
formatter: bind( this, this.formatHelpers )
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'title',
|
key: 'title',
|
||||||
label: window.admin.i18n.get('Asset', '99'),
|
label: window.admin.i18n.get('Asset', '99'),
|
||||||
formatter: makeScopedFormatter( this, this.formatTitle ),
|
formatter: bind( this, this.formatTitle ),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'className',
|
key: 'className',
|
||||||
label: window.admin.i18n.get('Asset','type'),
|
label: window.admin.i18n.get('Asset','type'),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
formatter: makeScopedFormatter( this, this.formatClassName )
|
formatter: bind( this, this.formatClassName )
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'revisionDate',
|
key: 'revisionDate',
|
||||||
label: window.admin.i18n.get('Asset','revision date' ),
|
label: window.admin.i18n.get('Asset','revision date' ),
|
||||||
formatter: makeScopedFormatter( this, this.formatRevisionDate ),
|
formatter: bind( this, this.formatRevisionDate ),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'assetSize',
|
key: 'assetSize',
|
||||||
label: window.admin.i18n.get('Asset','size' ),
|
label: window.admin.i18n.get('Asset','size' ),
|
||||||
formatter: makeScopedFormatter( this, this.formatAssetSize ),
|
formatter: bind( this, this.formatAssetSize ),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'lockedBy',
|
key: 'lockedBy',
|
||||||
label: '<img src="' + window.getWebguiProperty('extrasURL') + '/icon/lock.png" />',
|
label: '<img src="' + window.getWebguiProperty('extrasURL') + '/icon/lock.png" />',
|
||||||
formatter: makeScopedFormatter( this, this.formatLockedBy )
|
formatter: bind( this, this.formatLockedBy )
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -1603,6 +1596,14 @@ WebGUI.Admin.Tree
|
||||||
paginatorIds : [ 'treePaginator' ]
|
paginatorIds : [ 'treePaginator' ]
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// Add Rank column for ordering
|
||||||
|
this.columnDefs.splice( 1, 0, {
|
||||||
|
key: 'lineage',
|
||||||
|
label: window.admin.i18n.get('Asset','rank'),
|
||||||
|
sortable: true,
|
||||||
|
formatter: bind( this, this.formatRank )
|
||||||
|
} );
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
};
|
};
|
||||||
YAHOO.lang.extend( WebGUI.Admin.Tree, WebGUI.Admin.AssetTable );
|
YAHOO.lang.extend( WebGUI.Admin.Tree, WebGUI.Admin.AssetTable );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue