modal window bug fix and enhancements

master
Steve L. Nyemba 7 years ago
parent 7a387593a5
commit 72d2d016ea

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

Loading…
Cancel
Save