move js files from js/pandora to js, fixes #1366
This commit is contained in:
parent
b5eda32bbd
commit
a9b7738aa8
104 changed files with 7 additions and 2 deletions
39
static/js/iconDialog.js
Normal file
39
static/js/iconDialog.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
'use strict';
|
||||
|
||||
pandora.ui.iconDialog = function(options) {
|
||||
|
||||
var options = Ox.extend({
|
||||
closeButton: false,
|
||||
height: 128,
|
||||
keys: null,
|
||||
text: '',
|
||||
title: '',
|
||||
width: 368,
|
||||
}, options),
|
||||
|
||||
that = Ox.Dialog({
|
||||
buttons: options.buttons,
|
||||
closeButton: options.closeButton,
|
||||
content: Ox.Element()
|
||||
.append(
|
||||
$('<img>')
|
||||
.attr({src: '/static/png/icon.png'})
|
||||
.css({position: 'absolute', left: '16px', top: '16px', width: '64px', height: '64px'})
|
||||
)
|
||||
.append(
|
||||
$('<div>')
|
||||
.addClass('OxTextPage')
|
||||
.css({position: 'absolute', left: '96px', top: '16px', width: options.width - 112 + 'px'})
|
||||
.html(options.text)
|
||||
),
|
||||
fixedSize: true,
|
||||
height: options.height,
|
||||
keys: options.keys,
|
||||
removeOnClose: true,
|
||||
title: options.title,
|
||||
width: options.width
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue