Koha/koha-tmpl/intranet-tmpl/prog/js
Alex Buckley 971591d4ee Bug 19029: Add JavaScript security question for cloning circ rules
This patch introduces a Javascript security question which is displayed
to the user when they try to clone a circulation rule to a specific
branch when the rule is a 'Standard rule for all libraries"

The rationale for this patch is when the cloning takes place it
overwrites the existing rules of the destination branch and there is no
notification of this to the user. Therefore by implementing this patch
the user is asked if they want to clone the rule (if the rule is
standard accross all libraries) and are told that it
will overwrite the rules in the destination branch.

Test plan:
1. Create a circulation rule for all libraries

2. Make sure the 'select a library' option is set to 'Standard rules for all
libraries"

3. Click the 'Clone' button and notice that the cloning takes place
without any warning that it will overwrite the rules of the destination
branch

4. Apply patch

5. Return to the circulation and fine rules page

6. Repeat step 2

7. Click the clone button and notice a alert box appears asking if you
are sure you want to clone the standard rule to the destination branch.

Note: The name of the destination branch is included in the alert.
Also note that the user is informed of the consequences of performing
the action, i.e. that it will overwrite the existing rules in the
destination branch

8. Click 'Cancel' and notice that no cloning occurs

9. Click the clone button again and this time click 'OK' and notice
that the cloning takes place

10. Return to the Circulation and fine rules page and set the 'Select a
library' option to the name of an individual branch

11. Click the clone button and notice that the clone action takes place

Sponsored-By: Catalyst IT

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-10-27 14:09:00 -03:00
..
pages Bug 18708 [Revised] Show itemBarcodeFallbackSearch results in a modal window 2017-09-01 17:07:22 -03:00
acq.js
additem.js Bug 14752 - (QA followup) Remove annoying modal, use dialog box instead 2016-09-13 17:21:05 +00:00
ajax.js
audio_alerts.js Bug 16310 - Remove the use of "onclick" from audio alerts template 2016-08-01 14:35:27 +00:00
automatic_item_modification_by_age.js Bug 18752 - Automatic item modifications by age should allow 'blank' values 2017-06-13 16:21:37 -03:00
background-job-progressbar.js Bug 18340: Fix progress bar length 2017-05-12 08:53:57 -04:00
basket.js Bug 19461: Add floating toolbar to staff client catalog search results 2017-10-25 16:12:53 -03:00
basketgroup.js Bug 18432 : Follow up - Updating to use they/them 2017-04-21 10:56:43 -04:00
biblio_framework.js Bug 16072: Changing all instances of 'loading-small.gif' to 'spinner-small.gif' and removing loading-small.gif file. 2016-12-28 13:43:20 +00:00
cart.js Bug 16477 - Improve staff client cart JavaScript and template 2016-06-24 13:42:22 +00:00
catalog.js Bug 17893 - Move JavaScript to the footer on staff client catalog pages 2017-09-07 14:05:49 -03:00
cataloging.js Bug 19503: Duplicating a dropdown menu subfield yields an empty subfield tag 2017-10-27 13:57:10 -03:00
checkouts.js Bug 15705: Add specific warning messages for auto_too_much_oweing 2017-05-09 21:09:08 +00:00
datatables.js
file-upload.js
holds.js Bug 16239: Update javascript files 2017-01-13 14:41:23 +00:00
item_search_fields.js
localcovers.js
marc_modification_templates.js Bug 17916 - "Delete MARC modification template" fails to actually delete it 2017-04-28 07:02:10 -04:00
marc_subfields_structure.js
members.js Bug 18298: Use the validate jQuery plugin 2017-10-16 09:44:32 -03:00
merge-record.js
offlinecirc.js
onboarding.js Bug 17942 [Follow-up] Update style of the web installer with Bootstrap 3 2017-05-09 20:54:31 +00:00
prevent_submit.js
sms_providers.js Bug 17012 - Remove more event attributes from administration templates 2016-09-09 13:29:52 +00:00
staff-global.js Bug 19029: Add JavaScript security question for cloning circ rules 2017-10-27 14:09:00 -03:00
xmlControlfield.js
z3950_search.js Bug 16072: Changing all instances of 'loading-small.gif' to 'spinner-small.gif' and removing loading-small.gif file. 2016-12-28 13:43:20 +00:00