PHRAS-2212_refacto_admin_user_alerts

This commit is contained in:
Filip Vilic
2018-09-05 16:08:18 +02:00
parent 842e58d6ac
commit 96488f5ca2
3 changed files with 15 additions and 13 deletions

View File

@@ -559,15 +559,6 @@ input[id="elasticsearch_settings_highlight"] {
font-style: italic; font-style: italic;
} }
.ui-dialog .ui-dialog-content {
position: relative;
border: 0;
padding: .5em 1em;
background: none;
margin-bottom: 7rem;
overflow: visible;
}
/******* SETUP *******************************************************************/ /******* SETUP *******************************************************************/
#custom-link-table { #custom-link-table {
width: 100%; width: 100%;

View File

@@ -308,7 +308,7 @@
function delete_subdef(name) { function delete_subdef(name) {
$("#dialog-delete-subdef").dialog({ $("#dialog-delete-subdef").dialog({
resizable: false, resizable: false,
height: 140, width: 382,
modal: true, modal: true,
buttons: { buttons: {
"Delete subdef": function () { "Delete subdef": function () {
@@ -320,7 +320,13 @@
$(this).dialog("destroy"); $(this).dialog("destroy");
} }
} }
})
.closest('.ui-dialog').addClass('dialog_container')
.find('.ui-dialog-buttonpane button').css({
float: 'right',
marginRight: '23px'
}); });
} }
}); });
@@ -334,9 +340,9 @@
<button id="create-subdef" class="btn btn-success">{{ 'create_subdef_button_label' | trans }}</button> <button id="create-subdef" class="btn btn-success">{{ 'create_subdef_button_label' | trans }}</button>
</p> </p>
<div id="dialog-delete-subdef" title="{{ 'delete_subdef_dialog_label ?' | trans }}" style="display:none;"> <div id="dialog-delete-subdef" title="{{ 'Delete the subview ?' | trans }}" style="display:none;">
<p> <p>
<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span> {# <span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span> #}
{{ 'These subdef will be permanently deleted and cannot be recovered. Are you sure?' | trans }} {{ 'These subdef will be permanently deleted and cannot be recovered. Are you sure?' | trans }}
</p> </p>
</div> </div>

View File

@@ -1,8 +1,9 @@
function searchEngineConfigurationFormInit(indexExists) { function searchEngineConfigurationFormInit(indexExists) {
$("#dropIndexConfirmDialog").dialog({ var dropIndexDialog = $("#dropIndexConfirmDialog").dialog({
autoOpen: false, autoOpen: false,
modal: true, modal: true,
title: "Drop index", title: "Drop index",
width: 382,
buttons: [ buttons: [
{ {
text: "Ok", text: "Ok",
@@ -18,6 +19,10 @@ function searchEngineConfigurationFormInit(indexExists) {
} }
} }
] ]
}).closest('.ui-dialog').addClass('dialog_container');
dropIndexDialog.find('.ui-dialog-buttonpane button').css({
float: 'right',
marginRight: '23px'
}); });
if(indexExists) { if(indexExists) {