|
|
@ -226,7 +226,7 @@ $(document).ready(function () {
|
|
|
|
var firstname = firstnameInput.val();
|
|
|
|
var firstname = firstnameInput.val();
|
|
|
|
var lastname = lastnameInput.val();
|
|
|
|
var lastname = lastnameInput.val();
|
|
|
|
var emailAddress = $("input#emailAddress").val();
|
|
|
|
var emailAddress = $("input#emailAddress").val();
|
|
|
|
var roles ;
|
|
|
|
var roles;
|
|
|
|
if ($("#roles").length > 0) {
|
|
|
|
if ($("#roles").length > 0) {
|
|
|
|
roles = $("select#roles").val();
|
|
|
|
roles = $("select#roles").val();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -282,7 +282,13 @@ $(document).ready(function () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Refreshing with success message
|
|
|
|
// Refreshing with success message
|
|
|
|
$("#user-create-form").addClass("hidden");
|
|
|
|
$("#user-create-form").addClass("hidden");
|
|
|
|
$("#user-created-msg").removeClass("hidden");
|
|
|
|
modalDialog.header('<span class="fw-stack">' +
|
|
|
|
|
|
|
|
'<i class="fw fw-info fw-stack-1x"></i> </span> User was added successfully');
|
|
|
|
|
|
|
|
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>');
|
|
|
|
|
|
|
|
modalDialog.show();
|
|
|
|
generateQRCode("#user-created-msg .qr-code");
|
|
|
|
generateQRCode("#user-created-msg .qr-code");
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|