Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / static / examples / drag_and_drop.js
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js
new file mode 100644 (file)
index 0000000..d638b0c
--- /dev/null
@@ -0,0 +1,15 @@
+$.mockjax({
+    url: '*',
+    response: function(options) {
+        this.responseText = ExampleData.example_data;
+    },
+    responseTime: 0
+});
+
+$(function() {
+    var $tree = $('#tree1');
+    $tree.tree({
+        dragAndDrop: true,
+        autoOpen: 0
+    });
+});