The naming convention are using camel case.
It means that every callback and setting's name are switched from underscope_naming to CamelNaming.
Sorry about this.
Future version's naming will follow the rules of http://semver.org constantly.
- Replaced
tplwithdisplayTpl: display template of dropdown menu items. In previous versions, At.js will fetch the value ofdata-valueto insert; It stops doing it.
Please use theinsertTploption to manage the content to insert instead.
The default value is"<li>${name}</li>" - The
insertTploption will be used in textarea as well. The default value is"${atwho-at}${name}"
- Added
afterMatchFailedcallback to contentEditable It will be invoked after fail to match any query and stopping matching.
Open examples/hashtas.html to examine how it work. - Removed
inserting_wrappercallback to contentEditable
-
refactor the
ControllerIntroducedEditableControllerclass to control actions ofcontenteditableelement.
IntroducedTextareaControllerclass to control actions oftextareaelement.
Both of them are inherit from theControllerclass. -
Refactored contentEditable mode Inserted content are wrapped in a span:
<span class=".atwho-inserted"/>
Querying content are wrapped in a span:<span class=".atwho-query"/> -
Bring back auto-discovery to iframe.
-
Fix wrong offset in iframe
-
Replaced
iframeStandalonewithiframeAdRoot -
All processed events are preventing default and stopping propagation.
- e1f6566 - fix error that doesn't display mention list on new line
- 8fe3a54 - can insert multiple node from
inserting_wrapper - 4080151 - scroll to top after showing
- 01555f8 - scroll long dropdown list
- 1b8999d - Add spm support
- f2b8e9c - change name in package.json
- b61bfdc - search on click
- b1efd09 - Fixes error with selecting always first item on the list on iOS WebView when using https://github.com/ftlabs/fastclick
- 7ed2890 - Allow accented characters in matcher
- 219de3d - fix Goes off screen / gets cropped if there isn't enough room
- 1100c5b - No longer inherits text colour from document
- ce60958 - on more boolean argument for
setIframeapi to work cross-document issues #199
- 593893c - refactor inserting of contenteditable
Adding
inserting_wrapperfor customize wrapping inserting content. Not to insert item as a block in Firefox. check out issue #109. RemovinggetInsertedItems,getInsertedIDsAPI. You have to collect them on your own. - 4d3fb8f - have to set IFRAME manually
- 1f13a16 - change space_after to suffix
- b099ebb - fix caret position error after inserting
- 2c47d7a - fix #178 hide view while clicking somewhere else
- eeafab1 - fix error: will always call hidden atwho event
- b0f6ceb - Highlighter finds the first occurrence
- da256db - Adds possibility of having empty prefix (at keyword) in controllers
- b884225 - add
space_afteroption - 65d6273 - Passes esc/tab/return keyup events through to emitted hide event
- bf938db - add
delaysetting, support delay searching - a0b5a6f - fix bug: terminate if query out of max_len
- 01d6d5b - add css min file
- update jquery dependence version
- f317bd7 not lowercase query, add
highlight_firstoption
- 79bbef4 destroy atwho view container dom
- 0372d65 update bower and component keywords
- 52a41f5 add optional
before_repostioncallback - cc1c239 Fixes #143 - ichord
- resolved #133, #135, #137.
- add
beforeDestroyevent - wouldn't concat
caret.jsintodist/js/jquery.atwho.jsany more. - seperate
jquery.atwho.coffeeinto pieces. - seperate testing.
- 2d9ab23 fix
wrong documenterror in IE iframe
- 664a765 support iframe
-
9ac7e75 - improve contentEditable for IE 8
It's still some bugs in IE 8, just DON'T use it I don't want to spend more time on IE 8. So it would be the ending fixup. And i will still leave related code for a while maybe in case anyone want to help to improve it. Just encourge your users to upgrate the browers or just switch to a batter one please !!
-
a8371b3 - move project page to master from gh-pages.
-
24b6225 - fix bugs #122
-
645e030 - update Caret.js to v0.0.5
- e8e7561 update
Caret.jstov0.0.4
- 4169b74 - binding data storage to the inputor. issues #121
- 11d053f - reduse querying twice. issues#112
- b7721be - fix bug at view id was not been assign. close issues #99
- 407f069 - fix bug: Can not autofocus after click the at-list in FireFox. #95
- 917f033 - fix bug: click do not work in div-contenteditable. close issues #93
- update
Caret.jstov0.0.2 contenteditablesupport !!- change content of default item template
tpl - new rule to insert the
at: will always remove theatfrom inputor but will add it back fromtplin default. so, if you are using your owntpland want to show theatchar, you have to do it yourself. - add
insert_tplsetting forcontenteditable. it will insertdata-valueof li element that eval fromtplin default. - new APIs for
contenteditable:getInsertedItemsWithIDs,getInsertedItems,getInsertedIDs
- bower
- remove
Caret.jscodes and add it as bower dependencies - remove
display_flagsettings. - add
start_with_spacesettings, defaulttrue - change
super_callfunction tocall_default
- release new api
load,run - add
aliassetting forloaddata or as the view's id - matching key with a space before it
- register key in settings
{at: "@", data: []}instead of being a argument max_lensetting for max length to search- change the default matcher regrex rule: occur at start of line or after whitespace
- will not sort the datay without valid query string
- group all data handlers as
Modelclass. - All callbacks's context would be current
Controller
-
datasetting will be used to load data either local or remote. If it's String as URL it will preload data from remote by launch a ajax request (every times At.js callregto update settings) -
remove default
remote_filterfrom callbacks list. -
add
get_dataandsave_datafunction to contoller. They are used to get and save whole data for At.js -
save_datawill invokedata_refactoreverytime -
will filter local data which is set in
settingsfirst and if it get nothing then callremote_filterif it's exists in callbacks list that is set by user.
- remove ability of changing common setting after inputor binded
- can fix list view after matched query in IE now.
- separated core function (get offset of inputor) as a jquery plugins.
No more testing in IEs browsers.
The name atWho was changed to atwho.
- Customer data handlers(matcher, filter, sorter) and template renders(highlight, template eval) by a group of configurable callbacks.
- Support AMD
- Filter by local data and remote (by ajax) data at the same time.
- Caching
- Mouse event
- mean removed option
+ mean new added option
The one that start without - or + mean not change.
-
-data: [], -
+data: null, -
-choose: "data-value", -
+search_key: "name", -
-callback: null, -
+callbacks: DEFAULT_CALLBACKS, -
+display_timeout: 300, -
-tpl: _DEFAULT_TPL -
+tpl: DEFAULT_TPL -
-cache: false
Not change settings
-
cache: true, -
limit: 5, -
display_flag: true,
同步 jquery-atwho-rails gem 的版本号
这会是 v0.1 的固定版本. 不再有新功能更新.
###v0.1.2 2012-3-23
- box showing above instead of bottom when it get close to the bottom of window
- coffeescript here is.
- every registered character able to have thire own options such as template(
tpl) - every inputor (textarea, input) able to have their own registered character and different behavior even the same character to other inputor
###v0.1.0
- 可以監聽多個字符 multiple char listening.
- 顯示缺省列表. show default list.