Skip to content

Instantly share code, notes, and snippets.

@floppya
floppya / gist:1085975
Created July 16, 2011 03:35
django-cms hotfix 2.1.2 traceback
Environment:
Request Method: POST
Request URL: http://localhost:8000/admin/cms/page/1/?language=en&
Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
diff --git a/cms/media/cms/js/toolbar.js b/cms/media/cms/js/toolbar.js
index c33598a..a661da1 100644
--- a/cms/media/cms/js/toolbar.js
+++ b/cms/media/cms/js/toolbar.js
@@ -255,14 +255,20 @@ jQuery(document).ready(function($) {
});
$("#cms_toolbar_edit_button_on").click(function(){
- var url = remove_from_url(window.location.href, "edit");
- url = insert_into_url(url, "edit-off", "");