use getWebguiProperty to find the extrasURL.
This commit is contained in:
parent
d533b7de8b
commit
44bc4abcdb
2 changed files with 4 additions and 18 deletions
|
|
@ -334,16 +334,6 @@ sub www_manage {
|
|||
### Do Action
|
||||
my @assetIds = $session->form->get( 'assetId' );
|
||||
|
||||
# if ( $session->form->get( 'action_update' ) ) {
|
||||
# for my $assetId ( @assetIds ) {
|
||||
# my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId );
|
||||
# next unless $asset;
|
||||
# my $rank = $session->form->get( $assetId . '_rank' );
|
||||
# next unless $rank; # There's no such thing as zero
|
||||
#
|
||||
# $asset->setRank( $rank );
|
||||
# }
|
||||
# }
|
||||
if ( $session->form->get( 'action_delete' ) ) {
|
||||
for my $assetId ( @assetIds ) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId );
|
||||
|
|
@ -407,13 +397,11 @@ sub www_manage {
|
|||
$session->style->setScript( $session->url->extras( 'yui-webgui/build/assetManager/assetManager.js' ) );
|
||||
$session->style->setScript( $session->url->extras( 'yui-webgui/build/form/form.js' ) );
|
||||
|
||||
my $extras = $session->url->extras;
|
||||
$session->style->setRawHeadTags( <<ENDHTML );
|
||||
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/2.6.0/build/logger/assets/skins/sam/logger.css">
|
||||
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/logger/logger-min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
WebGUI.AssetManager.extrasUrl = '$extras';
|
||||
<script type="text/javascript">
|
||||
YAHOO.util.Event.onDOMReady( WebGUI.AssetManager.initManager );
|
||||
</script>
|
||||
ENDHTML
|
||||
|
|
@ -442,8 +430,8 @@ ENDHTML
|
|||
### The page of assets
|
||||
$output .= q{<div>}
|
||||
. q{<form method="post" enctype="multipart/form-data">}
|
||||
. q{<input type="hidden" name="op" value="assetManager" />}
|
||||
. q{<input type="hidden" name="method" value="manage" />}
|
||||
. q{<input type="hidden" name="op" value="assetManager" />}
|
||||
. q{<input type="hidden" name="method" value="manage" />}
|
||||
. q{<div id="dataTableContainer">}
|
||||
. q{</div>}
|
||||
. q{<p class="actions">} . $i18n->get( 'with selected' )
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ if ( typeof WebGUI.AssetManager == "undefined" ) {
|
|||
WebGUI.AssetManager = {};
|
||||
}
|
||||
|
||||
// The extras folder
|
||||
WebGUI.AssetManager.extrasUrl = '/extras/';
|
||||
// Keep track of the open more menus
|
||||
WebGUI.AssetManager.MoreMenusDisplayed = {};
|
||||
// Append something to a url:
|
||||
|
|
@ -150,7 +148,7 @@ WebGUI.AssetManager.formatClassName = function ( elCell, oRecord, oColumn, order
|
|||
Format the asset class name
|
||||
*/
|
||||
WebGUI.AssetManager.formatLockedBy = function ( elCell, oRecord, oColumn, orderNumber ) {
|
||||
var extras = WebGUI.AssetManager.extrasUrl;
|
||||
var extras = getWebguiProperty('extrasURL');
|
||||
elCell.innerHTML
|
||||
= oRecord.getData( 'lockedBy' )
|
||||
? '<a href="' + WebGUI.AssetManager.appendToUrl(oRecord.getData( 'url' ), 'func=manageRevisions') + '">'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue