Ticket #4825: 4825_2.patch
File 4825_2.patch, 947 bytes (added by , 14 years ago) |
---|
-
_source/plugins/menu/plugin.js
133 133 item.order = this.items.length; 134 134 135 135 this.items.push( item ); 136 136 137 }, 137 138 138 139 removeAll : function() … … 217 218 }, 218 219 this); 219 220 } 220 221 222 // Prevent contextmenu when clicking right mouse button twice #4825. 223 panel.element.on( 'contextmenu', function( event ) 224 { 225 event.data.preventDefault( ); 226 } ); 227 221 228 // Put the items in the right order. 222 229 sortItems( items ); 223 230 … … 243 250 244 251 // Inject the HTML inside the panel. 245 252 element.setHtml( output.join( '' ) ); 246 247 253 // Show the panel. 248 254 if ( this.parent ) 249 255 this.parent._.panel.showAsChild( panel, this.id, offsetParent, corner, offsetX, offsetY );