Set embedded iframe border to 0
authorMichael Ang <mang@archive.org>
Wed, 24 Nov 2010 00:01:42 +0000 (00:01 +0000)
committerMichael Ang <mang@archive.org>
Wed, 24 Nov 2010 00:01:42 +0000 (00:01 +0000)
BookReader/BookReader.js
BookReaderIA/datanode/BookReaderJSIA.php

index aec0785..d2eacfc 100644 (file)
@@ -5129,8 +5129,7 @@ BookReader.prototype.buildShareDiv = function(jShareDiv)
         }
         
         // console.log(params);
-        var embedLink = self.getEmbedURL( params );    
-        form.find('.BRframeEmbed').val('<iframe src="' + embedLink + '" width="480" height="480"></iframe>');
+        form.find('.BRframeEmbed').val(self.getEmbedCode());
     })
     jForm.find('input[name=thispage]').trigger('change');
     jForm.find('input, textarea').bind('focus', function() {
index 0f7b6bf..79c9895 100644 (file)
@@ -330,7 +330,7 @@ br.getEmbedURL = function(viewParams) {
 //________
 // Returns the embed code HTML fragment suitable for copy and paste
 br.getEmbedCode = function() {
-    return "<iframe src='" + this.getEmbedURL() + "' width='480px' height='430px'></iframe>";
+    return "<iframe src='" + this.getEmbedURL() + "' width='480px' height='430px' frameborder='0' ></iframe>";
 }
 
 // getOpenLibraryRecord