Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed unused action_upload_right() and save() overloading in …

…AssetAdmin.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92709 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit fef2f77b09e2f43b2c2ea9164641a5802fd7ba1b 1 parent 8c37f08
Ingo Schommer chillu authored
Showing with 0 additions and 36 deletions.
  1. +0 −36 javascript/AssetAdmin.js
36 javascript/AssetAdmin.js
View
@@ -15,42 +15,6 @@ var _HANDLER_FORMS = {
sortitems : 'sortitems_options'
};
-/**
- * Top-right actions
- */
-
-function action_upload_right(e) {
- if(frames['AssetAdmin_upload'].document && frames['AssetAdmin_upload'].document.getElementById('Form_UploadForm')) {
- // make sure at least one file is selected for upload
- var values = "";
- var inputs = $A(frames['AssetAdmin_upload'].document.getElementsByTagName("input"));
- inputs.each(function(input) {
- if(input.type == "file") values += input.value;
- }.bind(this));
-
- if(values.length == 0) {
- alert("Please select at least one file for uploading");
- openTab("Root_Upload");
- } else {
- frames['AssetAdmin_upload'].document.getElementById('Form_UploadForm').submit();
- }
- }
- Event.stop(e);
- return false;
-}
-
-/**
- * Set up save folder name action
- */
-Behaviour.register( {
- '#Form_EditForm_save': {
- onclick : function() {
- $('Form_EditForm').save(false, null, 'save', false);
- return false;
- }
- }
-});
-
MarkingPropertiesButton = Class.create();
MarkingPropertiesButton.applyTo('#Form_EditForm_deletemarked', "Please select some files to delete!", 'deletemarked', 'Do you really want to delete the marked files?');
Please sign in to comment.
Something went wrong with that request. Please try again.