Last change
on this file since 345 was 239, checked in by luc, 9 years ago |
Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | /*!
|
---|
2 | * jQuery Right-Click Plugin
|
---|
3 | *
|
---|
4 | * Version 1.01
|
---|
5 | *
|
---|
6 | * Cory S.N. LaViska
|
---|
7 | * A Beautiful Site (http://abeautifulsite.net/)
|
---|
8 | * 20 December 2008
|
---|
9 | *
|
---|
10 | * Visit http://abeautifulsite.net/notebook/68 for more information
|
---|
11 | *
|
---|
12 | * License:
|
---|
13 | * This plugin is dual-licensed under the GNU General Public License and the MIT License
|
---|
14 | * and is copyright 2008 A Beautiful Site, LLC.
|
---|
15 | */
|
---|
16 | if(jQuery){(function(){$.extend($.fn,{rightClick:function(a){$(this).each(function(){$(this).mousedown(function(c){var b=c;if($.browser.safari&&navigator.userAgent.indexOf("Mac")!=-1&&parseInt($.browser.version,10)<=525){if(b.button==2){a.call($(this),b);return false}else{return true}}else{$(this).mouseup(function(){$(this).unbind("mouseup");if(b.button==2){a.call($(this),b);return false}else{return true}})}});$(this)[0].oncontextmenu=function(){return false}});return $(this)},rightMouseDown:function(a){$(this).each(function(){$(this).mousedown(function(b){if(b.button==2){a.call($(this),b);return false}else{return true}});$(this)[0].oncontextmenu=function(){return false}});return $(this)},rightMouseUp:function(a){$(this).each(function(){$(this).mouseup(function(b){if(b.button==2){a.call($(this),b);return false}else{return true}});$(this)[0].oncontextmenu=function(){return false}});return $(this)},noContext:function(){$(this).each(function(){$(this)[0].oncontextmenu=function(){return false}});return $(this)}})})(jQuery)};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.