Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update language on sideframe

  • Loading branch information...
commit 6047f5d735df18f3ad0f08c8cb5cdfe89bef7201 1 parent 883f030
Angelo Dini FinalAngel authored
5 cms/static/cms/js/plugins/cms.sideframe.js
View
@@ -88,9 +88,10 @@ $(document).ready(function () {
open: function (url, animate) {
// prepare iframe
var that = this;
- var param = 'page_id=' + CMS.config.page_id;
+ var language = 'language=' + CMS.config.request.language;
+ var page_id = 'page_id=' + CMS.config.request.page_id;
var holder = this.sideframe.find('.cms_sideframe-frame');
- var iframe = $('<iframe src="'+this._url(url, [param])+'" class="" frameborder="0" />');
+ var iframe = $('<iframe src="'+this._url(url, [language, page_id])+'" class="" frameborder="0" />');
iframe.hide();
var width = this.settings.sideframe.position || this.options.sideframeWidth;
5 cms/templates/cms/toolbar/toolbar_javascript.html
View
@@ -30,7 +30,10 @@
'auth': {% if user.is_authenticated %}true{% else %}false{% endif %},
'debug': {% if debug %}true{% else %}false{% endif %},
'csrf': '{{ csrf_token }}',
- 'page_id': '{{ request.current_page.pk }}',
+ 'request': {
+ 'language': '{{ request.GET.language }}',
+ 'page_id': '{{ request.current_page.pk }}'
+ },
'lang': {
'debug': '{% blocktrans %}Development version using django CMS {{ cms_version }}{% endblocktrans %}',
'cancel': '{% trans "Cancel" %}',
Please sign in to comment.
Something went wrong with that request. Please try again.