Added close button to iframe info box.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9402 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
13302221ce
commit
58c514a1f7
@ -583,18 +583,31 @@ function openDialog(type, msg) {
|
||||
function createIFrame(src) {
|
||||
// Put an iframe inside an info box
|
||||
var infoBar = $('<div class="ui-state-highlight ui-corner-all"></div>');
|
||||
|
||||
// Create info and close icons
|
||||
var icon = $('<span class="ui-icon ui-icon-info"></span>').css({
|
||||
'display': 'inline-block',
|
||||
'margin': '10px 5px'
|
||||
});
|
||||
var close = $('<span class="ui-icon ui-icon-close"></span>').css({
|
||||
'display': 'inline-block',
|
||||
'float': 'right',
|
||||
'margin': '10px 5px'
|
||||
}).click(function() {
|
||||
// Remove info box on-click
|
||||
$(this).parent().remove();
|
||||
});
|
||||
|
||||
var iframe = $('<iframe></iframe>').attr('src', src).css({
|
||||
'display': 'inline-block',
|
||||
'border': '0px',
|
||||
'margin': '10px 0px',
|
||||
'width': '95%'
|
||||
'width': '90%'
|
||||
});
|
||||
|
||||
infoBar.append(icon);
|
||||
infoBar.append(iframe);
|
||||
infoBar.append(close);
|
||||
|
||||
return infoBar;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user