Skip to content

Instantly share code, notes, and snippets.

@crodjer
Created June 7, 2011 10:16
Show Gist options
  • Save crodjer/1011993 to your computer and use it in GitHub Desktop.
Save crodjer/1011993 to your computer and use it in GitHub Desktop.
Show embed code in one line and make the textarea readonly
diff --git a/templates/_sharing_widget.html b/templates/_sharing_widget.html
index eaddcf6..f6ffe94 100644
--- a/templates/_sharing_widget.html
+++ b/templates/_sharing_widget.html
@@ -25,7 +25,7 @@
<h3>{% trans 'Embed this video in your site' %} <a class="embed_options_link" target="embedoptions" href="https://github.com/8planes/mirosubs/wiki/Embed-Code-Usage-Guide">options</a></h3>
<p class="mirosubs-embed">
- <textarea>{{share_panel_embed_code}}</textarea>
+ <textarea readonly="readonly">{{share_panel_embed_code}}</textarea>
<span>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="110"
diff --git a/templates/videos/_offsite_widget.html b/templates/videos/_offsite_widget.html
index a4112b8..dc00cf0 100644
--- a/templates/videos/_offsite_widget.html
+++ b/templates/videos/_offsite_widget.html
@@ -1,5 +1 @@
-<script type="text/javascript" src="{{MEDIA_URL}}embed{{embed_version}}.js">
-(
- {{ embed_params|safe }}
-)
-</script>
+<script type="text/javascript" src="{{MEDIA_URL}}embed{{embed_version}}.js">({{ embed_params|safe })</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment