Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Owen Leonard 064cce955b Bug 16262 - Remove the use of "onclick" from acquisitions basket template
In order to bring the acquisitions basket template into compliance with
coding guideline JS9, this patch changes with way some JavaScript events
are handled by moving JS handling out of the HTML markup.

Also changed: Replaced the use of [% script_name %] (which is
undefined), with the actual script path.

To test, apply the patch and locate an open basket in Acquisitions which
has more than one order in it.

- Test the "Managed by: Add user" button and verify that it triggers a
  popup where you can search for patrons.
  - Select two or more patrons to be managers for the basket.
  - Close the search windows and confirm that your choices appear on the
    basket page.
  - Click "Delete user" next to one of the patrons. The patron should be
    removed.
  - Click "Save changes" and verify that your choices are correctly
    saved.
  - Click "Delete user" next to one of the remaining patrons. The patron
    should be removed.
  - Click "Save changes" and verify that the patron stays deleted.
- In the list of orders, click the "Transfer" link and confirm that the
  correct pop-up window is triggered.
- Test the "Delete this basket" button in the toolbar. A modal window
  should be triggered.
  - In a basket with orders:
    - The "Delete basket and orders" button should do what it says,
      leaving associated bibliographic records intact.
    - The "Delete basket, orders, and records" button should do what it
      says, deleting any bibliographic records associated with orders.
  - In a basket with no orders:
    - The "Delete basket" button should work correctly.
- Test the "Create edifact order" button.
  - Click "Send EDI order" on the resulting page.
  - In the resulting dialog, "Are you sure you want to generate an
    edifact order," verify that both the "Yes" and "No" options work
    correctly.

Followed test plan, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-04-29 14:46:38 +00:00
..
csv
tables Bug 15722: Escape patron infos for JSON in patron searches 2016-03-24 16:14:31 +00:00
acqui-home.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
addorder.tt
addorderiso2709.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
ajax.tt
basket.tt Bug 16262 - Remove the use of "onclick" from acquisitions basket template 2016-04-29 14:46:38 +00:00
basketgroup.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
basketheader.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
booksellers.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
cancelorder.tt
edi_ean.tt Bug 7736: (QA followup) Add missing body id and class 2016-04-04 20:43:01 +00:00
edifactmsgs.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
edimsg.tt Bug 7736: Support Ordering via Edifact EDI messages 2016-04-01 20:03:17 +00:00
histsearch.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
invoice-files.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
invoice.tt Bug 16238: Use .prop() instead of .attr() for 'checked' 2016-04-29 14:18:24 +00:00
invoices.tt Bug 16238: Use .prop() instead of .attr() for 'checked' 2016-04-29 14:18:24 +00:00
lateorders.tt Bug 16238: Use .prop() instead of .attr() for 'disabled' 2016-04-29 14:18:24 +00:00
modordernotes.tt
neworderbiblio.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
neworderempty.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
neworderempty_duplicate.tt
newordersubscription.tt Bug 16238: Use .prop() instead of .attr() for 'checked' 2016-04-29 14:18:24 +00:00
newordersuggestion.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
ordered.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
orderreceive.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
parcel.tt Bug 16253: Changing 'delete order' to 'cancel order' 2016-04-29 14:34:53 +00:00
parcels.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
spent.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
supplier.tt Bug 16238: Use .prop() instead of .attr() for 'checked' 2016-04-29 14:18:24 +00:00
transferorder.tt
uncertainprice.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
z3950_search.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00