mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-01 05:24:11 +01:00
Bookmark: Restore placeholder for tags fix #150
This commit is contained in:
parent
a5880b7254
commit
e2a3f79045
6
3rdparty/js/tag-it.js
vendored
6
3rdparty/js/tag-it.js
vendored
@ -34,7 +34,7 @@
|
|||||||
tagSource : null,
|
tagSource : null,
|
||||||
removeConfirmation: false,
|
removeConfirmation: false,
|
||||||
caseSensitive : true,
|
caseSensitive : true,
|
||||||
|
placeholderText : null,
|
||||||
// When enabled, quotes are not neccesary
|
// When enabled, quotes are not neccesary
|
||||||
// for inputting multi-word tags.
|
// for inputting multi-word tags.
|
||||||
allowSpaces: false,
|
allowSpaces: false,
|
||||||
@ -97,7 +97,9 @@
|
|||||||
if (this.options.tabIndex) {
|
if (this.options.tabIndex) {
|
||||||
this._tagInput.attr('tabindex', this.options.tabIndex);
|
this._tagInput.attr('tabindex', this.options.tabIndex);
|
||||||
}
|
}
|
||||||
|
if (this.options.placeholderText) {
|
||||||
|
this._tagInput.attr('placeholder', this.options.placeholderText);
|
||||||
|
}
|
||||||
this.options.tagSource = this.options.tagSource || function(search, showChoices) {
|
this.options.tagSource = this.options.tagSource || function(search, showChoices) {
|
||||||
var filter = search.term.toLowerCase();
|
var filter = search.term.toLowerCase();
|
||||||
var choices = $.grep(that.options.availableTags, function(element) {
|
var choices = $.grep(that.options.availableTags, function(element) {
|
||||||
|
Loading…
Reference in New Issue
Block a user