mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
Made adhoc launch modal height dynamic
This commit is contained in:
@@ -149,7 +149,7 @@ table.ui-datepicker-calendar {
|
|||||||
|
|
||||||
.ui-widget-content {
|
.ui-widget-content {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
background-color: @default-secondary-bg;
|
background-color: @default-bg;
|
||||||
|
|
||||||
a,
|
a,
|
||||||
a:visited,
|
a:visited,
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ export default
|
|||||||
// scope.$emit('CancelJob');
|
// scope.$emit('CancelJob');
|
||||||
// scope.$destroy();
|
// scope.$destroy();
|
||||||
},
|
},
|
||||||
icon: "fa-times",
|
|
||||||
"class": "btn btn-default",
|
"class": "btn btn-default",
|
||||||
"id": "password-cancel-button"
|
"id": "password-cancel-button"
|
||||||
},{
|
},{
|
||||||
@@ -36,7 +35,6 @@ export default
|
|||||||
scope.$emit(callback);
|
scope.$emit(callback);
|
||||||
$('#password-modal').dialog('close');
|
$('#password-modal').dialog('close');
|
||||||
},
|
},
|
||||||
icon: "fa-check",
|
|
||||||
"class": "btn btn-primary",
|
"class": "btn btn-primary",
|
||||||
"id": "password-accept-button"
|
"id": "password-accept-button"
|
||||||
}];
|
}];
|
||||||
@@ -46,7 +44,7 @@ export default
|
|||||||
scope: scope,
|
scope: scope,
|
||||||
buttons: buttons,
|
buttons: buttons,
|
||||||
width: 620,
|
width: 620,
|
||||||
height: 700, //(scope.passwords.length > 1) ? 700 : 500,
|
height: "auto",
|
||||||
minWidth: 500,
|
minWidth: 500,
|
||||||
title: 'Launch Configuration',
|
title: 'Launch Configuration',
|
||||||
callback: 'DialogReady',
|
callback: 'DialogReady',
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ angular.module('ModalDialog', ['Utilities'])
|
|||||||
ww = $(document).width();
|
ww = $(document).width();
|
||||||
wh = $(document).height();
|
wh = $(document).height();
|
||||||
x = (width > ww) ? ww - 10 : width;
|
x = (width > ww) ? ww - 10 : width;
|
||||||
y = (height > wh) ? wh - 10 : height;
|
y = height === "auto" ? "auto" : ((height > wh) ? wh - 10 : height);
|
||||||
|
|
||||||
// Create the modal
|
// Create the modal
|
||||||
$('#' + id).dialog({
|
$('#' + id).dialog({
|
||||||
|
|||||||
Reference in New Issue
Block a user