Skip to content

Commit

Permalink
[FIX] fixed javascript bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bagwanpankaj committed Jan 23, 2012
1 parent e09c882 commit e625da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/humongous/public/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(document).ready(function(){
} );
$(".databases .delete").bind( 'click', function(e){
var elem = $(".database_list").find(".active");
if(!!elem){
if(!elem.length){
alert("Please choose a database to delete.");
return false;
}
Expand Down Expand Up @@ -104,7 +104,7 @@ $(document).ready(function(){
} );
$(".collections .delete").bind( 'click', function(e){
var elem = $(".collections_list").find(".active");
if(!!elem){
if(!elem.length){
alert("Please choose a collection to delete.");
return false;
}
Expand Down

0 comments on commit e625da9

Please sign in to comment.