Closed tdewolff closed 10 years ago
I tried reusing this functionality in core/admin/pages.php by using Core::addScript('forms.js'), but it did not work.
Failing to do that, I created an inline script inside of Core/templates/admin/pages.tpl
How would I reuse the functionality from core/resources/scripts/form.js?
Will take care of this when I'm refactoring all the JS that still is sloppy in Dex
Error handling needs to be refactored and reused too. Restrictions set in Page for example are not applied in Pages API.
Saving is refactored, input error handling still needs work. TODO notice is in the code.
Much like how the menu module saves changes to the inline form elements using AJAX, this should occur to Pages as well. This functionality should be reused.