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()
})
})

View File

@@ -15,6 +15,6 @@
{assign var=img_src value="{$base_uri}images/Status_Icons/cross-circle.png"}
{/case}
{/switch}
<a href="{$base_uri}site/id/{$site->id}/{if $start}start/{$start}/{/if}{if $end}end/{$end}/{/if}" onclick="location.href=this.href" class="" rel="popover" data-content="{include file="fragments/site-status-details.tpl"}" data-original-title="{StatusBoard_Status::name($status)|escape:html}">
<a href="{$base_uri}site/id/{$site->id}/{if $start}start/{$start}/{/if}{if $end}end/{$end}/{/if}" class="" rel="popover" data-content="{include file="fragments/site-status-details.tpl"}" data-original-title="{StatusBoard_Status::name($status)|escape:html}">
<img src="{$img_src}" />
</a>