Skip to content

Commit

Permalink
Use on instead of live
Browse files Browse the repository at this point in the history
  • Loading branch information
pusewicz committed Feb 15, 2013
1 parent d18e374 commit 6f5b9a8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/rack/insight/public/__insight__/insight.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,44 +75,44 @@ jQuery(function($) {
$(document).unbind('keydown.insight');
$('.panel_content').hide();
});
$('#rack-insight ul.panels li a').live('click', function() {
$('#rack-insight ul.panels li a').on('click', function() {
$.insight.panel_id = this.className
$.insight.switchCurrentPanel()
$.insight.toggleCurrent()
return false;
});
$('#rack-insight_debug_window a.back').live('click',function() {
$('#rack-insight_debug_window a.back').on('click',function() {
$(this).parent().hide();
return false;
});
$('#rack-insight a.remote_call').live('click',function() {
$('#rack-insight a.remote_call').on('click',function() {
$('#rack-insight_debug_window').load(this.href, null, function() {
$('#rack-insight_debug_window').show();
})
return false;
});
$('#rack-insight a.reveal_backtrace').live('click',function() {
$('#rack-insight a.reveal_backtrace').on('click',function() {
$(this).parents("tr").next().toggle();
return false;
});
$('#rack-insight a.reveal_response').live('click',function() {
$('#rack-insight a.reveal_response').on('click',function() {
$(this).parents("tr").next().next().toggle();
return false;
});
$('#rack-insight a.insight_close').live('click',function() {
$('#rack-insight a.insight_close').on('click',function() {
$(document).trigger('close.insight');
return false;
});
$('#request_id_menu').live('change', function(){
$('#request_id_menu').on('change', function(){
$.insight.changeRequest($(this).val())
});
$('#rack-insight_debug_button').live('click',function(){
$('#rack-insight_debug_button').on('click',function(){
new_position = ($('#rack-insight').attr('class')== 'rack-insight_top') ? 'bottom' : 'top';
document.createCookie('rack-insight_position', new_position);
$('#rack-insight').removeClass('rack-insight_top rack-insight_bottom').addClass('rack-insight_' + new_position);
return false;
});
$('#rack-insight_disable_button').live('click',function(){
$('#rack-insight_disable_button').on('click',function(){
document.insightDisable();
return false;
});
Expand Down

0 comments on commit 6f5b9a8

Please sign in to comment.