Disable drag/drop of images of protected books on IE
authorMichael Ang <mang@archive.org>
Tue, 1 Feb 2011 00:53:58 +0000 (00:53 +0000)
committerMichael Ang <mang@archive.org>
Tue, 1 Feb 2011 00:53:58 +0000 (00:53 +0000)
BookReader/BookReader.js

index 6efb703..26aebbe 100644 (file)
@@ -241,15 +241,15 @@ BookReader.prototype.init = function() {
     });
     
     if (this.protected) {
-        $('.BRpagediv1up').live('contextmenu', this, function(e) {
+        $('.BRpagediv1up').live('contextmenu dragstart', this, function(e) {
             return false;
         });
         
-        $('.BRpageimage').live('contextmenu', this, function(e) {
+        $('.BRpageimage').live('contextmenu dragstart', this, function(e) {
             return false;
         });
 
-        $('.BRpagedivthumb').live('contextmenu', this, function(e) {
+        $('.BRpagedivthumb').live('contextmenu dragstart', this, function(e) {
             return false;
         });