Skip to content
Browse files

Explicated dataType JSON for subsubmit response

  • Loading branch information...
1 parent efe5cdc commit 33426473c82aacba211aa07b8545065380a67649 @Sixtease committed
Showing with 10 additions and 5 deletions.
  1. +10 −5 MakonFM/root/static/makonfm.js
View
15 MakonFM/root/static/makonfm.js
@@ -617,12 +617,17 @@ MakonFMp.send_subtitles = function($orig, submitted, subs) {
else throw ('Something smells about indices here in send_subtitles');
if (!$.isNumeric(end_ts)) throw ('Failed to get end timestamp');
- $.post(m.SEND_SUBTITLES_URL, {
+ $.ajax({
+ url: m.SEND_SUBTITLES_URL,
+ type: 'post',
cache: false,
- filestem: m.current_file(),
- start: start_ts,
- end: end_ts,
- trans: submitted
+ dataType: 'json',
+ data: {
+ filestem: m.current_file(),
+ start: start_ts,
+ end: end_ts,
+ trans: submitted
+ }
}).success( function(new_subs) {
;;; console.log('new subs:', new_subs);
if (new_subs && new_subs.success === 1) {

0 comments on commit 3342647

Please sign in to comment.
Something went wrong with that request. Please try again.