Koha/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js
Owen Leonard 047ca33a93 Bug 19641: Move patron templates to the footer
This patch modifies the staff client patron module templates so that
JavaScript is included in the footer instead of the header.

This patch touches a lot of files because the changes are all
interdependent, affecting a couple of module-wide include files.

To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.

Patrons -> Patrons home, patron search results
  -> Manage pending modification requests
  -> Patron detail page
    -> Edit patron
      -> Set guarantor
    -> Fines
       -> Account, Pay fines, Create manual invoice, Create manual
          credit
       -> Print receipts for different kinds of charges
    -> Routing lists
    -> Circulation history
    -> Holds history
    -> Notices
    -> Statistics
    -> Files
    -> Purchase suggestions
    -> Discharges
    -> Housebound
    -> Set permissions
    -> Change password
    -> Print summary, slips, and overdues
    -> Update child to adult patron type

Patron toolbar and patron search bar operations should work correctly on
all pages.

This patch also updates the template for searching the Norwegian
national patron database, but it has NOT been tested.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Signed-off-by: Zoe Bennett <zoebennett1308@gmail.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-02-15 13:30:23 -03:00

20 lines
735 B
JavaScript

$(document).ready(function(){
$(".none").click(function(){
if($(this).prop("checked")){
var rowid = $(this).attr("id");
var newid = Number(rowid.replace("none",""));
$("#sms"+newid).prop("checked", false);
$("#email"+newid).prop("checked", false);
$("#phone"+newid).prop("checked", false);
$("#digest"+newid).prop("checked", false);
$("#rss"+newid).prop("checked", false);
}
});
$(".active_notify").on("change",function(){
var attr_id = $(this).data("attr-id");
if( $(this).prop("checked") ){
$("#none" + attr_id ).prop("checked", false);
}
});
$("#info_digests").tooltip();
});