Version 1
[yaffs-website] / web / modules / contrib / inline_entity_form / js / inline_entity_form.js
diff --git a/web/modules/contrib/inline_entity_form/js/inline_entity_form.js b/web/modules/contrib/inline_entity_form/js/inline_entity_form.js
new file mode 100644 (file)
index 0000000..f6965eb
--- /dev/null
@@ -0,0 +1,29 @@
+/**
+ * @file
+ * Provides JavaScript for Inline Entity Form.
+ */
+
+(function ($) {
+
+/**
+ * Allows submit buttons in entity forms to trigger uploads by undoing
+ * work done by Drupal.behaviors.fileButtons.
+ */
+Drupal.behaviors.inlineEntityForm = {
+  attach: function (context) {
+    /*
+    if (Drupal.file) {
+      $('input.ief-entity-submit', context).unbind('mousedown', Drupal.file.disableFields);
+    }
+    */
+  },
+  detach: function (context) {
+    /*
+    if (Drupal.file) {
+      $('input.form-submit', context).bind('mousedown', Drupal.file.disableFields);
+    }
+    */
+  }
+};
+
+})(jQuery);