tdewolff / Dex

Small but feature-rich CMS for small and medium sized websites
MIT License
2 stars 2 forks source link

Make inline form saving generic #26

Closed tdewolff closed 10 years ago

tdewolff commented 10 years ago

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.

s-p-n commented 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?

tdewolff commented 10 years ago

Will take care of this when I'm refactoring all the JS that still is sloppy in Dex

tdewolff commented 10 years ago

Error handling needs to be refactored and reused too. Restrictions set in Page for example are not applied in Pages API.

tdewolff commented 10 years ago

Saving is refactored, input error handling still needs work. TODO notice is in the code.