@@ -, +, @@ --- .../prog/en/modules/admin/smart-rules.tmpl | 42 +++++++++++++------- 1 files changed, 27 insertions(+), 15 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl @@ -9,6 +9,16 @@ $(document).ready(function() { $('#branch').change(function() { $('#selectlibrary').submit(); }); + $(".editrule").click(function(){ + $(this).parent().parent().find("td").each(function (i) { + itm = $(this).text(); + itm = itm.replace(/^\s*|\s*$/g,''); + $("#default-circulation-rules tr:last td:eq("+i+") input").val(itm); + $("#default-circulation-rules tr:last td:eq("+i+") select").val(itm); + $("#default-circulation-rules tr:last td:last input").val(_("Save")); + }); + return false; + }); }); //]]> @@ -57,11 +67,12 @@ $(document).ready(function() {
" /> -
+
- + "/> +
@@ -74,7 +85,7 @@ $(document).ready(function() { - + @@ -108,6 +119,7 @@ $(document).ready(function() { + @@ -115,7 +127,7 @@ $(document).ready(function() { - - - - - - - - - - + + + + + + + + + +
Patron Category Item TypeRenewals Allowed (count) Holds Allowed (count) Rental Discount (%)  
Edit &categorycode=&branch=">Delete
- @@ -123,23 +135,23 @@ $(document).ready(function() { - "/>
--