diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-02-15 13:00:26 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-15 13:00:26 -0500 |
commit | 96a01c86d9bd15f9dc91c60be6f236deab2ffad9 (patch) | |
tree | db06b9a5ab2b03a0475f536b9792435059f999e9 /modules/digibug/js | |
parent | 16b8b8d16b8b46fe1e60b2a86f9ee5883dbc892f (diff) | |
parent | 5b6c138da1e53e93e4de8079885fcef29d12e673 (diff) |
Merge branch 'master' into jquery_190
Diffstat (limited to 'modules/digibug/js')
-rw-r--r-- | modules/digibug/js/digibug.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/modules/digibug/js/digibug.js b/modules/digibug/js/digibug.js deleted file mode 100644 index 46ddac52..00000000 --- a/modules/digibug/js/digibug.js +++ /dev/null @@ -1,43 +0,0 @@ -$(document).ready(function() { - $(".g-print-digibug-link").click(function(e) { - e.preventDefault(); - return digibug_popup(e.currentTarget.href, { width: 800, height: 600 } ); - }); -}); - -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; - -} |