Skip to content

Commit

Permalink
+ JS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Oct 15, 2010
1 parent 19c16fb commit 761ded7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -41,9 +41,9 @@ var PickyController = function(searchEngine) {
this.appendResults = function(data) {
this.view.appendResults(data);
};
this.showNoResults = function(data) {
this.showEmptyResults = function(data) {
this.view.setSearchStatus(this.searchStatus(data));
this.view.showNoResults(this.searchPeople, this.searchCompanies);
this.view.showEmptyResults(this.searchPeople, this.searchCompanies);
};

this.insert = function(query, full) {
Expand All @@ -67,7 +67,7 @@ var PickyController = function(searchEngine) {
data = self.successCallback(data, query) || data;

if (data.total == 0) {
self.showNoResults(data);
self.showEmptyResults(data);
} else if (self.mustShowAllocationCloud(data)) {
self.view.showAllocationCloud(data);
self.view.updateResultCounter(data.total);
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_example/webapp/javascripts/picky.view.js
Expand Up @@ -69,7 +69,7 @@ var PickyView = function(picky_controller) {
searchField.select();
};

this.showNoResults = function(person, company) {
this.showEmptyResults = function(person, company) {
this.reset(false);
updateResultCounter(0);

Expand Down

0 comments on commit 761ded7

Please sign in to comment.