[aur-dev] [PATCH v4 0/4] Add JavaScript method to edit comments
For a better user experience, enhance the comment edit form with a JavaScript method to edit comments on the same page, using a customized RPC interface. If JavaScript is not available, the page falls back to a standard web page, where a user can edit a comment. Marcel Korpel (4): pkg_comments.php: Merge two DIVs with same ID Split pkg_comment_form.php so the outer box is not always included aurjson.class.php: Add method get_comment_form() pkg_comments.php: Add JavaScript function to edit comments web/html/commentedit.php | 2 +- web/html/css/aurweb.css | 6 +++++ web/html/images/ajax-loader.gif | Bin 0 -> 723 bytes web/html/index.php | 4 +++ web/lib/aurjson.class.php | 51 +++++++++++++++++++++++++++++++++++++- web/lib/pkgbasefuncs.inc.php | 2 +- web/lib/pkgfuncs.inc.php | 2 +- web/template/pkg_comment_box.php | 4 +++ web/template/pkg_comment_form.php | 4 --- web/template/pkg_comments.php | 39 ++++++++++++++++++++++++++--- 10 files changed, 103 insertions(+), 11 deletions(-) create mode 100644 web/html/images/ajax-loader.gif create mode 100644 web/template/pkg_comment_box.php -- 2.4.6
Signed-off-by: Marcel Korpel
For use in the new RPC interface to edit comments, the form shouldn't
always print a header. Create a new template pkg_comment_box.php that
prints form and box, change template pkg_comment_form.php to only
print the form.
Signed-off-by: Marcel Korpel
This method will be used by the JavaScript comment editing and produces
a form containing the comment.
Signed-off-by: Marcel Korpel
Signed-off-by: Marcel Korpel
On Tue, 21 Jul 2015 at 22:53:53, Marcel Korpel wrote:
For a better user experience, enhance the comment edit form with a JavaScript method to edit comments on the same page, using a customized RPC interface. If JavaScript is not available, the page falls back to a standard web page, where a user can edit a comment. [...]
Merged the whole patch set (with some minor changes to patch 3/4) into the post-4.0.0 branch. Thanks for implementing this feature!
participants (2)
-
Lukas Fleischer
-
Marcel Korpel