Bind event externally.

This commit is contained in:
Michal Čihař
2010-04-09 15:08:05 +02:00
parent 5309444bba
commit f5a11a3f64
2 changed files with 10 additions and 5 deletions

View File

@@ -1718,5 +1718,10 @@ $(document).ready(function(){
$("#btnDiscard").live("click",function(){
$(".sql").html("<span class=\"syntax\">"+$oldText+"</span>");
});
jQuery('.sqlbutton').click(function(evt){
insertQuery(evt.target.id);
return false;
});
});