From 18372cf4cf0c87ae10b54d6c9bcf476dc71d98c3 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 25 Jul 2012 04:24:19 +0200 Subject: [PATCH] bugfix --- teleforma/templates/teleforma/course_media.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 %} -- 2.39.5