Summary: | Allow a framework plugin to add class to prevent submit during ajax call | ||
---|---|---|---|
Product: | Koha | Reporter: | Marcel de Rooy <m.de.rooy> |
Component: | Cataloging | Assignee: | Marcel de Rooy <m.de.rooy> |
Status: | RESOLVED FIXED | QA Contact: | Kyle M Hall (khall) <kyle> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | caroline.cyr-la-rose, fridolin.somers, kyle, m.de.rooy |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
24.05.00
|
|
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 34860 | ||
Attachments: |
Bug 35062: Add class plugin-blocks-submit in addbiblio
Bug 35062: Add class plugin-blocks-submit in addbiblio Bug 35062: Add class plugin-blocks-submit in addbiblio |
Description
Marcel de Rooy
2023-10-16 10:02:34 UTC
Actually, is it better move the condition to function Check itself. Created attachment 157226 [details] [review] Bug 35062: Add class plugin-blocks-submit in addbiblio Adding this condition in Check() allows you to prevent form submittal during e.g. an ajax call in a framework plugin. The plugin adds and removes the class on the corresponding html element during processing. Test plan: Since we do not have a plugin using this class yet, nothing changes now. Verify that you can still click Save in addbiblio while using standard plugins. In other words: no change in behavior. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 157873 [details] [review] Bug 35062: Add class plugin-blocks-submit in addbiblio Adding this condition in Check() allows you to prevent form submittal during e.g. an ajax call in a framework plugin. The plugin adds and removes the class on the corresponding html element during processing. Test plan: Since we do not have a plugin using this class yet, nothing changes now. Verify that you can still click Save in addbiblio while using standard plugins. In other words: no change in behavior. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> (In reply to David Nind from comment #3) > Signed-off-by: David Nind <david@davidnind.com> Thanks! Created attachment 160936 [details] [review] Bug 35062: Add class plugin-blocks-submit in addbiblio Adding this condition in Check() allows you to prevent form submittal during e.g. an ajax call in a framework plugin. The plugin adds and removes the class on the corresponding html element during processing. Test plan: Since we do not have a plugin using this class yet, nothing changes now. Verify that you can still click Save in addbiblio while using standard plugins. In other words: no change in behavior. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Pushed for 24.05! Well done everyone, thank you! Not backported to 23.11.x Architecture change, nothing to add/edit in the Koha manual. |