From c1e1e03a446d2735192fdd291c6eb905d314a283 Mon Sep 17 00:00:00 2001
From: Ushio Shugo
Date: Sat, 9 Feb 2013 20:28:28 +0900
Subject: [PATCH 1/5] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index ea4697b..efaefc8 100644
--- a/README.md
+++ b/README.md
@@ -53,3 +53,4 @@ UshioShugo
#TODO list
1. Ignore table header.
+2. Add select html element.
From aee2a9dfe2ce10ea2ecf357d737a88b5e469daf1 Mon Sep 17 00:00:00 2001
From: UshioShugo
Date: Mon, 15 Apr 2013 17:55:26 +0900
Subject: [PATCH 2/5] remove demo
---
listsearch.jquery.json | 1 -
1 file changed, 1 deletion(-)
diff --git a/listsearch.jquery.json b/listsearch.jquery.json
index 4d9b7ef..b47cf97 100644
--- a/listsearch.jquery.json
+++ b/listsearch.jquery.json
@@ -16,7 +16,6 @@
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
- "demo": "https://dl-web.dropbox.com/get/Public/jQueryPlugins/jQuery.ListSearch/sample.html?w=AADjrV5tuzthgdylHvVZlDLG-DQaHqdSHfjYGOMhkl69tQ",
"bugs": "https://github.com/ushios/jQuery.ListSearch/issues",
"docs": "https://github.com/ushios/jQuery.ListSearch/blob/master/README.md",
"homepage": "https://github.com/ushios/jQuery.ListSearch",
From c5226f295aefab3658636e5ba18d51829b6291b1 Mon Sep 17 00:00:00 2001
From: UshioShugo
Date: Fri, 26 Apr 2013 13:08:53 +0900
Subject: [PATCH 3/5] add ignore option.
---
README.md | 36 ++++++++++++++++++------------------
jquery.listSearch.js | 8 ++++++--
listsearch.jquery.json | 4 ++--
sample.html | 4 ++--
4 files changed, 28 insertions(+), 24 deletions(-)
diff --git a/README.md b/README.md
index efaefc8..ffdf026 100644
--- a/README.md
+++ b/README.md
@@ -18,24 +18,24 @@ html
diff --git a/jquery.listSearch.js b/jquery.listSearch.js
index f8129f8..e5426fa 100644
--- a/jquery.listSearch.js
+++ b/jquery.listSearch.js
@@ -75,7 +75,10 @@
var wordLength = searchWords.length;
target.find(tagName).each(function(){
- var body = _this.getBody(this);
+ var thisJQuery = jQuery(this);
+ if (thisJQuery.data('ignore-list-search') === 'ignore') return true;
+
+ var body = _this.getBody(thisJQuery);
var displayFlag = true;
var wordCount = 0;
@@ -90,6 +93,7 @@
}
jQuery(this).css('display', _this.getDisplayProperty(tagName, displayFlag));
+ return true;
})
},
@@ -117,7 +121,7 @@
* @returns {}
*/
getBody: function(target){
- var body = jQuery(target).text();
+ var body = target.text();
return jQuery.trim(body);
},
diff --git a/listsearch.jquery.json b/listsearch.jquery.json
index b47cf97..ce50180 100644
--- a/listsearch.jquery.json
+++ b/listsearch.jquery.json
@@ -1,6 +1,6 @@
{
"name": "listsearch",
- "version": "0.3.1",
+ "version": "0.4.0",
"title": "jQuery List Search",
"author": {
"name": "Ushio Shugo",
@@ -22,6 +22,6 @@
"description": "Incremental search for table, ul and ol tags.",
"keywords": ["incremental", "search", "list", "table", "ul", "li", "ol"],
"dependencies": {
- "jquery": ">=1.9.0"
+ "jquery": ">=1.7.0"
}
}
diff --git a/sample.html b/sample.html
index 2b41f79..3dab19b 100644
--- a/sample.html
+++ b/sample.html
@@ -3,7 +3,7 @@
jQuery.ListSearch
-
+
From bc0bab14ca7816d6e0a3cba60cfbf40477cca02e Mon Sep 17 00:00:00 2001
From: UshioShugo
Date: Fri, 26 Apr 2013 13:14:10 +0900
Subject: [PATCH 5/5] fix readme.
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index ffdf026..2c9ce8a 100644
--- a/README.md
+++ b/README.md
@@ -52,5 +52,4 @@ Contact
UshioShugo
#TODO list
-1. Ignore table header.
2. Add select html element.