Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompleting tags #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

makoshark
Copy link

A common problem when you are trying to add new bookmarks into a Scuttle system is that you do not realize which tags already exist. Ajax auto-completion of tags helps address this issue very nicely and has been present in Delicious and most of the proprietary competitors for some time.

Thomas Niepraschk created a pretty awesome [https://github.com/niepi/scuttle-autocomplete/](set of patches) on top of Scuttle 0.9.0 (which is imported directly from a tarball). I've done a some work to clean his patch up, split it into distinct commits and fix a bug in it. Anyway, I think it's ready in its current state to be merged into the main version of Scuttle.

makoshark and others added 6 commits November 7, 2011 19:51
A new version of JQuery (1.5) is required by Thomas Niepraschk's patch
adding autocomplete support.
The work in this patch is taken from the following GH repository:

  https://github.com/niepi/scuttle-autocomplete

The work is Copyright (c) Thomas Niepraschk 2011.

Niepraschk's work is not done as a branch to the scuttle git repository,
includes a series of unrelated changes, and involves a few mistakes. In
this branch, I've provided a clean-up of his work but very little of my
own.

I have made the following change over what Thomas did in his repository:

- Reverted the move of config.inc.php from config.inc.php.example
- Changed the script code to not include simple load JQuery from
  googleapis.com (introducing some privacy issues) but to load it from
  the copies that Thomas included in the repository instead.
- I have also removed from the history several extra files including the
  full dump of his database (!) which he them removed in a subsequent
  commit.

All credit goes to Thomas Niepraschk for his hard work to build the
functionality. I use it and love it!
In my system, with JQuery 1.5, the previous two commits caused *every*
link to load the Flash MP3 mplayer, even though none of these were
playable. This patch fixes that issue.

The issue, as far as I can tell, seems to be due to a change in the
version of JQuery. But I have only looked close enough to fix the bug.
This was performing poorly on large lists. The delay can be set down
very low because the list is stored entirely in memory. The current code
only does the lookup when there are >2 characters typed in for a
particular tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant