sync(dev): fehlende Admin-Theme-Assets vom Live-Stand ergaenzt (nichts ueberschrieben)
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
bend.windows = {
|
||||
makeModal: function(options) {
|
||||
var defaults = {
|
||||
opacity: 1
|
||||
};
|
||||
|
||||
$.extend(defaults, options);
|
||||
|
||||
$this = $(this);
|
||||
|
||||
$('<div />').css({
|
||||
position: 'absolute',
|
||||
background: 'transparent url(./themes/admin/media/images/audarisTools.modal.background.png) repeat',
|
||||
top: '0px',
|
||||
left: '0px',
|
||||
opacity: defaults.opacity,
|
||||
width: '100%',
|
||||
height: $(document).height() + 'px',
|
||||
zIndex: 99999
|
||||
}).attr({
|
||||
id: 'easywayShopModal'
|
||||
}).appendTo('body');
|
||||
},
|
||||
|
||||
destroyModal: function(options) {
|
||||
var defaults = {
|
||||
opacity: 0.8
|
||||
};
|
||||
|
||||
$.extend(defaults, options);
|
||||
|
||||
$this = $(this);
|
||||
|
||||
$('#easywayShopModal').empty().remove();
|
||||
},
|
||||
|
||||
isModal: function() {
|
||||
return $("#easywayShopModal").length;
|
||||
},
|
||||
|
||||
makeWindow: function(options) {
|
||||
var defaults,
|
||||
win;
|
||||
|
||||
defaults = {
|
||||
minLength: 8,
|
||||
width: '440px'
|
||||
};
|
||||
|
||||
if (bend.windows.isModal()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (options) {
|
||||
configuration = bend.makeConfiguration(defaults, options);
|
||||
} else {
|
||||
configuration = defaults;
|
||||
}
|
||||
bend.windows.makeModal();
|
||||
|
||||
win = $('<div></div>')
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: defaults.width,
|
||||
height: defaults.height,
|
||||
background: '#ffffff',
|
||||
padding: '20px',
|
||||
textAlign: 'left',
|
||||
left: (($(window).width() - parseInt(configuration.width)) / 2) + 'px',
|
||||
// top: (($(window).height() - parseInt(defaults.height)) / 2 + $(window).scrollTop()) + 'px',
|
||||
top: '100px',
|
||||
zIndex: 100000
|
||||
})
|
||||
.appendTo('body');
|
||||
|
||||
return win;
|
||||
},
|
||||
|
||||
destroyWindow: function(win) {
|
||||
$(win).empty().remove();
|
||||
bend.windows.destroyModal();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user