From 8ffb268779081340bd4f3f5d225a6ca21e14c898 Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Thu, 23 Oct 2014 14:55:23 -0400
Subject: [PATCH] Bug 13139 - Move treeview jQuery plugin outside of
 language-specific directory

This patch moves the treeview plugin in the staff client from the
language-specific lib/jquery/plugins directory to the one outside the
theme directory.

To test, apply the patch and view the "Set permissions" page for a
patron. The list of permissions should display in an expandable list as
usual.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>

It works, following the test plan. I can see the jQuery treeview plugin moved
from 'prog' language specific directory to the global lib/plugins directory.
---
 .../{prog/en => }/lib/jquery/plugins/jquery.treeview.pack.js            | 0
 koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt         | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename koha-tmpl/intranet-tmpl/{prog/en => }/lib/jquery/plugins/jquery.treeview.pack.js (100%)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.treeview.pack.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.treeview.pack.js
similarity index 100%
rename from koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.treeview.pack.js
rename to koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.treeview.pack.js
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt
index b9cddb4..c1e751e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt
@@ -2,7 +2,7 @@
 <title>Koha &rsaquo; Patrons &rsaquo; Set permissions for [% surname %], [% firstname %]</title>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/treeview/jquery.treeview.css"/>
 [% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.treeview.pack.js"></script>
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.treeview.pack.js"></script>
 <!-- set up tree -->
 <script type="text/javascript">
     $(document).ready(function() {
-- 
2.1.2