Author: francois.b
Date: 2010-02-15 16:25:33 +0100 (Mon, 15 Feb 2010)
New Revision: 28035

Modified:
   
plugins/sfUnobstrusiveWidgetPlugin/trunk/data/assets/js/jquery/uo/treeview.jquery.uo.js
Log:
[sfUnobstrusiveWidgetPlugin] added select_callback to treeview.jquery.uo JS 
script

Modified: 
plugins/sfUnobstrusiveWidgetPlugin/trunk/data/assets/js/jquery/uo/treeview.jquery.uo.js
===================================================================
--- 
plugins/sfUnobstrusiveWidgetPlugin/trunk/data/assets/js/jquery/uo/treeview.jquery.uo.js
     2010-02-15 15:17:24 UTC (rev 28034)
+++ 
plugins/sfUnobstrusiveWidgetPlugin/trunk/data/assets/js/jquery/uo/treeview.jquery.uo.js
     2010-02-15 15:25:33 UTC (rev 28035)
@@ -324,6 +324,11 @@
         $('.' + this.options.class_selected, 
this.element).removeClass(this.options.class_selected);
       }
       span.addClass(this.options.class_selected);
+      
+      if (this.options.select_callback)
+      {
+        this.options.select_callback(this);
+      }
     },
     
     _show : function(el)
@@ -788,6 +793,7 @@
       class_expand: 'uo-treeview-expand',
       class_expand_control: 'uo-treeview-expand-control',
       // ui-icon-folder-collapsed, ui-icon-folder-open, ui-icon-document
+      
       // expand / collapse
       expand_enabled: true,
       expand: false, // if not expand enabled all node will be expand
@@ -802,18 +808,24 @@
       collapse_effect_options : {},
       collapse_speed : 500,
       collapse_callback : false,
+      
       // select
       select_enabled: true,
       select_event: 'click',
       select_multiple: false,
       select_multiple_key: 'ctrlKey',
+      select_callback: false,
+      
       //fix
       fix_ie_drag: true,
+      
       // events
       events: ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseenter', 
'mouseleave'],
+      
       // ajax
       ajax_message_loading: 'Loading...',
       json : null,
+      
       // drag options: object or array of object
       drag_enabled: true,
       drag_events: ['start', 'drag', 'stop'],
@@ -825,6 +837,7 @@
         revert: 'invalid',
         distance: 2
       },
+      
       // drop options: object or array of object
       drop_enabled: true,
       drop_events: ['activate', 'deactivate', 'stop', 'over', 'out', 'drop', 
'overtop', 'overbottom', 'overright', 'overleft', 'overcenter', 'outtop', 
'outbottom', 'outright', 'outleft', 'outcenter'],

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to