Author: andre
Date: 2010-06-09 21:50:33 +0200 (Wed, 09 Jun 2010)
New Revision: 42497

Modified:
   openimages/trunk/src/main/webapp/style/js/main.js.jsp
Log:
added method to open box when f.e. #download is selected OIP-97, renamed the 
id's


Modified: openimages/trunk/src/main/webapp/style/js/main.js.jsp
===================================================================
--- openimages/trunk/src/main/webapp/style/js/main.js.jsp       2010-06-09 
15:40:58 UTC (rev 42496)
+++ openimages/trunk/src/main/webapp/style/js/main.js.jsp       2010-06-09 
19:50:33 UTC (rev 42497)
@@ -42,32 +42,36 @@
 }
 
 function initToolbar() {
+    if ($("div.popup").length) {
+        var loc = document.location.href;
+        $(loc.substring(loc.indexOf('#'))).toggle();
+    }
     $('li.tag a').click(function(ev) {
-        ev.preventDefault();
+        //ev.preventDefault();
         var link = ev.target.href;  // id of el. to show is in fragment
         var id = link.substring(link.indexOf("#") + 1);
         $('#' + id).toggle('fast');
     });
     $('li.license a').click(function(ev) {
-        ev.preventDefault();
+        //ev.preventDefault();
         var link = ev.target.href;
         var id = link.substring(link.indexOf("#") + 1);
         $('#' + id).toggle('fast');
     });
     $('li.share a').click(function(ev) {
-        ev.preventDefault();
+        //ev.preventDefault();
         var link = ev.target.href;
         var id = link.substring(link.indexOf("#") + 1);
         $('#' + id).toggle('fast');
     });
     $('li.download a').click(function(ev) {
-        ev.preventDefault();
+        //ev.preventDefault();
         var link = ev.target.href;
         var id = link.substring(link.indexOf("#") + 1);
         $('#' + id).toggle('fast');
     });
     $('li.embed a').click(function(ev) {
-        ev.preventDefault();
+        //ev.preventDefault();
         var link = ev.target.href;
         var id = link.substring(link.indexOf("#") + 1);
         $('#' + id).toggle('fast');
@@ -164,7 +168,7 @@
         'server' : '<mm:url page="/" absolute="true" />',
         'jar' : 
'${mm:link('/oiplayer/plugins/cortado-ovt-stripped-wm_r38710.jar')}',
         'flash' : '${mm:link('/oiplayer/plugins/flowplayer-3.1.5.swf')}',
-        'controls' : false
+        'controls' : 'dark top'
     });
 });
 

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to