|
|
@ -307,22 +307,22 @@ $('#configureRoomForm').submit(function(e){ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
error: function() { |
|
|
|
error: function(data) { |
|
|
|
|
|
|
|
data = data.responseJSON; |
|
|
|
|
|
|
|
if (data.msg){ |
|
|
|
|
|
|
|
$.notify(data.msg, 'error'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else{ |
|
|
|
$.notify(locale.ERROR_OCCURRED, 'error'); |
|
|
|
$.notify(locale.ERROR_OCCURRED, 'error'); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
success: function(data) { |
|
|
|
success: function(data) { |
|
|
|
$('#ownerPass,#ownerPassConfirm,#joinPass,#joinPassConfirm').val(''); |
|
|
|
$('#ownerPass,#ownerPassConfirm,#joinPass,#joinPassConfirm').val(''); |
|
|
|
if (data.status == 'success'){ |
|
|
|
|
|
|
|
$('#configureModal').modal('hide'); |
|
|
|
$('#configureModal').modal('hide'); |
|
|
|
// Hide passwords inputs too
|
|
|
|
|
|
|
|
$('#joinPassFields,#ownerPassFields').hide(); |
|
|
|
$('#joinPassFields,#ownerPassFields').hide(); |
|
|
|
$.notify(data.msg, 'info'); |
|
|
|
$.notify(data.msg, 'info'); |
|
|
|
$('#configureRoomForm').trigger('room_conf_updated'); |
|
|
|
$('#configureRoomForm').trigger('room_conf_updated'); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
|
|
|
|
$.notify(data.msg, 'error'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|