[Koha-patches] [PATCH] Bug 12199 - Move textarea-expander and tablednd jQuery plugins outside of language-specific directory

Owen Leonard oleonard at myacpl.org
Tue May 6 18:56:52 CEST 2014


This patch moves the textarea-expander and tablednd jQuery plugins to
intranet-tmpl/prog/lib/jquery/plugins so that they will not be
duplicated for each set of translated templates.

To test you must have the SearchEngine system preference set to 'Solr.'
Apply the patch and test Solr search engine configuration in
Administration -> Search engine configuration. Textarea resizing should
work correctly. Table row reordering should work correctly.
---
 .../lib/jquery/plugins/jquery.textarea-expander.js |    0
 .../{prog/en => }/lib/jquery/plugins/tablednd.js   |    0
 .../en/modules/admin/searchengine/solr/indexes.tt  |    4 ++--
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename koha-tmpl/intranet-tmpl/{prog/en => }/lib/jquery/plugins/jquery.textarea-expander.js (100%)
 rename koha-tmpl/intranet-tmpl/{prog/en => }/lib/jquery/plugins/tablednd.js (100%)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.textarea-expander.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.textarea-expander.js
similarity index 100%
rename from koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.textarea-expander.js
rename to koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.textarea-expander.js
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/tablednd.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/tablednd.js
similarity index 100%
rename from koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/tablednd.js
rename to koha-tmpl/intranet-tmpl/lib/jquery/plugins/tablednd.js
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/solr/indexes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/solr/indexes.tt
index b72a1ea..1f7c35b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/solr/indexes.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/solr/indexes.tt
@@ -1,8 +1,8 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha › Administration › Solr config</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/tablednd.js"></script>
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.textarea-expander.js"></script>
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/tablednd.js"></script>
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.textarea-expander.js"></script>
 <script type="text/javascript">
     function clean_line( line ) {
         $(line).find('input[type="text"]').val("");
-- 
1.7.9.5


More information about the Koha-patches mailing list