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