source: extensions/rightClick/template/rightClick_protect.tpl @ 28566

Last change on this file since 28566 was 27149, checked in by plg, 10 years ago

prevent drag'n drop images (in addition to right click)

File size: 477 bytes
Line 
1{footer_script require="jquery"}
2<!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl -->
3jQuery(document).ready(function() {ldelim}
4  jQuery(document).on('contextmenu', '{','|@implode:$RIGHTCK.Selectors}',  function() {ldelim}
5    return false;
6  });
7       
8  jQuery(document).on('dragstart', '{','|@implode:$RIGHTCK.Selectors}',  function() {ldelim}
9    return false;
10  });
11});
12{/footer_script}
Note: See TracBrowser for help on using the repository browser.