Index: lams_tool_images/web/includes/javascript/thickbox.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/web/includes/javascript/thickbox.js,v diff -u -r1.1 -r1.2 --- lams_tool_images/web/includes/javascript/thickbox.js 13 Nov 2008 17:16:39 -0000 1.1 +++ lams_tool_images/web/includes/javascript/thickbox.js 19 Nov 2008 17:24:18 -0000 1.2 @@ -65,8 +65,12 @@ var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; var urlType = baseURL.toLowerCase().match(urlString); - if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images - + var queryString = url.replace(/^[^\?]+\??/,''); + var params = tb_parseQuery( queryString ); + + + if((!params['modal'])){//code to show images + TB_PrevCaption = ""; TB_PrevURL = ""; TB_PrevHTML = ""; @@ -123,10 +127,10 @@ } // End Resizing - TB_WIDTH = imageWidth + 30; - TB_HEIGHT = imageHeight + 60; - $("#TB_window").append(""+caption+"" + "
"+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
close or Esc Key
"); - + TB_WIDTH = imageWidth + 50; + TB_HEIGHT = imageHeight + 80; + $("#TB_window").append(" " + "
"+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
close or Esc Key
"); + $("#TB_closeWindowButton").click(tb_remove); if (!(TB_PrevHTML === "")) { @@ -180,9 +184,6 @@ imgPreloader.src = url; }else{//code to show html - - var queryString = url.replace(/^[^\?]+\??/,''); - var params = tb_parseQuery( queryString ); TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL