Tidy js and fix root cause for popover links blocking
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user