Browse files

removed two redundant icons; use Django's instead

  • Loading branch information...
1 parent dd908c1 commit ed271d829886e12bd874c19528661fd2811c7e8f @evildmp evildmp committed with benjaoming Jan 10, 2013
@@ -12,7 +12,7 @@
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
import copy
-from cms.templatetags.cms_admin import CMS_ADMIN_ICON_BASE
+from cms.templatetags.cms_admin import CMS_ADMIN_ICON_BASE, admin_static_url
class PageSelectWidget(MultiWidget):
"""A widget that allows selecting a page by first selecting a site and then
@@ -171,7 +171,7 @@ def render(self, name, value, attrs=None, choices=()):
add_url = '../../../cms/pageuser/add/'
output.append(u'<a href="%s" class="add-another" id="add_id_%s" onclick="return showAddAnotherPopup(this);"> ' % \
(add_url, name))
- output.append(u'<img src="%sicon_addlink.gif" width="10" height="10" alt="%s"/></a>' % (CMS_ADMIN_ICON_BASE, _('Add Another')))
+ output.append(u'<img src="%simg/icon_addlink.gif" width="10" height="10" alt="%s"/></a>' % (admin_static_url(), _('Add Another')))
return mark_safe(u''.join(output))
Deleted file not rendered
Deleted file not rendered

0 comments on commit ed271d8

Please sign in to comment.