Permalink
Browse files

second search issue corrected

  • Loading branch information...
1 parent c415896 commit 38e57aa34461fa188cb3ec1ac78219f1424827a9 @Evangenieur committed Dec 2, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −1 package.json
  2. +4 −3 public/javascripts/hvidio.js
View
@@ -1,6 +1,6 @@
{
"name": "hvid.io",
- "version": "0.0.0-15",
+ "version": "0.0.0-16",
"description": "RealTime Video Search Twitter / Facebook / GooglePlus",
"main": "server.coffee",
"scripts": {
@@ -174,7 +174,6 @@
search: function(keyword) {
if (keyword) {
- console.log("SEARCH "+keyword);
hvidio.loading(true);
hvidio.fetch(keyword, function(data) {
@@ -263,8 +262,10 @@
this.embed = this.embed.substr(0, pos);
}
- if (callback) {
- callback([this]); callback = null;
+ if (typeof search.initiated == "undefined") {
+ search.initiated = true;
+ scroll = false;
+ callback([this]);
$list = $("#video-list")
} else {
var html = hvidio.templatize('#videoTemplate', { video: this });

0 comments on commit 38e57aa

Please sign in to comment.