more fixes to About Tower dialog modal

This commit is contained in:
Jared Tabor
2014-08-08 14:03:25 -04:00
parent 6747d0690a
commit f9b6014519
4 changed files with 32 additions and 17 deletions

View File

@@ -58,15 +58,21 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo
paddedStr = paddedStr + " ";
}
$('#about-modal-version').html(paddedStr);
scope.modalOK = function(){
$('#about-modal-dialog').dialog('close');
};
CreateDialog({
id: 'about-modal-dialog',
scope: scope,
buttons: [],
width: 730,
height: 320,
// buttons: [],
width: 700,
height: 380,
minWidth: 300,
// title: , //'<img src="static/img/tower_login_logo.png">' ,//'About Ansible',
callback: 'DialogReady'
callback: 'DialogReady',
onOpen: function(){
$('#dialog-ok-button').focus();
}
});
});