Commit 170268c2 authored by Kevin Gutierrez's avatar Kevin Gutierrez
Browse files

Fix tabs

parent d672ac13
var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = {
'chooser': function(modal, jsonData) {
chooser: function(modal, jsonData) {
var searchUrl = $('form.video-search', modal.body).attr('action');
/* currentTag stores the tag currently being filtered on, so that we can
......@@ -101,8 +101,8 @@ var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = {
// autocomplete: {source: "{{ autocomplete_url|addslashes }}"}
// });
},
'video_chosen': function(modal, jsonData) {
video_chosen: function(modal, jsonData) {
modal.respond('videoChosen', jsonData['result']);
modal.close();
},
}
};
......@@ -19,7 +19,7 @@
<a class="image-choice" href="{% if will_select_format %}{% url 'wagtailvideos:chooser_select_format' video.id %}{% else %}{% url 'wagtailvideos:video_chosen' video.id %}{% endif %}">
<div class="image">
{% if video.thumbnail %}
<img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
<img src="{{ video.thumbnail.url }}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% else %}
<img width="165" height="165" class="show-transparency" alt=""/>
{% endif %}
......
......@@ -21,7 +21,7 @@
<a class="image-choice" href="{% url 'wagtailvideos:edit' video.id %}">
<div class="image">
{% if video.thumbnail %}
<img src="{{video.thumbnail.url}}" height="165" width="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
<img src="{{ video.thumbnail.url }}" height="165" width="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% endif %}
</div>
<h3>{{ video.title|ellipsistrim:60 }}</h3>
......
......@@ -6,7 +6,7 @@
{% block chosen_state_view %}
<div class="preview-image">
{% if video and video.thumbnail %}
<img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
<img src="{{ video.thumbnail.url }}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% else %}
<img width="165" height="165" class="show-transparency" alt=""/>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment