mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
refactor dialog for subdef creation and new user
This commit is contained in:
@@ -292,21 +292,23 @@
|
||||
});
|
||||
|
||||
var buttons = {};
|
||||
buttons[language.create_user] = function () {
|
||||
check_new_user(false);
|
||||
};
|
||||
buttons[language.annuler] = function () {
|
||||
$('#user_add_dialog').dialog('close')
|
||||
};
|
||||
buttons[language.create_user] = function () {
|
||||
check_new_user(false);
|
||||
};
|
||||
|
||||
$('#user_add_dialog').dialog({
|
||||
var userAddDialog = $('#user_add_dialog').dialog({
|
||||
buttons: buttons,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
width: 500
|
||||
width: 382,
|
||||
}).dialog('close');
|
||||
|
||||
userAddDialog.closest('.ui-dialog').addClass('dialog_container');
|
||||
|
||||
var buttons = {};
|
||||
buttons[language.annuler] = function () {
|
||||
$('#template_add_dialog').dialog('close');
|
||||
@@ -324,7 +326,7 @@
|
||||
|
||||
}).dialog('close');
|
||||
|
||||
templateAddDialog.closest('.ui-dialog').addClass('template_add_dialog_container');
|
||||
templateAddDialog.closest('.ui-dialog').addClass('dialog_container');
|
||||
|
||||
function check_new_user(is_template) {
|
||||
var container = is_template ? $('#template_add_dialog') : $('#user_add_dialog');
|
||||
|
Reference in New Issue
Block a user