web/res/metadataplayer/test/emission_fichiers/script.js
changeset 133 9578d3ddce17
parent 99 6cb4d10f0b8b
--- a/web/res/metadataplayer/test/emission_fichiers/script.js	Wed Apr 27 15:40:01 2011 +0200
+++ b/web/res/metadataplayer/test/emission_fichiers/script.js	Wed Apr 27 18:54:31 2011 +0200
@@ -1,32 +1,32 @@
-// $Id: script.js,v 1.2 2008/10/30 13:00:59 jmburnz Exp $
-
-/**
- * Animates submit buttons
- */
-var Genesis = {};
-// jump to the value in a select drop down
-Genesis.go = function(e) {
-  var destination = e.options[e.selectedIndex].value;
-  if (destination && destination != 0) location.href = destination;
-};
-// prevent users from clicking a submit button twice
-Genesis.formCheck = function() {
-  // only apply this to node and comment and new user registration forms
-  var forms = $("#node-form>div>div>#edit-submit,#comment-form>div>#edit-submit,#user-register>div>#edit-submit");
-  // insert the saving div now to cache it for better performance and to show the loading image
-  $('<div id="saving"><p class="saving">Enregistrement des données&hellip;</p></div>').insertAfter(forms);
-  forms.click(function() {
-    $(this).siblings("input[@type=submit]").hide();
-    $(this).hide();
-    $("#saving").show();
-    var notice = function() {
-      $('<p id="saving-notice">Pas d\'enregistrement ? Patientez quelques secondes, rechargez cette page, et essayez à nouveau.</p>').appendTo("#saving").fadeIn();
-    };
-    // append notice if form saving isn't work, perhaps a timeout issue
-    setTimeout(notice, 24000);
-  });
-};
-// Global Killswitch.
-if (Drupal.jsEnabled) {
-  $(document).ready(Genesis.formCheck);
-}
+// $Id: script.js,v 1.2 2008/10/30 13:00:59 jmburnz Exp $
+
+/**
+ * Animates submit buttons
+ */
+var Genesis = {};
+// jump to the value in a select drop down
+Genesis.go = function(e) {
+  var destination = e.options[e.selectedIndex].value;
+  if (destination && destination != 0) location.href = destination;
+};
+// prevent users from clicking a submit button twice
+Genesis.formCheck = function() {
+  // only apply this to node and comment and new user registration forms
+  var forms = $("#node-form>div>div>#edit-submit,#comment-form>div>#edit-submit,#user-register>div>#edit-submit");
+  // insert the saving div now to cache it for better performance and to show the loading image
+  $('<div id="saving"><p class="saving">Enregistrement des données&hellip;</p></div>').insertAfter(forms);
+  forms.click(function() {
+    $(this).siblings("input[@type=submit]").hide();
+    $(this).hide();
+    $("#saving").show();
+    var notice = function() {
+      $('<p id="saving-notice">Pas d\'enregistrement ? Patientez quelques secondes, rechargez cette page, et essayez à nouveau.</p>').appendTo("#saving").fadeIn();
+    };
+    // append notice if form saving isn't work, perhaps a timeout issue
+    setTimeout(notice, 24000);
+  });
+};
+// Global Killswitch.
+if (Drupal.jsEnabled) {
+  $(document).ready(Genesis.formCheck);
+}