add headerTpl
settings
- 7a41d93 - #375 from vcekov/fix_scroll_position - Valentin Cekov
- ecbf34f - #373 from vcekov/val/fix_key_navigation_interefence_with_mouse - Valentin Cekov
- b68cf84 - #364 from WorktileTech/master - Harold.Luo
- f836f04 - #372 from vcekov/fix_caret_for_space_after_@ - Harold.Luo
- 06cf6bb - Properly set caret position after failed match - Valentin Cekov
- c9ed2e2 - support header template. - htz
Pressing Backspace
will turn the inserted element back to the origin query 'moment'.
- 84edc9f - skip inserted element when moving left or right - ichord
- 25a61d3 - the jQuery npm package is now called jquery. Fixes #338 - Mick Staugaard
- 03ed71f - Merge pull request #351 from mociepka/master - Harold.Luo
- ae00dc3 - Point main script in package json - Michał Ociepka
- c5f31f5 - Merge branch 'dev' into HEAD - ichord
- c399397 - fix contenteditable cursor bug when typing "a" into query - ichord
- 7f4295a - fix previous replacements get clobbered when re-intering the inserted element - ichord
- f00fabd - Merge pull request #354 from lvegerano/master - Harold.Luo
- a42065e - Adds guard to event and dist file - Luis Vegerano
- e4aaa30 - Add option to disable loopUp on click - Luis Vegerano
- c9b7609 - Fix bug where callbacks would run before reaching minLen. Fixes #329. - Mike Leone
- f8692dc - Add support for minLen. Connects to issue #316. - Mike Leone
- fd7d298 - FIX: the value of
isSelecting
- ichord - c374c93 - FIX: IME typing error - ichord
- 7f2189d - fix #294 inserts "" suffix in contenteditable
- bae95d9 - add
tabSelectsMatch
setting to make tab selection optional - e966aba - Merge pull request #298 from kkirsche/patch-1 - Harold.Luo
- 9f78239 - Remove moot
version
property from bower.json - Kevin Kirsche
db09ac7 -> 886613f
- 886613f - add
$.fn.atwho.debug = false
to trigger debug mode - 6567af9 - Enable default events when nothing is highlighted - Teemu
- 752ad4a - Add scrollDuration option. - Takuru
- bf17d43 - add parameter to allow for a spacebar in the middle of a search so that you can match a first + last name, for example - Feather Knee
- a1d5fe7 - add
reposition
API - ichord - 9bcb06e - add "onInsert", "onDispaly" arguments to
tplEval
- ichord - db09ac7 - add
hide
api - ichord
- lisafeather/displyTplCallBack - #259
- ADD:
editableAtwhoQueryAttrs
options - Added setting for 'spaceSelectsMatch' (default false/off)
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
tpl
withdisplayTpl
: display template of dropdown menu items. In previous versions, At.js will fetch the value ofdata-value
to insert; It stops doing it.
Please use theinsertTpl
option to manage the content to insert instead.
The default value is"<li>${name}</li>"
- The
insertTpl
option will be used in textarea as well. The default value is"${atwho-at}${name}"
- Added
afterMatchFailed
callback 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_wrapper
callback to contentEditable
-
refactor the
Controller
IntroducedEditableController
class to control actions ofcontenteditable
element.
IntroducedTextareaController
class to control actions oftextarea
element.
Both of them are inherit from theController
class. -
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
iframeStandalone
withiframeAdRoot
-
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
setIframe
api to work cross-document issues #199
- 593893c - refactor inserting of contenteditable
Adding
inserting_wrapper
for customize wrapping inserting content. Not to insert item as a block in Firefox. check out issue #109. RemovinggetInsertedItems
,getInsertedIDs
API. 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_after
option - 65d6273 - Passes esc/tab/return keyup events through to emitted hide event
- bf938db - add
delay
setting, 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_first
option
- 79bbef4 destroy atwho view container dom
- 0372d65 update bower and component keywords
- 52a41f5 add optional
before_repostion
callback - cc1c239 Fixes #143 - ichord
- resolved #133, #135, #137.
- add
beforeDestroy
event - wouldn't concat
caret.js
intodist/js/jquery.atwho.js
any more. - seperate
jquery.atwho.coffee
into pieces. - seperate testing.
- 2d9ab23 fix
wrong document
error 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.js
tov0.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.js
tov0.0.2
contenteditable
support !!- change content of default item template
tpl
- new rule to insert the
at
: will always remove theat
from inputor but will add it back fromtpl
in default. so, if you are using your owntpl
and want to show theat
char, you have to do it yourself. - add
insert_tpl
setting forcontenteditable
. it will insertdata-value
of li element that eval fromtpl
in default. - new APIs for
contenteditable
:getInsertedItemsWithIDs
,getInsertedItems
,getInsertedIDs
- bower
- remove
Caret.js
codes and add it as bower dependencies - remove
display_flag
settings. - add
start_with_space
settings, defaulttrue
- change
super_call
function tocall_default
- release new api
load
,run
- add
alias
setting forload
data 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_len
setting 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
Model
class. - All callbacks's context would be current
Controller
-
data
setting 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 callreg
to update settings) -
remove default
remote_filter
from callbacks list. -
add
get_data
andsave_data
function to contoller. They are used to get and save whole data for At.js -
save_data
will invokedata_refactor
everytime -
will filter local data which is set in
settings
first and if it get nothing then callremote_filter
if 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.