Merge remote-tracking branch 'web2py/master'
This commit is contained in:
@@ -54,8 +54,8 @@ header, main, footer {display:block; with:100%} /* IE fix */
|
||||
.right {right:0; text-align:right}
|
||||
.middle div {vertical-align:middle}
|
||||
.bottom div {vertical-align:bottom}
|
||||
.xscroll {overflow-x:scroll}
|
||||
.yscroll {overflow-y:scroll}
|
||||
.xscroll {overflow-x:scroll !important}
|
||||
.yscroll {overflow-y:scroll !important}
|
||||
.nowrap {white-space:nowrap; overflow-x:hidden}
|
||||
.fill {width:100%}
|
||||
.lifted {box-shadow:5px 5px 10px #666}
|
||||
@@ -75,7 +75,7 @@ input:invalid, input.error, textarea:invalid, textarea.error {background: #ffdfd
|
||||
/*** grid ***/
|
||||
.container {margin-right:-20px}
|
||||
.container>.quarter, .container>.half, .container>.third, .container>.twothirds, .container>.threequarters {display:inline-block; padding: 0 20px 0 0; vertical-align:top}
|
||||
.container>.fill{display: inline-block}
|
||||
.container>.fill{display: inline-block; padding-right: 20px; margin-right:-10px}
|
||||
.container img, .container video {max-width:100%}
|
||||
.max900 {margin-left:auto; margin-right:auto}
|
||||
|
||||
|
||||
@@ -562,7 +562,7 @@
|
||||
var flash = $('.w2p_flash');
|
||||
web2py.hide_flash();
|
||||
flash.html(message).addClass(status);
|
||||
if (flash.html()) flash.slideDown();
|
||||
if (flash.html()) flash.append('<span id="closeflash"> × </span>').slideDown();
|
||||
},
|
||||
hide_flash: function () {
|
||||
$('.w2p_flash').fadeOut(0).html('');
|
||||
@@ -617,8 +617,8 @@
|
||||
}
|
||||
if (confirm_message) {
|
||||
if (confirm_message == 'default') {
|
||||
confirm_message = w2p_ajax_confirm_message ||
|
||||
'Are you sure you want to delete this object?';
|
||||
confirm_message = !web2py.isUndefined(w2p_ajax_confirm_message) ?
|
||||
w2p_ajax_confirm_message : 'Are you sure you want to delete this object?';
|
||||
}
|
||||
if (!web2py.confirm(confirm_message)) {
|
||||
web2py.stopEverything(e);
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<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) }}'
|
||||
{{=ASSIGNJS(
|
||||
w2p_ajax_confirm_message = T('Are you sure you want to delete this object?'),
|
||||
w2p_ajax_date_format = T('%Y-%m-%d'),
|
||||
w2p_ajax_datetime_format = T('%Y-%m-%d %H:%M:%S'),
|
||||
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'))
|
||||
|
||||
Reference in New Issue
Block a user