Well, the close button isn't on the page inside the iframe, so you don't need any parent or top stuff. Using a text only editor like NotePad, find this inside the ddajaxsidepanel.js file and add the highlighted:
Code:
showhidepanel:function(url, action, type){
var $ = jQuery, setting = this.setting
var panelstate = this.$panelref.data('state')
var winwidth = $(window).width(), panelwidth = this.$panelref.outerWidth()
if (panelwidth < parseInt(setting.openamount_minthreshold))
return true
if (setting.openamount_maxwidth && setting.openamount_maxwidth > setting.openamount_minthreshold)
panelwidth = Math.min(panelwidth, parseInt(setting.openamount_maxwidth))
if (action =="show" && panelstate == "open")
this.$panelref.animate({left: '+=50'}, function(){
ddajaxsidepanel.loadcontent(null)
})
var finalcss = (action=="show")? {left: winwidth-panelwidth, opacity: 1} : {left: winwidth, opacity: 0}
this.$panelref.animate(finalcss, setting.fx.dur, (this.$panelref.data('state')=='open')? 'easeOutBack' : setting.fx.easing, function(){
ddajaxsidepanel.loadcontent(url, type)
})
if(action === 'hide'){widow.location.reload();}
return false
},
The browser cache may need to be cleared and/or the page refreshed to see changes.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks