Permalink
Browse files

Added support for blank queries

  • Loading branch information...
1 parent 185fd21 commit 68b010b377e478df3f679328da24c1c995aeebf7 @elektronaut elektronaut committed Sep 1, 2010
Showing with 10 additions and 5 deletions.
  1. +4 −0 README.rdoc
  2. +5 −4 jquery.livetwitter.js
  3. +1 −1 jquery.livetwitter.min.js
View
@@ -81,6 +81,10 @@ If you want to apply behavior when new tweets are loaded, you can pass a callbac
== Changelog
+=== 1.5.3
+
+* Support for empty queries
+
=== 1.5.2
* Timestamp now links to the tweet.
View
@@ -1,11 +1,11 @@
/*
- * jQuery LiveTwitter 1.5.2
+ * jQuery LiveTwitter 1.5.3
* - Live updating Twitter plugin for jQuery
*
* Copyright (c) 2009-2010 Inge Jørgensen (elektronaut.no)
* Licensed under the MIT license (MIT-LICENSE.txt)
*
- * $Date: 2010/07/16$
+ * $Date: 2010/09/01$
*/
/*
@@ -108,8 +108,9 @@
var url = '';
var params = {};
if(twitter.mode == 'search'){
- params.q = this.query;
-
+ if(this.query && this.query !== ''){
+ params.q = this.query;
+ }
if(this.settings.geocode){
params.geocode = this.settings.geocode;
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 68b010b

Please sign in to comment.