fix message finding and add a top bar

This commit is contained in:
2012-12-11 15:10:26 +01:00
parent 9f09d8f10b
commit 627174d493
4 changed files with 17 additions and 15 deletions
@@ -164,7 +164,9 @@ $(function(){
$locale = Qstorage.getItem('locale') || 'en';
if(Qstorage.getItem('message')){
var container = $('.alert-success');
container.find('div').text($translations[$locale]['messages'][Qstorage.getItem('message')]);
var msg_finder = Qstorage.getItem('message');
if(msg_finder.indexOf('.') == -1) msg_finder = 'messages.'+msg_finder;
container.find('div').text(t(msg_finder));
container.show();
Qstorage.removeItem('message');
}
@@ -16,6 +16,8 @@ body
margin-top: 4px
margin-bottom: 6px
padding-bottom: 0
.main-content
padding-top: 16px
.supplier-is-closed
.alert
form
@@ -1,6 +1,6 @@
@import "bootstrap"
body
padding-top: 60px
padding-top: 42px
@import "bootstrap-responsive"
// Set the correct sprite paths