Files
gallery3/modules/digibug/js/digibug.js
Bharat Mediratta aad0dd357f Create a new thumb_menu() and convert Digibug over to use it.
1) Eliminate digibug_album.html

2) Get rid of the $(document).ready() in digibug.js and rename popUp() to
   digibug_popup() then just make direct calls to digibug_popup() in the
   menu urls.
2009-06-27 16:29:09 -07:00

37 lines
851 B
JavaScript

function digibug_popup(url, options) {
options = $.extend({
/* default options */
width: '800',
height: '600',
target: 'dbPopWin',
scrollbars: 'yes',
resizable: 'no',
menuBar: 'no',
addressBar: 'yes'
}, options);
// center the window by default.
if (!options.winY) {
options.winY = screen.height / 2 - options.height / 2;
};
if (!options.winX) {
options.winX = screen.width / 2 - options.width / 2;
};
open(
url,
options['target'],
'width= ' + options.width +
',height=' + options.height +
',top=' + options.winY +
',left=' + options.winX +
',scrollbars=' + options.scrollbars +
',resizable=' + options.resizable +
',menubar=' + options.menuBar +
',location=' + options.addressBar
);
return false;
}