removed old macros from default config file
added duplicate button
This commit is contained in:
parent
3d10acb8ce
commit
414dfde9c3
5 changed files with 34 additions and 3 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
- fixed a bug in the project management app that was causing a no privilege error when trying to display the view.
|
- fixed a bug in the project management app that was causing a no privilege error when trying to display the view.
|
||||||
- fixed various bugs in the project management app.
|
- fixed various bugs in the project management app.
|
||||||
- added right click ment to project management app.
|
- added right click ment to project management app.
|
||||||
|
- Added duplicate button in asset manager as discussed in Community IRC.
|
||||||
|
|
||||||
6.99.1
|
6.99.1
|
||||||
- Bugfixes on dashboard to fix template errors.
|
- Bugfixes on dashboard to fix template errors.
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,6 @@
|
||||||
"GroupText" : "GroupText",
|
"GroupText" : "GroupText",
|
||||||
"H" : "H_homeLink",
|
"H" : "H_homeLink",
|
||||||
"International" : "International",
|
"International" : "International",
|
||||||
"JavaScript" : "JavaScript",
|
|
||||||
"L" : "L_loginBox",
|
"L" : "L_loginBox",
|
||||||
"LastModified" : "LastModified",
|
"LastModified" : "LastModified",
|
||||||
"LoginToggle" : "LoginToggle",
|
"LoginToggle" : "LoginToggle",
|
||||||
|
|
@ -276,10 +275,8 @@
|
||||||
"PageUrl" : "PageUrl",
|
"PageUrl" : "PageUrl",
|
||||||
"RandomAssetProxy" : "RandomAssetProxy",
|
"RandomAssetProxy" : "RandomAssetProxy",
|
||||||
"RandomThread" : "RandomThread",
|
"RandomThread" : "RandomThread",
|
||||||
"RawHeadTags" : "RawHeadTags",
|
|
||||||
"RootTitle" : "RootTitle",
|
"RootTitle" : "RootTitle",
|
||||||
"Spacer" : "Spacer",
|
"Spacer" : "Spacer",
|
||||||
"StyleSheet" : "StyleSheet",
|
|
||||||
"SubscriptionItem" : "SubscriptionItem",
|
"SubscriptionItem" : "SubscriptionItem",
|
||||||
"SubscriptionItemPurchaseUrl" : "SubscriptionItemPurchaseUrl",
|
"SubscriptionItemPurchaseUrl" : "SubscriptionItemPurchaseUrl",
|
||||||
"Thumbnail" : "Thumbnail",
|
"Thumbnail" : "Thumbnail",
|
||||||
|
|
|
||||||
|
|
@ -1137,6 +1137,7 @@ sub manageAssets {
|
||||||
assetManager.AddButton("'.$i18n->get("delete").'","deleteList","manageAssets");
|
assetManager.AddButton("'.$i18n->get("delete").'","deleteList","manageAssets");
|
||||||
assetManager.AddButton("'.$i18n->get("cut").'","cutList","manageAssets");
|
assetManager.AddButton("'.$i18n->get("cut").'","cutList","manageAssets");
|
||||||
assetManager.AddButton("'.$i18n->get("copy").'","copyList","manageAssets");
|
assetManager.AddButton("'.$i18n->get("copy").'","copyList","manageAssets");
|
||||||
|
assetManager.AddButton("'.$i18n->get("duplicate").'","duplicateList","manageAssets");
|
||||||
assetManager.initializeDragEventHandlers();
|
assetManager.initializeDragEventHandlers();
|
||||||
assetManager.Write();
|
assetManager.Write();
|
||||||
var assetListSelectAllToggle = false;
|
var assetListSelectAllToggle = false;
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,32 @@ sub www_cutList {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 www_duplicateList ( )
|
||||||
|
|
||||||
|
Creates a bunch of duplicate assets under the same parent.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub www_duplicateList {
|
||||||
|
my $self = shift;
|
||||||
|
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||||
|
foreach my $assetId ($self->session->form->param("assetId")) {
|
||||||
|
my $asset = WebGUI::Asset->newByDynamicClass($self->session,$assetId);
|
||||||
|
if ($asset->canEdit) {
|
||||||
|
my $newAsset = $asset->duplicate;
|
||||||
|
$newAsset->update({ title=>$newAsset->getTitle.' (copy)'});
|
||||||
|
$newAsset->setParent($asset->getParent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($self->session->form->process("proceed") ne "") {
|
||||||
|
my $method = "www_".$self->session->form->process("proceed");
|
||||||
|
return $self->$method();
|
||||||
|
}
|
||||||
|
return $self->www_manageAssets();
|
||||||
|
}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 www_emptyClipboard ( )
|
=head2 www_emptyClipboard ( )
|
||||||
|
|
||||||
Moves assets in clipboard to trash. Returns www_manageClipboard() when finished. If isInGroup(4) returns False, insufficient privilege is rendered.
|
Moves assets in clipboard to trash. Returns www_manageClipboard() when finished. If isInGroup(4) returns False, insufficient privilege is rendered.
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,12 @@ our $I18N = {
|
||||||
context => q|Used in asset context menus.|
|
context => q|Used in asset context menus.|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'duplicate' => {
|
||||||
|
message => q|Duplicate|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Used in asset context menus.|
|
||||||
|
},
|
||||||
|
|
||||||
'copy' => {
|
'copy' => {
|
||||||
message => q|Copy|,
|
message => q|Copy|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue