You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,9 @@ Backbone.Drupal is a standalone plugin to connect Marionette JS and Backbone JS
19
19
20
20
Originally Inspired in JS files from Drupal 7 Module <ahref="https://drupal.org/project/backbone"target="_blank">https://drupal.org/project/backbone</a>
21
21
22
+
Backbone.Drupal has compatibility with [Backform](http://amiliaapp.github.io/backform/index.html) Drupal 8 return an object for each property if you enable this compatibility attibuttes will be flatten to an array with value property. But this feature could be used for other implementations.
23
+
24
+
22
25
# Usage
23
26
24
27
Check **test/index.html** for Drupal 8 example and **indexd7.html** for Drupal 7 example.
@@ -52,6 +55,10 @@ Your configuration must look similar to following image.
52
55
root: 'http://onthisday/api',
53
56
dataType: '.json'
54
57
};
58
+
59
+
// Set Backform Compatibility (amiliaapp.github.io/backform/index.html)
60
+
//Backbone.Drupal.backform = true;
61
+
55
62
// Define auth object, set crossDomain if is necessary
56
63
var Auth = new Backbone.Drupal.Auth({crossDomain: true});
0 commit comments