Open achimnol opened 10 years ago
:+1:
Applied to addComment()
in resources/script/common2.js for demonstration of jQuery-way of AJAX calls (at 818f154). We need further work:
Standardizer
in EAF4.js and replace its parts with jQuery and LodashHTTPRequest
in EAF4.js with jQuery's own AJAX functionsPageHolder
, PageMaster
, FileUploadRequest
in EAF4.js as jQuery plugins.
We no longer need to use customized Javascript to read values from HTML forms and compile them into as a POST parameter manually. Let the browser do the trick and we may just intercept the POST handler to implement AJAX UI updates. The current implementation uses a lot of redundant codes with mixed/missing/mis-typed field names and confusing IDs of input elements, thus fallback for Javascript-disabled environments would not work and the codes are bug-prone.
The expected amount of modification is large enough to rewrite most of interface PHP files under the
interface/owner
directory.