This patch moves the ajaxfileupload jQuery plugin to
intranet-tmpl/prog/lib/jquery/plugins so that it will not be duplicated
for each set of translated templates.

To test, apply the patch and test a page which requires the file upload
plugin. For instance: Tools -> Upload local cover image. The upload
process should finish correctly.
---
 .../en => }/lib/jquery/plugins/ajaxfileupload.js   |    0
 .../intranet-tmpl/prog/en/includes/file-upload.inc |    2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename koha-tmpl/intranet-tmpl/{prog/en => 
}/lib/jquery/plugins/ajaxfileupload.js (100%)

diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/ajaxfileupload.js 
b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/ajaxfileupload.js
similarity index 100%
rename from koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/ajaxfileupload.js
rename to koha-tmpl/intranet-tmpl/lib/jquery/plugins/ajaxfileupload.js
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc 
b/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc
index 2fbb9f3..d8e9e00 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc
@@ -1,5 +1,5 @@
 <!-- AJAX file upload stuff -->
-<script type="text/javascript" src="[% themelang 
%]/lib/jquery/plugins/ajaxfileupload.js"></script>
+<script type="text/javascript" src="[% interface 
%]/lib/jquery/plugins/ajaxfileupload.js"></script>
 <script type="text/javascript">
     //<![CDATA[
     var fileUploadProgressTimer = 0;
-- 
1.7.9.5
_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to