Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart f7214859df Bug 13943: Prevent the deletion of items if the user cancels
On the edit items page, there is some weird JS code: if the user clicks
on the delete link and then cancel, the item is deleted anyway.

It's caused by the following JS code in browser.js
  $('a[href*="biblionumber="]').click(function (ev) {
      ev.preventDefault();
      window.location = $(this).attr('href') + '&searchid=' + me.searchid;
  });

Test plan:
- Do a search with multiple results
- Go to the detail page (make sure results browser shows up!)
- Use the "Edit items" link from the toolbar
- Delete an item (try both way)
- Choose "cancel"
- Delete an item (try both way) and confirm the deletion
You should see the browser after the deletion and the item should have
been deleted correctly.
- Edit an item (try both way)
You should see the browser (did not work before this patch)

Note: Before this patch, the 2 first columns didn't contain the
edit/delete item links, now it's only the 1st one.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Much better!
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-09-02 14:37:50 -03:00
..
acqui Bug 12906: DataTables: Use -1 to specify the last column 2015-07-24 13:53:29 -03:00
admin Bug 11584: (QA followup) add missing newline at end of YAML file 2015-08-31 12:22:18 -03:00
authorities
basket Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText 2015-06-08 09:47:06 -03:00
batch
catalogue Bug 14450: itemsearch no longer working 2015-06-24 10:54:10 -03:00
cataloguing Bug 13943: Prevent the deletion of items if the user cancels 2015-09-02 14:37:50 -03:00
circ Bug 14464: Add ability to cancel waiting holds from checkin screen 2015-08-21 09:20:11 -03:00
common
course_reserves
errors Bug 14574: Fixing error messages on staff client so they make more sense 2015-08-18 13:18:22 -03:00
help Bug 14548: Typo in help file for 3.20 (batch_record_modification.tt) 2015-08-03 12:00:08 -03:00
installer
labels Bug 11880: Select what has been selected before 2015-08-28 10:09:02 -03:00
members Bug 14652: Change one more occurrence of N/A. 2015-08-21 10:03:20 -03:00
offline_circ
patron_lists
patroncards Bug 14107: Patron cards: Make barcode width and height scaling editable 2015-07-24 14:07:18 -03:00
plugins
reports Bug 14029: Provide 'clear' link to empty reports search filters 2015-06-11 13:08:53 -03:00
reserve Bug 9809: [QA Follow-up] Still found some remains 2015-08-26 10:26:58 -03:00
reviews
rotating_collections
serials Bug 14423: Multiple XSS vulnerabilities in serials-search 2015-06-23 10:12:26 -03:00
services
sms
suggestion Bug 14423: Multiple XSS bugs in suggestion.pl 2015-06-23 10:12:33 -03:00
tags
test
tools Bug 14703: Holidays description shows \r\n for every new line 2015-08-28 10:40:18 -03:00
virtualshelves Bug 14517: List shelves list is broken for translated interfaces 2015-08-18 13:18:21 -03:00
about.tt Bug 11584: Add TinyMCE license to about.pl 2015-08-28 10:29:08 -03:00
auth.tt
intranet-main.tt