fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15197]


From: nelson . guerra
Subject: [Fmsystem-commits] [15197]
Date: Wed, 25 May 2016 00:56:59 +0000 (UTC)

Revision: 15197
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15197
Author:   nelson224
Date:     2016-05-25 00:56:59 +0000 (Wed, 25 May 2016)
Log Message:
-----------


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

Modified: branches/dev-syncromind-2/property/js/portico/location.edit.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/location.edit.js      
2016-05-25 00:56:39 UTC (rev 15196)
+++ branches/dev-syncromind-2/property/js/portico/location.edit.js      
2016-05-25 00:56:59 UTC (rev 15197)
@@ -1,78 +1,15 @@
-var documents = null;
-var documents2 = null;
+
 var link_history = null;
 var set_history_data = 0;
 
 $(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)
+       $('#category_id').change( function()
        {
-               count1 += 1;
-               var divd = 
data.instance.get_node(data.selected[0]).original['link'];
-               if (count1 > 1)
-               {
-                       window.location.href = divd;
-               }
+               oTable0.dataTableSettings[0]['ajax']['data']['cat_id'] = 
$(this).val();
+               oTable0.fnDraw();                               
        });
 
-       $('#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');
-               });
-       }
-
        get_history_data = function ()
        {
                if (set_history_data === 0)




reply via email to

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