web/rsln-opendata/res/metadataplayer/test/emission_fichiers/rf_player.js
changeset 120 3daa4039509a
parent 119 4c86151704e9
child 121 2b794b7901d6
--- a/web/rsln-opendata/res/metadataplayer/test/emission_fichiers/rf_player.js	Fri Apr 22 12:31:41 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-Drupal.behaviors.rfPlayerOpeningLinks = function(context) {
-  $('a.rf-player-open:not(.rf-player-open-processed)', context).each(function () {
-    var common_settings = { 
-      height: 458,
-      width: 560,
-      top: 150,
-      left: 250,
-      windowName: 'player'
-    }
-
-    var chrome_settings = { 
-      height: 515,
-      width: 560,
-      top: 150,
-      left: 250,
-      windowName: 'player'
-    }
-
-    var chrome_settings_windows = { 
-      height: 465,
-      width: 560,
-      top: 150,
-      left: 250,
-      windowName: 'player'
-    }
-
-    var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase());
-    var is_windows = /windows/.test(navigator.userAgent.toLowerCase());
-
-    if (is_chrome == false) {
-      $(this).popupWindow(common_settings);
-    }
-    else {
-      if (is_windows == false) {
-        $(this).popupWindow(chrome_settings);
-      }
-      else {
-        $(this).popupWindow(chrome_settings_windows);
-      }
-    }
-
-    // We can add the processed class
-    $(this).addClass('rf-player-open-processed');
-  });
-};
\ No newline at end of file