fixed undefined var in web2py.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user