Browse files

removed two redundant icons; use Django's instead

  • Loading branch information...
1 parent bb8c827 commit e353318fe7ccbb219391274ba8cdb774a3fbb275 @evildmp evildmp committed Jan 10, 2013
4 cms/forms/
@@ -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))
BIN cms/static/cms/images/icon_addlink.gif
Deleted file not rendered
BIN cms/static/cms/images/icon_deletelink.gif
Deleted file not rendered

0 comments on commit e353318

Please sign in to comment.