HTTP codes in wipe_data API call

master
Daniel Berteaud 10 years ago
parent 5645ff14c7
commit f78f368f23
  1. 13
      public/js/vroom.js
  2. 4
      vroom.pl

@ -1173,15 +1173,18 @@ function initVroom(room) {
},
async: false,
error: function(data){
$.notify(locale.ERROR_OCCURRED, 'error');
data = data.responseJSON;
if (data.msg){
$.notify(data.msg, 'error');
}
else{
$.notify(locale.ERROR_OCCURRED, 'error');*
}
},
success: function(data){
if (data.status && data.status === 'success' && $('#etherpadContainer').html() != ''){
if ($('#etherpadContainer').html() != ''){
loadEtherpadIframe();
}
else if (data.status !== 'success' && data.msg){
$.notify(data.msg, 'error');
}
}
});
}

@ -1784,8 +1784,10 @@ any '/api' => sub {
return $self->render(
json => {
msg => $self->l('ERROR_OCCURRED'),
err => 'ERROR_OCCURRED',
status => 'error'
}
},
status => 503
);
}
# Get a new etherpad session

Loading…
Cancel
Save