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