From ec12c09246f9558946408dd97171e83b1b3b1905 Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Thu, 17 Apr 2014 12:57:04 -0400
Subject: [PATCH] [Signed-off] Bug 12102 - Move humanmsg jQuery plugin outside
 of language-specific directory
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch moves the humanmsg 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 modify a system preference. The
modification messages should appear normally.

Patch works as expected
Signed-off-by: Marc Véron <veron@veron.ch>
---
 koha-tmpl/intranet-tmpl/{prog/en => }/lib/jquery/plugins/humanmsg.js |    0
 koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt         |    2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename koha-tmpl/intranet-tmpl/{prog/en => }/lib/jquery/plugins/humanmsg.js (100%)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/humanmsg.js
similarity index 100%
rename from koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/humanmsg.js
rename to koha-tmpl/intranet-tmpl/lib/jquery/plugins/humanmsg.js
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
index fc58dbe..f81f1a9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
@@ -31,7 +31,7 @@
 //]]>
 </script>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/humanmsg.css" />
-<script src="[% themelang %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
+<script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
 <script src="[% themelang %]/js/ajax.js" type="text/javascript"></script>
 <script src="[% themelang %]/js/pages/preferences.js" type="text/javascript"></script>
 </head>
-- 
1.7.10.4