|
|
|
@ -29,8 +29,9 @@ __jx_modalw__.render.modal = function(args){
|
|
|
|
|
var buttons = jx.dom.get.instance('DIV')
|
|
|
|
|
bg.style.position = 'relative'
|
|
|
|
|
bg.style.zIndex = 99
|
|
|
|
|
bg.style.width = '98.5%'
|
|
|
|
|
bg.style.height = '98%'
|
|
|
|
|
bg.style.width = '100%'
|
|
|
|
|
bg.style.height = '100%'
|
|
|
|
|
bg.style.overflow = 'hidden'
|
|
|
|
|
bg.style.backgroundColor= 'rgba(242,242,242,0.7)'
|
|
|
|
|
bg.style.display = 'grid'
|
|
|
|
|
|
|
|
|
@ -94,7 +95,7 @@ __jx_modalw__.render.modal = function(args){
|
|
|
|
|
* This function is designed to layout the pane with the background on it
|
|
|
|
|
*/
|
|
|
|
|
__jx_modalw__.render.show = function(info){
|
|
|
|
|
info.background.className = 'border-round border jxmodal'
|
|
|
|
|
info.background.className = 'jxmodal'
|
|
|
|
|
// info.background.style.position = 'absolute'
|
|
|
|
|
|
|
|
|
|
var parent = (info.target != null)?jx.dom.get.instance(info.id): document.body
|
|
|
|
@ -136,6 +137,14 @@ jx.modal.show= function(args){
|
|
|
|
|
|
|
|
|
|
var info = __jx_modalw__.render.modal(args)
|
|
|
|
|
__jx_modalw__.render.show(info)
|
|
|
|
|
if(info.render != null){
|
|
|
|
|
if(info.render.args != null){
|
|
|
|
|
var args = info.render.args
|
|
|
|
|
}else{
|
|
|
|
|
var args = null
|
|
|
|
|
}
|
|
|
|
|
info.render.pointer(args)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
jx.modal.remove = function(id){
|
|
|
|
|
if(jx.modal.cache[id] == null){
|
|
|
|
|