fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [12471] entity.edit. js jstree solutions url redirect


From: Saul
Subject: [Fmsystem-commits] [12471] entity.edit. js jstree solutions url redirect and collapse all and expand all
Date: Tue, 16 Dec 2014 23:06:02 +0000

Revision: 12471
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12471
Author:   psaul
Date:     2014-12-16 23:06:01 +0000 (Tue, 16 Dec 2014)
Log Message:
-----------
entity.edit.js jstree solutions url redirect and collapse all and expand all

Modified Paths:
--------------
    branches/dev-syncromind/property/js/yahoo/entity.edit.js

Modified: branches/dev-syncromind/property/js/yahoo/entity.edit.js
===================================================================
--- branches/dev-syncromind/property/js/yahoo/entity.edit.js    2014-12-15 
23:24:07 UTC (rev 12470)
+++ branches/dev-syncromind/property/js/yahoo/entity.edit.js    2014-12-16 
23:06:01 UTC (rev 12471)
@@ -173,13 +173,35 @@
        
        $("#treeDiv1").jstree({
                "core" : {
+                        "multiple" : false,
                        "themes" : { "stripes" : true },
                        "data" : {
                                "url" : requestUrlDoc
                        }
-               }
+               },
+                "plugins" : [ "themes","html_data","ui","state" ]
        });
-       
+
+        var count = 0;
+        $("#treeDiv1").bind("select_node.jstree", function (event, data) {
+            count = eval(count + 1);
+                var divd = 
data.instance.get_node(data.selected[0]).original['link']; 
+            if(count > 1)
+            {
+                window.location.href = divd; 
+            }
+       });
+        
+        $('#collapse').on('click',function(){
+            $(this).attr('href','javascript:;');
+            $('#treeDiv1').jstree('close_all');
+        })
+        
+        $('#expand').on('click',function(){
+            $(this).attr('href','javascript:;');
+            $('#treeDiv1').jstree('open_all');
+        });
+
        $("#edit_inventory").on("submit", function(e){
 
                e.preventDefault();
@@ -264,7 +286,7 @@
                parent.closeJS_remote();
 //             parent.hide_popupBox();
        });
-
+      
 });
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]