Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

click on table to close column panel

thanks to @saratusar
  • Loading branch information...
commit f7c9164ec0d2248897d1df98305e986ea402340d 1 parent 50eb1e7
Marco Pegoraro authored October 04, 2012

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  jquery.mediaTable.js
8  jquery.mediaTable.js
@@ -122,12 +122,18 @@ http://www.consulenza-web.com/2012/01/mediatable-jquery-plugin/
122 122
 				wdg.$menu.toggleClass('mediaTableMenuClosed');
123 123
 			});
124 124
 			
  125
+			wdg.$table.click(function() {
  126
+                wdg.$menu.addClass('mediaTableMenuClosed');
  127
+            });
  128
+			
125 129
 			// Toggle list visibilty when mouse go outside the list itself.
126  
-			wdg.$menu.$list.bind('mouseleave',function(){
  130
+			wdg.$menu.$list.bind('mouseleave',function(e){
127 131
 				wdg.$menu.toggleClass('mediaTableMenuClosed');
  132
+				e.stopPropagation();
128 133
 			});
129 134
 			
130 135
 			
  136
+			
131 137
 		}; // EndOf: "__initMenu()" ###
132 138
 		
133 139
 		var __thInit = function( i, wdg ) {

0 notes on commit f7c9164

Please sign in to comment.
Something went wrong with that request. Please try again.