Tidy js and fix root cause for popover links blocking

This commit is contained in:
2011-12-21 02:15:40 +00:00
parent 9af9c4dcb2
commit 411e22b48b
2 changed files with 10 additions and 12 deletions

View File

@@ -8,8 +8,17 @@
var sb = {
init: function() {
// Properly format any alert boxes
$('.alert-data').alert();
// Properly format any tab widgets
$('.tabs').tabs();
// Display popovers on all configured items
$("a[rel=popover]").popover({
offset: 10,
html: true,
});
},
usercp: {
@@ -41,14 +50,3 @@ var sb = {
};
$('document').ready(sb.init);
$(function () {
$("a[rel=popover]")
.popover({
offset: 10,
html: true
})
.click(function(e) {
e.preventDefault()
})
})