summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-07-08 12:25:16 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-07-08 12:25:16 +0200
commit08db444152e81531736df0ac9bd055bfeb38dda8 (patch)
treecce9131dfb5e8b25dc16e068e4e2372d8619d314
parentddf8a04fe3281e871c5311235b08185a5ceab797 (diff)
downloadrpg-08db444152e81531736df0ac9bd055bfeb38dda8.tar.gz
rpg-08db444152e81531736df0ac9bd055bfeb38dda8.tar.bz2
jQueryized closePopups()
-rw-r--r--lib/scripts/script.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js
index a6951c4ce..f5d76d27c 100644
--- a/lib/scripts/script.js
+++ b/lib/scripts/script.js
@@ -336,14 +336,7 @@ addInitEvent(function(){
* Handler to close all open Popups
*/
function closePopups(){
- if(!document.getElementById){ return; }
-
- var divs = document.getElementsByTagName('div');
- for(var i=0; i < divs.length; i++){
- if(divs[i].className.indexOf('JSpopup') != -1){
- divs[i].style.display = 'none';
- }
- }
+ jQuery('div.JSpopup').hide();
}
/**