Last change
on this file since 27149 was
27149,
checked in by plg, 10 years ago
|
prevent drag'n drop images (in addition to right click)
|
File size:
477 bytes
|
Rev | Line | |
---|
[9982] | 1 | {footer_script require="jquery"} |
---|
[6515] | 2 | <!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl --> |
---|
[9982] | 3 | jQuery(document).ready(function() {ldelim} |
---|
[20062] | 4 | jQuery(document).on('contextmenu', '{','|@implode:$RIGHTCK.Selectors}', function() {ldelim} |
---|
| 5 | return false; |
---|
[27149] | 6 | }); |
---|
| 7 | |
---|
| 8 | jQuery(document).on('dragstart', '{','|@implode:$RIGHTCK.Selectors}', function() {ldelim} |
---|
| 9 | return false; |
---|
| 10 | }); |
---|
[6502] | 11 | }); |
---|
[9982] | 12 | {/footer_script} |
---|
Note: See
TracBrowser
for help on using the repository browser.