jsortable.tpl - Removed buggy function
authorColeman Watts <coleman@civicrm.org>
Sun, 4 May 2014 23:32:48 +0000 (19:32 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 4 May 2014 23:32:48 +0000 (19:32 -0400)
I really don't know what this function was attempting to do but it was crashing jQuery.

templates/CRM/common/jsortable.tpl

index e85f18d851270f03bd4081b45f03b0907b8dc1f6..3e483314aa7778ba388f7e1cc8029d1e29c69c6f 100644 (file)
@@ -168,29 +168,6 @@ eval('tableId =[' + tableId + ']');
     }
     var object;
 
-    if ( !useAjax ) {
-    cj('a.action-item').click( function(){
-        object = cj(this);
-        cj('table.display').one( 'mouseover', function() {
-            var nNodes     = oTable.fnGetNodes( );
-            var tdSelected = cj(object).closest('td');
-            var closestEle = cj(object).closest('tr').attr('id');
-            cj.each( nNodes, function(i,n) {
-                //operation on selected row element.
-                if ( closestEle == n.id ){
-                    var col = 0;
-                    cj('tr#' + closestEle + ' td:not(.hiddenElement)').each( function() {
-                        if ( tdSelected.get(0) !== cj(this).get(0)  ){
-                            oTable.fnUpdate( cj(this).html() , i, col );
-                        }
-                        col++;
-                    });
-                }
-            });
-        });
-    });
-    }
-
     });
 });