missed some files in my checkin
This commit is contained in:
parent
4cfafd7c23
commit
ac9d8cf405
2 changed files with 117 additions and 47 deletions
|
|
@ -15,17 +15,6 @@ a:hover {
|
||||||
color: purple;
|
color: purple;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Page stats **/
|
|
||||||
#pageStats {
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pageLinks {
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Crumbtrail **/
|
/** Crumbtrail **/
|
||||||
#crumbtrail ol {
|
#crumbtrail ol {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
@ -74,51 +63,32 @@ a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Asset Manager table **/
|
/** Asset Manager table **/
|
||||||
.assetManager {
|
|
||||||
clear: both;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.assetManager th {
|
|
||||||
border: solid #666;
|
|
||||||
border-width: 0 1px 2px 0;
|
|
||||||
background-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.assetManager th, .assetManager td {
|
|
||||||
padding: 0 0.8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#assetManager th, #assetManager td, .assetManager {
|
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.assetManager .center, .assetManager th {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.assetManager .right {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hasChildren {
|
.hasChildren {
|
||||||
font-family: "Courier New", monospace;
|
font-family: "Courier New", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.assetManager .rank {
|
tr.highlight td {
|
||||||
text-align: right;
|
background-color: #FED;
|
||||||
}
|
}
|
||||||
|
|
||||||
.assetManager a:link, .assetManager a:visited, .assetManager a:active, .assetManager a:hover {
|
#dataTableContainer {
|
||||||
font-size: 8pt;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.assetManager tr.alt td {
|
#dataTableContainer td, #dataTableContainer td a:link,
|
||||||
background-color: #ddd;
|
#dataTableContainer td a:visited, #dataTableContainer td a:hover,
|
||||||
|
#dataTableContainer td a:active {
|
||||||
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.assetManager tr.highlight td {
|
#dataTableContainer table {
|
||||||
background-color: #CCF;
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pagination {
|
||||||
|
clear: both;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Actions **/
|
/** Actions **/
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ if ( typeof WebGUI.AssetManager == "undefined" ) {
|
||||||
WebGUI.AssetManager = {};
|
WebGUI.AssetManager = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The extras folder
|
||||||
|
WebGUI.AssetManager.extrasUrl = '/extras/';
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------
|
/*---------------------------------------------------------------------------
|
||||||
WebGUI.AssetManager.addHighlightToRow ( child )
|
WebGUI.AssetManager.addHighlightToRow ( child )
|
||||||
|
|
@ -40,6 +42,106 @@ WebGUI.AssetManager.findRow
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatActions ( )
|
||||||
|
Format the Edit and More links for the row
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatActions
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
elCell.innerHTML
|
||||||
|
= '<a href="' + oRecord.getData( 'url' ) + '?func=edit">Edit</a>'
|
||||||
|
+ ' | More '
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatAssetIdCheckbox ( )
|
||||||
|
Format the checkbox for the asset ID.
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatAssetIdCheckbox
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
elCell.innerHTML = '<input type="checkbox" name="assetId" value="' + oRecord.getData("assetId") + '"'
|
||||||
|
+ 'onchange="WebGUI.AssetManager.toggleHighlightForRow( this )" />';
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatAssetSize ( )
|
||||||
|
Format the asset class name
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatAssetSize
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
elCell.innerHTML = oRecord.getData( "assetSize" );
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatClassName ( )
|
||||||
|
Format the asset class name
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatClassName
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
elCell.innerHTML = '<img src="' + oRecord.getData( 'icon' ) + '" /> '
|
||||||
|
+ oRecord.getData( "className" );
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatLockedBy ( )
|
||||||
|
Format the asset class name
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatLockedBy
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
var extras = WebGUI.AssetManager.extrasUrl;
|
||||||
|
elCell.innerHTML
|
||||||
|
= oRecord.getData( 'lockedBy' )
|
||||||
|
? '<a href="' + oRecord.getData( 'url' ) + '?func=manageRevisions">'
|
||||||
|
+ '<img src="' + extras + '/assetManager/locked.gif" alt="locked by ' + oRecord.getData( 'lockedBy' ) + '" '
|
||||||
|
+ 'title="locked by ' + oRecord.getData( 'lockedBy' ) + '" border="0" />'
|
||||||
|
+ '</a>'
|
||||||
|
: '<a href="' + oRecord.getData( 'url' ) + '?func=manageRevisions">'
|
||||||
|
+ '<img src="' + extras + '/assetManager/unlocked.gif" alt="unlocked" '
|
||||||
|
+ 'title="unlocked" border="0" />'
|
||||||
|
+ '</a>'
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatRank ( )
|
||||||
|
Format the input for the rank box
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatRank
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
var rank = oRecord.getData("lineage").match(/[1-9][0-9]{0,5}$/);
|
||||||
|
elCell.innerHTML = '<input type="text" name="' + oRecord.getData("assetId") + '"_rank" '
|
||||||
|
+ 'value="' + rank + '" size="3" '
|
||||||
|
+ 'onchange="WebGUI.AssetManager.selectRow( this )" />';
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatRevisionDate ( )
|
||||||
|
Format the asset class name
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatRevisionDate
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
var revisionDate = new Date( oRecord.getData( "revisionDate" ) * 1000 );
|
||||||
|
elCell.innerHTML = revisionDate.getFullYear() + '-' + ( revisionDate.getMonth() + 1 )
|
||||||
|
+ '-' + revisionDate.getDate() + ' ' + ( revisionDate.getHours() )
|
||||||
|
+ ':' + revisionDate.getMinutes()
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------
|
||||||
|
WebGUI.AssetManager.formatTitle ( )
|
||||||
|
Format the link for the title
|
||||||
|
*/
|
||||||
|
WebGUI.AssetManager.formatTitle
|
||||||
|
= function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||||
|
elCell.innerHTML = '<span class="hasChildren">'
|
||||||
|
+ ( oRecord.getData( 'childCount' ) > 0 ? "+" : " " )
|
||||||
|
+ '</span> <a href="' + oRecord.getData( 'url' ) + '?op=assetManager;method=manage">'
|
||||||
|
+ oRecord.getData( 'title' )
|
||||||
|
+ '</a>'
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------
|
/*---------------------------------------------------------------------------
|
||||||
WebGUI.AssetManager.hideMoreMenu ( event, element )
|
WebGUI.AssetManager.hideMoreMenu ( event, element )
|
||||||
Hide the more menu located inside element after a short delay.
|
Hide the more menu located inside element after a short delay.
|
||||||
|
|
@ -61,8 +163,6 @@ WebGUI.AssetManager.initManager
|
||||||
|
|
||||||
WebGUI.AssetManager.initMoreMenus();
|
WebGUI.AssetManager.initMoreMenus();
|
||||||
|
|
||||||
// Start the data source
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue