Skip to content

Commit

Permalink
fixed web2py_ajax.html and escaping (not backward compatible fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Sep 27, 2016
1 parent 4026357 commit 78cc6d6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
10 changes: 5 additions & 5 deletions applications/admin/views/web2py_ajax.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script type="text/javascript"><!--
// These variables are used by the web2py_ajax_init function in web2py_ajax.js (which is loaded below).
var w2p_ajax_confirm_message = "{{=T('Are you sure you want to delete this object?')}}";
var w2p_ajax_date_format = "{{=T('%Y-%m-%d')}}";
var w2p_ajax_datetime_format = "{{=T('%Y-%m-%d %H:%M:%S')}}";
var w2p_ajax_disable_with_message = "{{=T('Working...')}}";
var ajax_error_500 = "{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}"
var w2p_ajax_confirm_message = '{{=T('Are you sure you want to delete this object?')}}';
var w2p_ajax_disable_with_message = '{{=T('Working...')}}';
var w2p_ajax_date_format = '{{=T('%Y-%m-%d')}}';
var w2p_ajax_datetime_format = '{{=T('%Y-%m-%d %H:%M:%S')}}';
var ajax_error_500 = '{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}';
//--></script>
{{
response.files.insert(0,URL('static','js/jquery.js'))
Expand Down
9 changes: 5 additions & 4 deletions applications/examples/views/web2py_ajax.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script type="text/javascript"><!--
// These variables are used by the web2py_ajax_init function in web2py_ajax.js (which is loaded below).
var w2p_ajax_confirm_message = "{{=T('Are you sure you want to delete this object?')}}";
var w2p_ajax_date_format = "{{=T('%Y-%m-%d')}}";
var w2p_ajax_datetime_format = "{{=T('%Y-%m-%d %H:%M:%S')}}";
var ajax_error_500 = "{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}"
var w2p_ajax_confirm_message = '{{=T('Are you sure you want to delete this object?')}}';
var w2p_ajax_disable_with_message = '{{=T('Working...')}}';
var w2p_ajax_date_format = '{{=T('%Y-%m-%d')}}';
var w2p_ajax_datetime_format = '{{=T('%Y-%m-%d %H:%M:%S')}}';
var ajax_error_500 = '{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}';
//--></script>
{{
response.files.insert(0,URL('static','js/jquery.js'))
Expand Down
10 changes: 5 additions & 5 deletions applications/welcome/views/web2py_ajax.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script type="text/javascript"><!--
// These variables are used by the web2py_ajax_init function in web2py_ajax.js (which is loaded below).
var w2p_ajax_confirm_message = "{{=T('Are you sure you want to delete this object?')}}";
var w2p_ajax_disable_with_message = "{{=T('Working...')}}";
var w2p_ajax_date_format = "{{=T('%Y-%m-%d')}}";
var w2p_ajax_datetime_format = "{{=T('%Y-%m-%d %H:%M:%S')}}";
var ajax_error_500 = "{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}"
var w2p_ajax_confirm_message = '{{=T('Are you sure you want to delete this object?')}}';
var w2p_ajax_disable_with_message = '{{=T('Working...')}}';
var w2p_ajax_date_format = '{{=T('%Y-%m-%d')}}';
var w2p_ajax_datetime_format = '{{=T('%Y-%m-%d %H:%M:%S')}}';
var ajax_error_500 = '{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}';
//--></script>
{{
response.files.insert(0,URL('static','js/jquery.js'))
Expand Down

0 comments on commit 78cc6d6

Please sign in to comment.