From: yomguy Date: Wed, 25 Jul 2012 02:24:19 +0000 (+0200) Subject: bugfix X-Git-Tag: 0.8.1^2^2~5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=18372cf4cf0c87ae10b54d6c9bcf476dc71d98c3;p=teleforma.git bugfix --- diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index dfd9022c..cb11cfb4 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -33,7 +33,7 @@ $(document).ready(function(){ p.toggleClass('component_icon button icon_edit') p.html('Publish') }); - }, + } } jQuery(window).ready(function(){ @@ -42,12 +42,10 @@ $(document).ready(function(){ p.unbind('click').click(function() { if (p.hasClass('icon_edit')){ f.publish('{{media.id}}'); - alert('{{media.id}}'); return false; } if (p.hasClass('icon_speaker')) { f.unpublish('{{media.id}}'); - alert('{{media.id}}'); return false; } } @@ -78,7 +76,7 @@ $(document).ready(function(){  {% trans "Video" %} {% endif %} {% if user.is_staff %} - Publish + {% if media.is_published %}Unpublish{% else %}Publish{% endif %} {% endif %}