From adc3cf76d1f6aa626beb0896cf34c4fbf4690489 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 31 Oct 2011 18:46:09 +0000 Subject: [PATCH] disabled right-click for images --- urbstudio/static/js/projects.js | 5 ++++- urbstudio/static/js/pronit.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/urbstudio/static/js/projects.js b/urbstudio/static/js/projects.js index 1769e64..e13c75d 100755 --- a/urbstudio/static/js/projects.js +++ b/urbstudio/static/js/projects.js @@ -1,5 +1,8 @@ -$(function(){ +$(function() { + $('#slidesContainer').bind("contextmenu", function(e) { + return false; + }); $('.projectThumb').click(function() { // alert("hi"); diff --git a/urbstudio/static/js/pronit.js b/urbstudio/static/js/pronit.js index 0b8482a..a832a32 100755 --- a/urbstudio/static/js/pronit.js +++ b/urbstudio/static/js/pronit.js @@ -1,6 +1,9 @@ $(document).ready(function() { $('#logo').fadeIn(4000); + $('#slider').bind("contextmenu", function(e) { + return false; + }); $(window).resize(function() { var width = $(this).width();