test/emission_fichiers/fc_bloc_direct.js
branchnew-model
changeset 882 61c384dda19e
parent 881 f11b234497f7
child 883 d35ad8111c5e
--- a/test/emission_fichiers/fc_bloc_direct.js	Fri Apr 27 19:18:21 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-Drupal.behaviors.fcBlocDirect = function(context) {
-  // Set up interval
-  if (context == document && typeof(Drupal.settings.rf_bloc_suppress) == 'undefined') { // Only one is enough
-    var fcBlocDirectUpdateInterval = setInterval('fcBlocDirectUpdate()', Drupal.settings.fc_bloc_direct.interval);
-    if (Drupal.settings.fc_bloc_direct.refresh_on_load === 1) {
-      fcBlocDirectUpdate();
-    };
-  };
-};
-
-// Interval callback
-function fcBlocDirectUpdate() {
-  var url = Drupal.settings.basePath + 'fc_bloc_direct/refresh';
-  $.ajax({
-    method: 'get',
-    url : url,
-    dataType : 'json',
-    error: function(xhr) {
-      // Do nothing in production mode
-      // Drupal.CTools.AJAX.handleErrors(xhr, url);
-    },
-    success: Drupal.CTools.AJAX.respond
-  });
-};