Commit Graph

26 Commits

Author SHA1 Message Date
Scott Bedard 7546174b35 Adds "request-complete" to the data-attributes api
... I hope.
2015-04-06 19:14:17 -04:00
Samuel Georges 569fe2e468 These events should pass the context, to be aligned with the others 2015-01-29 20:06:06 +11:00
Samuel Georges bc016adad7 Rollback performance change to framework.js because it's broken
(Submitting an invalid form in the backend will result in a page refresh, flash messaegs are suppressed)
K.I.S.S > Performance + premature optimization is the root of all evil
2014-12-28 13:03:52 +11:00
alekseybobkov 3ac21e3c89 Merge branch 'develop' into table-widget 2014-12-17 22:15:23 -08:00
Samuel Georges 986b3a95a8 Add the ability to override the confirm function 2014-12-15 17:48:59 +11:00
alekseybobkov 4e921aab7a Minor performance changes in the core JS and CSS. Table widget, in progress. 2014-11-16 18:00:15 -08:00
Sam Georges c83797231d Subsequent expressions are on a new line (see developer guide > PSR exceptions) 2014-11-01 12:00:45 +11:00
Sam Georges beab3c3ded A defined loader should not hide when there is a redirect taking place 2014-09-28 12:23:18 +10:00
Sam Georges 2b63282658 We have a form object already, use that instead 2014-09-26 19:54:30 +10:00
Sam Georges b7e969083f Only when there is no <form /> parental element 2014-09-26 19:52:02 +10:00
Sam Georges 69fb8e0918 Fixes issue where load indicator hangs around on errors when a redirect is used 2014-09-13 17:47:38 +10:00
Sam Georges c2a71e88bb Clean up some sloppy work 2014-09-12 20:20:52 +10:00
Sam Georges 73200606bc Pass isFirstField attrib, allow prevent of default focus() 2014-09-10 19:29:02 +10:00
Sam Georges 3d36e65a55 Trigger invalid on all fields, but only focus the first one. Also pass the messages across. 2014-09-10 19:11:21 +10:00
Sam Georges 7ea65608a0 As per documentation, option-based redirect should only occur on successful AJAX requests (pushing a redirect from the server still works) 2014-09-10 17:03:36 +10:00
Sam Georges 33922f2180 If the target element is an input (textarea, select, etc) include its value when not used in a form 2014-09-06 13:58:10 +10:00
Sam Georges 2a5afaf9c7 Update oc- icons to match font autumn
Minor tidy up to framework.js
2014-07-27 16:08:08 +10:00
alekseybobkov 5488429fe4 Fixed the unknown component caching problem. Added the unknown component handling to the back-end. AJAX request can now be stopped with preventing default action in the oc.beforeRequest event. Fixes #46. 2014-06-26 17:09:25 +11:00
Sam Georges 12a7e7776b Minor 2014-06-10 08:16:33 +10:00
john-mark-wilkinson 35defa381b Update framework.js
Added prepend option '^' for AJAX framework "data-request-update" parameter
2014-06-09 13:47:00 -07:00
Sam Georges 1728295f3f Fixes an issue where success is still called when AJAX validation fails 2014-06-02 18:16:39 +10:00
Sam Georges fc0bf77ffe Add an event for overriding the default error message 2014-05-19 18:17:59 +10:00
Sam Georges efd9e5bb90 Minor rollback: We dont actually need to pass the context to beforeUpdate() 2014-05-15 14:21:40 +10:00
Sam Georges 8019cd7a85 Minor 2014-05-15 14:17:10 +10:00
Sam Georges f8294b8400 Add extra hooks for before ajax updates 2014-05-15 14:16:11 +10:00
Sam Georges 71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00