From: yomguy Date: Wed, 25 Jul 2012 02:34:38 +0000 (+0200) Subject: fix icons X-Git-Tag: 0.8.1^2^2~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4d0636266fda4f6ef17562b39148ccc02432de5a;p=teleforma.git fix icons --- diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index d620dd46..3b607910 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -23,14 +23,14 @@ $(document).ready(function(){ publish : function(id){ var p = jQuery('#publish'); json([id],'teleforma.publish_media',function(){ - p.removeClass('icon_edit').addClass('icon_speaker') + p.removeClass('icon_ok').addClass('icon_delete') p.html('Unpublish') }); }, unpublish : function(id){ var p = jQuery('#publish'); json([id],'teleforma.unpublish_media',function(){ - p.removeClass('icon_speaker').addClass('icon_edit') + p.removeClass('icon_delete').addClass('icon_ok') p.html('Publish') }); } @@ -40,11 +40,11 @@ $(document).ready(function(){ var p = jQuery('#publish'); var f = mediaUtils; p.unbind('click').click(function() { - if (p.hasClass('icon_edit')){ + if (p.hasClass('icon_ok')){ f.publish('{{media.id}}'); return false; } - if (p.hasClass('icon_speaker')) { + if (p.hasClass('icon_delete')) { f.unpublish('{{media.id}}'); return false; } @@ -76,7 +76,7 @@ $(document).ready(function(){  {% trans "Video" %} {% endif %} {% if user.is_staff %} - {% if media.is_published %}Unpublish{% else %}Publish{% endif %} + {% if media.is_published %}Unpublish{% else %}Publish{% endif %} {% endif %}