Skip to content

Commit

Permalink
added toggle button, kinda wonky now so its commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
justquick committed Dec 30, 2009
1 parent 89c26f9 commit 46ae6bc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions logjam/templates/logjam/admin.html
Expand Up @@ -16,6 +16,27 @@ <h1 id="site-name">LogJam Admin</h1>
$(".tabs").tabs();
$("#from").datepicker();
$("#to").datepicker();
//all hover and click logic for buttons
$(".fg-button:not(.ui-state-disabled)")
.hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
}
)
.mousedown(function(){
$(this).parents('.fg-buttonset-single:first').find(".fg-button.ui-state-active").removeClass("ui-state-active");
if( $(this).is('.ui-state-active.fg-button-toggleable, .fg-buttonset-multi .ui-state-active') ){ $(this).removeClass("ui-state-active"); }
else { $(this).addClass("ui-state-active"); }
})
.mouseup(function(){
if(! $(this).is('.fg-button-toggleable, .fg-buttonset-single .fg-button, .fg-buttonset-multi .fg-button') ){
$(this).removeClass("ui-state-active");
}
});

});
</script>

Expand All @@ -33,6 +54,7 @@ <h1 id="site-name">LogJam Admin</h1>
{% for e in errors %}
<h3><a href="#">{{ e.method }} {{ e.path }} - {% last_line e.exception %}</a></h3>
<div class="tabs" style="height: 300px; overflow: auto;">
<!--<button class="fg-button ui-state-default fg-button-toggleable ui-corner-all">Toggle</button>-->
<ul>
<li><a href="#err{{ forloop.counter }}-info">Info</a></li>
<li><a href="#err{{ forloop.counter }}-exc">Exception</a></li>
Expand Down

0 comments on commit 46ae6bc

Please sign in to comment.