Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed two redundant icons; use Django's instead

  • Loading branch information...
commit ed271d829886e12bd874c19528661fd2811c7e8f 1 parent dd908c1
@evildmp evildmp authored benjaoming committed
View
4 cms/forms/widgets.py
@@ -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))
View
BIN  cms/static/cms/images/icon_addlink.gif
Deleted file not rendered
View
BIN  cms/static/cms/images/icon_deletelink.gif
Deleted file not rendered

0 comments on commit ed271d8

Please sign in to comment.
Something went wrong with that request. Please try again.