You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2014/04/26 14:06:32 UTC

[09/10] git commit: TAP5-2315: remove obsolete upload.js asset and import

TAP5-2315: remove obsolete upload.js asset and import


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/6ef3fba3
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/6ef3fba3
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/6ef3fba3

Branch: refs/heads/master
Commit: 6ef3fba394440c066baf11fa915cec90c4b68001
Parents: 7202a3b
Author: Jochen Kemnade <jo...@web.de>
Authored: Sat Apr 26 13:43:18 2014 +0200
Committer: Jochen Kemnade <jo...@web.de>
Committed: Sat Apr 26 13:43:18 2014 +0200

----------------------------------------------------------------------
 .../tapestry5/upload/components/Upload.java     |  5 ----
 .../tapestry5/upload/components/upload.js       | 27 --------------------
 2 files changed, 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6ef3fba3/tapestry-upload/src/main/java/org/apache/tapestry5/upload/components/Upload.java
----------------------------------------------------------------------
diff --git a/tapestry-upload/src/main/java/org/apache/tapestry5/upload/components/Upload.java b/tapestry-upload/src/main/java/org/apache/tapestry5/upload/components/Upload.java
index db92161..e6c5bcc 100755
--- a/tapestry-upload/src/main/java/org/apache/tapestry5/upload/components/Upload.java
+++ b/tapestry-upload/src/main/java/org/apache/tapestry5/upload/components/Upload.java
@@ -64,11 +64,6 @@ public class Upload extends AbstractField
     @Mixin
     private RenderDisabled renderDisabled;
 
-    @Inject
-    @Path("upload.js")
-    private Asset uploadScript;
-
-
     /**
      * Computes a default value for the "validate" parameter using {@link FieldValidatorDefaultSource}.
      */

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6ef3fba3/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js
----------------------------------------------------------------------
diff --git a/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js b/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js
deleted file mode 100644
index 650eccc..0000000
--- a/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2012 The Apache Software Foundation
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-/**
- * Ensures that the encoding type of the containing form is multipart/form-data when an Upload
- * component is dynamically added to the form via Ajax.
- */
-Tapestry.Initializer.injectedUpload = function(element)
-{	
-    var form = $(element).form; 
-    if (form)
-    {
-        form.enctype = "multipart/form-data";
-        form.encoding = "multipart/form-data";
-    } 
-}
\ No newline at end of file