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

Revision 27149, 477 bytes checked in by plg, 6 years ago (diff)

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

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.