Various fixes.

see #204
This commit is contained in:
Antoine Nguyen
2012-04-10 14:44:19 +02:00
parent b4e24dc731
commit f79bf22763
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
this.$element.append(nbox);
if (timer != undefined) {
window.setTimeout(function() {
$('.alert').alert('close');
nbox.alert('close');
}, timer);
}
return this;
+4 -1
View File
@@ -40,7 +40,10 @@ function modalbox(e, css, defhref, defcb) {
}
function modalbox_autowidth(e) {
modalbox.apply(this, [e, {width: 'auto'}]);
modalbox.apply(this, [e, {
width: 'auto',
'margin-left': function() { return -($(this).width() / 2); }
}]);
}
/*