Ticket #1609: 1609.patch
File 1609.patch, 1.2 KB (added by , 17 years ago) |
---|
-
fck.js
270 270 271 271 OnDoubleClick : function( element ) 272 272 { 273 var oHandler = FCK.RegisteredDoubleClickHandlers[ element.tagName ] ;273 var oHandler = FCK.RegisteredDoubleClickHandlers[ element.tagName.toUpperCase() ] ; 274 274 if ( oHandler ) 275 275 oHandler( element ) ; 276 277 // Generic handler for any element 278 oHandler = FCK.RegisteredDoubleClickHandlers[ '*' ] ; 279 if ( oHandler ) 280 oHandler( element ) ; 276 281 }, 277 282 278 283 // Register objects that can handle double click operations. 279 284 RegisterDoubleClickHandler : function( handlerFunction, tag ) 280 285 { 281 FCK.RegisteredDoubleClickHandlers[ tag.toUpperCase() ] = handlerFunction ; 286 var nodeName = tag || '*' ; 287 nodeName = nodeName.toUpperCase() ; 288 289 if ( FCK.RegisteredDoubleClickHandlers[ nodeName ] ) 290 { 291 var oldfunction = FCK.RegisteredDoubleClickHandlers[ nodeName ] ; 292 FCK.RegisteredDoubleClickHandlers[ nodeName ] = function( arg ) 293 { 294 oldfunction( arg ) ; 295 handlerFunction( arg ) ; 296 } 297 return ; 298 } 299 FCK.RegisteredDoubleClickHandlers[ nodeName ] = handlerFunction ; 282 300 }, 283 301 284 302 OnAfterSetHTML : function()