Comments (2)
Thanks - I do want to change all the events to have before and after hooks. The current system doesn't work for enough use cases an is a little ambiguous.
Sent from my iPhone
On Jan 18, 2012, at 10:27 AM, David [email protected] wrote:
Hi
I just added these events to my local tagit as in the patch below.
Might be useful to someone else, consider merging?
ciao
Campey
diff -r e1abd7d74ee7 mm-gae/web/rich/scripts/tagit/tag-it.js --- a/mm-gae/web/rich/scripts/tagit/tag-it.js Wed Jan 18 17:06:20 2012 +0200 +++ b/mm-gae/web/rich/scripts/tagit/tag-it.js Wed Jan 18 17:23:36 2012 +0200 @@ -74,7 +74,9 @@ // Event callbacks. onTagAdded : null, + afterTagAdded : null, onTagRemoved: null, + afterTagRemoved: null, onTagClicked: null }, @@ -346,6 +348,8 @@ // insert tag this._tagInput.parent().before(tag); + + this._trigger('afterTagAdded', null, tag); }, removeTag: function(tag, animate) { @@ -371,6 +375,8 @@ } else { tag.remove(); } + + this._trigger('afterTagRemoved', null, tag); }, removeAll: function() {
Reply to this email directly or view it on GitHub:
#50
from tag-it.
Fixed with 28e6161 thanks! Please check the updates to the docs for relevant details.
from tag-it.
Related Issues (20)
- Not working. Error: r.getClientRects is not a function HOT 6
- Error on suggestions mouseover HOT 1
- tag-it does not seem to work with jquery 3.3 HOT 3
- Russian text sometimes not working! б = , in english keyboard [Bug] HOT 2
- Hidden Values for Sending Only HOT 1
- Get custom data from tag
- Is this project dead? HOT 5
- Can not add a tag to tags list HOT 1
- tag-it support rtl HOT 1
- IE starnge cross
- white-space
- support textarea
- How to disable enter key & trigger from another button
- when tag-it enabled bootstrap tabs doesn't work any more
- Callback not working (Version 2.0)
- Tagit is not working with jQuery 3.4.1. I replaced removed method andSelf with addBack. But still it's not working. HOT 1
- How to run tag-it and get the suggested values on button click? HOT 1
- jQuery.Deferred exception: $(...).tagit is not a function TypeError: $(...).tagit is not a function HOT 1
- dumy1
- CALL FOR MAINTAINERS HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tag-it.