Permalink
Browse files

2.8.1 some minor bug fixes

  • Loading branch information...
1 parent f7de18b commit 9b7c7ea5932fb751df74dc175e3a6ea886265310 @emposha committed May 16, 2011
Showing with 17 additions and 6 deletions.
  1. +4 −0 README
  2. +1 −1 data.txt
  3. +7 −4 jquery.fcbkcomplete.js
  4. +5 −1 jquery.fcbkcomplete.min.js
View
@@ -10,6 +10,10 @@ https://github.com/partoa/FCBKcomplete
Changelog:
+ - 2.8.1 some minor bug fixes
+ added selected attribute to preselected option thanks to @musketyr
+ fixed cache entry with space thanks to Matt
+
- 2.8.0 bug fixes
added jquery 1.6 support please note that old versions of jquery not supported
cache mechanizm updated
View
@@ -1 +1 @@
-[{"key": "movies", "value": "movies"}, {"key": "ski", "value": "ski"}, {"key": "snowbord", "value": "snowbord"}, {"key": "computer", "value": "computer"}, {"key": "apple", "value": "apple"}, {"key": "pc", "value": "pc"}, {"key": "ipod", "value": "ipod"}, {"key": "ipad", "value": "ipad"}, {"key": "iphone", "value": "iphone"}, {"key": "iphon4", "value": "iphone4"}, {"key": "iphone5", "value": "iphone5"}, {"key": "samsung", "value": "samsung"}, {"key": "blackberry", "value": "blackberry"}]
+[{"key": "hello world", "value": "hello world"}, {"key": "movies", "value": "movies"}, {"key": "ski", "value": "ski"}, {"key": "snowbord", "value": "snowbord"}, {"key": "computer", "value": "computer"}, {"key": "apple", "value": "apple"}, {"key": "pc", "value": "pc"}, {"key": "ipod", "value": "ipod"}, {"key": "ipad", "value": "ipad"}, {"key": "iphone", "value": "iphone"}, {"key": "iphon4", "value": "iphone4"}, {"key": "iphone5", "value": "iphone5"}, {"key": "samsung", "value": "samsung"}, {"key": "blackberry", "value": "blackberry"}]
@@ -9,7 +9,10 @@ https://github.com/partoa/FCBKcomplete
Based on TextboxList by Guillermo Rauch http://devthought.com/
Changelog:
-
+ - 2.8.1 some minor bug fixes
+ added selected attribute to preselected option thanks to @musketyr
+ fixed cache entry with space thanks to Matt
+
- 2.8.0 bug fixes
added jquery 1.6 support please note that old versions of jquery not supported
cache mechanizm updated
@@ -120,7 +123,7 @@ https://github.com/partoa/FCBKcomplete
temp_elem.data(option.val(), option.text());
if (option.hasClass("selected")) {
addItem(option.text(), option.val(), true, option.hasClass("locked"));
- temp_elem.append('<option value="'+option.val()+'">'+option.text()+'</option>')
+ temp_elem.append('<option value="'+option.val()+'" selected="selected" class="selected">'+option.text()+'</option>');
}
})
element.after(temp_elem);
@@ -557,10 +560,10 @@ https://github.com/partoa/FCBKcomplete
var json_cache = {};
var json_cache_object = {
'set': function (id, val) {
- eval("json_cache."+xssPrevent(id)+" = val;");
+ eval("json_cache."+xssPrevent(id.replace(' ', '_'))+" = val;");
},
'get': function(id) {
- return eval("json_cache."+xssPrevent(id));
+ return eval("json_cache."+xssPrevent(id.replace(' ', '_')));
}
}
Oops, something went wrong.

0 comments on commit 9b7c7ea

Please sign in to comment.