Fixed formatting issues.

merge-requests/1/head
Menaka Jayawardena 7 years ago
parent adce200842
commit a32cf89757

@ -47,7 +47,7 @@ $(function () {
if (resp.status == 201) {
$("#group-create-form").addClass("hidden");
$("#group-created-msg").removeClass("hidden");
setTimeout(function(){
setTimeout(function() {
window.location.href = "/devicemgt/groups";
}, 1000);
} else {

@ -226,7 +226,7 @@ $(document).ready(function () {
var firstname = firstnameInput.val();
var lastname = lastnameInput.val();
var emailAddress = $("input#emailAddress").val();
var roles ;
var roles;
if ($("#roles").length > 0) {
roles = $("select#roles").val();
}
@ -287,7 +287,7 @@ $(document).ready(function () {
modalDialog.content($("#modal-content-user-created").html());
modalDialog.footer('<div class="buttons"> ' +
'<a href="/devicemgt/users" id="reset-password-yes-link" class="btn-operations"> OK' +
' </a></div>');
'</a></div>');
modalDialog.show();
generateQRCode("#user-created-msg .qr-code");

@ -428,9 +428,9 @@ var savePolicy = function (policy, isActive, serviceURL) {
$(".add-policy").addClass("hidden");
$(".policy-naming").addClass("hidden");
$(".policy-message").removeClass("hidden");
setTimeout(function(){
setTimeout(function() {
window.location.href = "/devicemgt/policies";
}, 1000);
}, 1000);
},
function (data) {

@ -495,7 +495,7 @@ var updatePolicy = function (policy, state) {
if (jqXHR.status == 200) {
$(".add-policy").addClass("hidden");
$(".policy-message").removeClass("hidden");
setTimeout(function(){
setTimeout(function() {
window.location.href = "/devicemgt/policies";
}, 1000);
}
@ -516,7 +516,7 @@ var updatePolicy = function (policy, state) {
$(".add-policy").addClass("hidden");
$(".policy-naming").addClass("hidden");
$(".policy-message").removeClass("hidden");
setTimeout(function(){
setTimeout(function() {
window.location.href = "/devicemgt/policies";
}, 1000);
}

@ -184,10 +184,9 @@ $(document).ready(function () {
// Refreshing with success message
$("#role-create-form").addClass("hidden");
$("#role-created-msg").removeClass("hidden");
setTimeout(function(){
setTimeout(function() {
window.location.href = "/devicemgt/roles";
}, 1000);
}, 1000);
}
}, function (data) {
var payload = JSON.parse(data.responseText);

@ -210,7 +210,7 @@ $(document).ready(function () {
// Refreshing with success message
$("#role-create-form").addClass("hidden");
$("#role-created-msg").removeClass("hidden");
setTimeout(function(){
setTimeout(function() {
window.location.href = "/devicemgt/roles";
}, 1000);
}

Loading…
Cancel
Save