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

Fix tabs

parent d672ac13
var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = { var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = {
'chooser': function(modal, jsonData) { chooser: function(modal, jsonData) {
var searchUrl = $('form.video-search', modal.body).attr('action'); var searchUrl = $('form.video-search', modal.body).attr('action');
/* currentTag stores the tag currently being filtered on, so that we can /* currentTag stores the tag currently being filtered on, so that we can
...@@ -101,8 +101,8 @@ var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = { ...@@ -101,8 +101,8 @@ var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = {
// autocomplete: {source: "{{ autocomplete_url|addslashes }}"} // autocomplete: {source: "{{ autocomplete_url|addslashes }}"}
// }); // });
}, },
'video_chosen': function(modal, jsonData) { video_chosen: function(modal, jsonData) {
modal.respond('videoChosen', jsonData['result']); modal.respond('videoChosen', jsonData['result']);
modal.close(); modal.close();
}, }
}; };
...@@ -19,7 +19,7 @@ ...@@ -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 %}"> <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"> <div class="image">
{% if video.thumbnail %} {% 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 %} {% else %}
<img width="165" height="165" class="show-transparency" alt=""/> <img width="165" height="165" class="show-transparency" alt=""/>
{% endif %} {% endif %}
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<a class="image-choice" href="{% url 'wagtailvideos:edit' video.id %}"> <a class="image-choice" href="{% url 'wagtailvideos:edit' video.id %}">
<div class="image"> <div class="image">
{% if video.thumbnail %} {% 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 %} {% endif %}
</div> </div>
<h3>{{ video.title|ellipsistrim:60 }}</h3> <h3>{{ video.title|ellipsistrim:60 }}</h3>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{% block chosen_state_view %} {% block chosen_state_view %}
<div class="preview-image"> <div class="preview-image">
{% if video and video.thumbnail %} {% 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 %} {% else %}
<img width="165" height="165" class="show-transparency" alt=""/> <img width="165" height="165" class="show-transparency" alt=""/>
{% endif %} {% 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