X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..13744e6a262e924836be809b7d7845c2c8eaadc5:/src/sponsors/widgets.py diff --git a/src/sponsors/widgets.py b/src/sponsors/widgets.py index 0ddab3809..764154946 100644 --- a/src/sponsors/widgets.py +++ b/src/sponsors/widgets.py @@ -12,8 +12,8 @@ from sponsors import models class SponsorPageWidget(forms.Textarea): class Media: js = ( - 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', - 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js', + '//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', + '//ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js', settings.STATIC_URL + 'sponsors/js/jquery.json.min.js', settings.STATIC_URL + 'sponsors/js/footer_admin.js', ) @@ -28,6 +28,5 @@ class SponsorPageWidget(forms.Textarea): output.append(u'\n' % - (name, sponsors_js)) + output.append(u'$("#id_%s").sponsorsFooter({sponsors: [%s]}); });\n' % (name, sponsors_js)) return mark_safe(u''.join(output))