fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12863]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12863]
Date: Fri, 13 Mar 2015 23:13:05 +0000

Revision: 12863
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12863
Author:   nelson224
Date:     2015-03-13 23:13:04 +0000 (Fri, 13 Mar 2015)
Log Message:
-----------


Added Paths:
-----------
    branches/dev-syncromind/property/js/portico/location.edit.js

Added: branches/dev-syncromind/property/js/portico/location.edit.js
===================================================================
--- branches/dev-syncromind/property/js/portico/location.edit.js                
                (rev 0)
+++ branches/dev-syncromind/property/js/portico/location.edit.js        
2015-03-13 23:13:04 UTC (rev 12863)
@@ -0,0 +1,67 @@
+var documents = null;
+var documents2 = null;
+
+$(document).ready(function(){
+       
+       $("#treeDiv1").jstree({
+               "core" : {
+            "multiple" : false,
+                       "themes" : { "stripes" : true },
+                       "data" : documents
+               },
+        "plugins" : [ "themes","html_data","ui","state" ]
+       });
+
+       var count1 = 0;
+       $("#treeDiv1").bind("select_node.jstree", function (event, data) {
+               count1 += 1;
+               var divd = 
data.instance.get_node(data.selected[0]).original['link']; 
+               if(count1 > 1)
+               {
+                       window.location.href = divd; 
+               }
+       });
+        
+       $('#collapse1').on('click',function(){
+               $(this).attr('href','javascript:;');
+               $('#treeDiv1').jstree('close_all');
+       })
+
+       $('#expand1').on('click',function(){
+               $(this).attr('href','javascript:;');
+               $('#treeDiv1').jstree('open_all');
+       });
+
+       if (documents2)
+       {
+               $("#treeDiv2").jstree({
+                       "core" : {
+                               "multiple" : false,
+                               "themes" : { "stripes" : true },
+                               "data" : documents2
+                       },
+                       "plugins" : [ "themes","html_data","ui","state" ]
+               });
+
+               var count2 = 0;
+               $("#treeDiv2").bind("select_node.jstree", function (event, 
data) {
+                       count2 += 1;
+                       var divd = 
data.instance.get_node(data.selected[0]).original['link']; 
+                       if(count2 > 1)
+                       {
+                               window.location.href = divd; 
+                       }
+               });
+
+               $('#collapse2').on('click',function(){
+                       $(this).attr('href','javascript:;');
+                       $('#treeDiv2').jstree('close_all');
+               })
+
+               $('#expand2').on('click',function(){
+                       $(this).attr('href','javascript:;');
+                       $('#treeDiv2').jstree('open_all');
+               });
+       }
+       
+});




reply via email to

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