jQuery -> $ in admin editor

This commit is contained in:
ilvalle
2013-10-23 14:07:51 +02:00
parent 339de2fa41
commit ff7cb99bfe
5 changed files with 82 additions and 78 deletions
+1 -1
View File
@@ -583,7 +583,7 @@ def edit():
response.headers["web2py-component-flash"] = T('Preferences saved correctly')
else:
response.headers["web2py-component-flash"] = T('Preferences saved on session only')
response.headers["web2py-component-command"] = "update_editor(%s);jQuery('a[href=#editor_settings] button.close').click();" % response.json(config.read())
response.headers["web2py-component-command"] = "update_editor(%s);$('a[href=#editor_settings] button.close').click();" % response.json(config.read())
return
else:
details = {'filename':'settings', 'id':'editor_settings', 'force': False}