fixes #1143
don't even get me started about the current messy status of admin
This commit is contained in:
@@ -77,10 +77,10 @@ function doClickSave() {
|
||||
t.attr('disabled', '');
|
||||
var flash = xhr.getResponseHeader('web2py-component-flash');
|
||||
if(flash) {
|
||||
$('.flash').html(decodeURIComponent(flash))
|
||||
$('.w2p_flash').html(decodeURIComponent(flash))
|
||||
.append('<a href="#" class="close">×</a>')
|
||||
.slideDown();
|
||||
} else $('.flash').hide();
|
||||
} else $('.w2p_flash').hide();
|
||||
try {
|
||||
if(json.error) {
|
||||
window.location.href = json.redirect;
|
||||
@@ -158,10 +158,10 @@ function doToggleBreakpoint(filename, url, sel) {
|
||||
// show flash message (if any)
|
||||
var flash = xhr.getResponseHeader('web2py-component-flash');
|
||||
if(flash) {
|
||||
$('.flash').html(decodeURIComponent(flash))
|
||||
$('.w2p_flash').html(decodeURIComponent(flash))
|
||||
.append('<a href="#" class="close">×</a>')
|
||||
.slideDown();
|
||||
} else $('.flash').hide();
|
||||
} else $('.w2p_flash').hide();
|
||||
try {
|
||||
if(json.error) {
|
||||
window.location.href = json.redirect;
|
||||
|
||||
Reference in New Issue
Block a user