Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Place error messages above mock results and ad
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza committed Feb 11, 2015
1 parent b001588 commit 0db34d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/App/DuckPAN/Web.pm
Expand Up @@ -168,7 +168,7 @@ sub request {
} else {
p($res->status_line, color => { string => 'red' });
my $errormsg = (pop @{[split'::', $spice_class]}). ": ".$res->status_line;
$body = '$("div.content-wrap").append("<div class=\"msg msg--warning\">'. $errormsg .'</div>");';
$body = '$("#message").removeClass("is-hidden").append("<div class=\"msg msg--warning\">'. $errormsg .'</div>");';
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion share/duckpan.js
Expand Up @@ -4,7 +4,7 @@
var oldSpiceFailed = Spice.failed;

// Create div to collect our warnings
$('div.content-wrap').append('<div id="spice-errors"></div>');
$("#message").removeClass("is-hidden").append('<div id="spice-errors"></div>');

// define new Spice.failed which calls the original
// and then notifies devs on the frontend
Expand Down

0 comments on commit 0db34d5

Please sign in to comment.