Bug #1528
closedCancel button on pop-up fire an AJAX request and sometimes lag
Description
For (all ?) pop-up used to create items, like "configuration rule creation pop-up", the cancel button should only close the pop-up, a pure JS, client-side event. But currently, they fire an Ajax request, that does nothing (safe spending time one server and leading to some client side lag).
=> replace SHtml.ajaxButton("Cancel", { () => closePopup() }) by something like: <button onclick="closePopup();return false;">Cancel</button>
Updated by Nicolas CHARLES over 10 years ago
Hum, i can prevent having a post+get, to have only an empty post, but i'm don't know how to do better than that...
Updated by Nicolas CHARLES over 10 years ago
even hardcoding the button in the template and removing everything on scala will still trigger a post, as it is inside a form that we close
i'm not sure which solution i should use...
Updated by Nicolas CHARLES about 10 years ago
- Assignee changed from Nicolas CHARLES to François ARMAND
i'm reassigning this ticket to you Francois, as I couldn't fix it
Updated by Raphael GAUTHIER almost 8 years ago
- Status changed from New to Rejected
This bug doesn't appear anymore.
Rejecting