Opened 4 years ago

Closed 14 months ago

#868 closed defect (fixed)

don't reload media page, use more ajax

Reported by: davidak Owned by:
Priority: minor Milestone:
Component: programming Keywords:
Cc: Parent Tickets:


i noticed this issue when i listened to a cool song, send a comment and the song stops playing because the page is reloaded.
the same problem when you watch a video.

this should be solved with the use of ajax for commenting, add to collection, on page edit of title, description etc like flickr or youtube.


Attachments (2)

issue_868.patch (10.7 KB) - added by varadhya 14 months ago.
AJAX for posting comments
issue_868_rev.patch (4.9 KB) - added by varadhya 14 months ago.
Revised patch for graceful degradation when JS is disabled

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 years ago by Aleksej

Confirmed: you can open the comment editing field and write a comment w/o reloading the page, but sending the comment then reloads the page.

Changed 14 months ago by varadhya

AJAX for posting comments

comment:2 Changed 14 months ago by varadhya

  • Status changed from new to review


I noticed that this is actually a major problem, since the media being played should not be stopped. I have added a patch file and drive link to a video to verify the fixes.

I have done code refactoring multiple times to make sure everything works as efficiently as possible, and there is no redundant code as such. So, it would be great if you guys looked into the design principles, and the AJAX code.

Drive Link :


Last edited 14 months ago by varadhya (previous) (diff)

comment:3 Changed 14 months ago by varadhya

I have added the AJAX part with graceful degradation so that users with JS disabled can comment like before (with page reloading).

Added a revised patch file and a new drive link to the video which verifies the fix

Drive link :


Changed 14 months ago by varadhya

Revised patch for graceful degradation when JS is disabled

comment:4 Changed 14 months ago by breton

  • Resolution set to fixed
  • Status changed from review to closed

Thank you, Vijeth. I have tried the patch out and it works good. I am going to merge it. I am also adding you to "AUTHORS" as Vijeth Aradhya, please ping me in irc if i should change that :)

However, there one more thing that needs to be done is error reporting. Now it is just logged to console:

+                error: function(error) {
+                    console.log(error);
+                }

However, it would be good if a message was posted to the user with a red background. I am going to open a new bugreport now about it with low priority.

Note: See TracTickets for help on using tickets.