Fix indenting in friendica-tagsinput.js
This commit is contained in:
parent
e3cf708dd8
commit
6968c73ec7
1 changed files with 19 additions and 19 deletions
|
@ -574,29 +574,29 @@
|
||||||
var tagsinput = $(this).data('tagsinput');
|
var tagsinput = $(this).data('tagsinput');
|
||||||
// Initialize a new tags input
|
// Initialize a new tags input
|
||||||
if (!tagsinput) {
|
if (!tagsinput) {
|
||||||
tagsinput = new TagsInput(this, arg1);
|
tagsinput = new TagsInput(this, arg1);
|
||||||
$(this).data('tagsinput', tagsinput);
|
$(this).data('tagsinput', tagsinput);
|
||||||
results.push(tagsinput);
|
results.push(tagsinput);
|
||||||
|
|
||||||
if (this.tagName === 'SELECT') {
|
if (this.tagName === 'SELECT') {
|
||||||
$('option', $(this)).attr('selected', 'selected');
|
$('option', $(this)).attr('selected', 'selected');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init tags from $(this).val()
|
// Init tags from $(this).val()
|
||||||
$(this).val($(this).val());
|
$(this).val($(this).val());
|
||||||
} else if (!arg1 && !arg2) {
|
} else if (!arg1 && !arg2) {
|
||||||
// tagsinput already exists
|
// tagsinput already exists
|
||||||
// no function, trying to init
|
// no function, trying to init
|
||||||
results.push(tagsinput);
|
results.push(tagsinput);
|
||||||
} else if(tagsinput[arg1] !== undefined) {
|
} else if(tagsinput[arg1] !== undefined) {
|
||||||
// Invoke function on existing tags input
|
// Invoke function on existing tags input
|
||||||
if(tagsinput[arg1].length === 3 && arg3 !== undefined){
|
if(tagsinput[arg1].length === 3 && arg3 !== undefined){
|
||||||
var retVal = tagsinput[arg1](arg2, null, arg3);
|
var retVal = tagsinput[arg1](arg2, null, arg3);
|
||||||
}else{
|
}else{
|
||||||
var retVal = tagsinput[arg1](arg2);
|
var retVal = tagsinput[arg1](arg2);
|
||||||
}
|
}
|
||||||
if (retVal !== undefined)
|
if (retVal !== undefined)
|
||||||
results.push(retVal);
|
results.push(retVal);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue