diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-02-15 12:55:16 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-15 12:57:42 -0500 |
commit | 264e1e82b23f622e9a79f7834cfcbfb536eac4f6 (patch) | |
tree | f77d0a923761d0a1d34ec4856ea91a9ab951c19c /modules/digibug/js/digibug.js | |
parent | 6089374891407dda5da27bbceb9aa774004737b6 (diff) |
Digibug up and vanished. Move the module to contrib for now. This
will leave the module active in any existing installs that had it
active, but that shouldn't cause any negative impact. Fixes #2002.
Diffstat (limited to 'modules/digibug/js/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; - -} |