Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
3bd0aefe
Commit
3bd0aefe
authored
6 years ago
by
bbaer
Browse files
Options
Downloads
Patches
Plain Diff
more configuration options
parent
151faada
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
javascript/src/DynamicSearch.js
+5
-2
5 additions, 2 deletions
javascript/src/DynamicSearch.js
mockup/fabric.html
+4
-1
4 additions, 1 deletion
mockup/fabric.html
with
9 additions
and
3 deletions
javascript/src/DynamicSearch.js
+
5
−
2
View file @
3bd0aefe
...
...
@@ -17,8 +17,9 @@ var QfqNS = QfqNS || {};
'
use strict
'
;
n
.
DynamicSearch
=
function
(
$hook
,
api
)
{
n
.
DynamicSearch
=
function
(
$hook
,
options
)
{
this
.
$container
=
$hook
;
this
.
minLength
=
options
.
minLength
||
3
;
this
.
$output
=
{};
};
...
...
@@ -50,9 +51,11 @@ var QfqNS = QfqNS || {};
};
n
.
DynamicSearch
.
prototype
.
_handleKeyUp
=
function
(
$field
)
{
if
(
$field
.
val
().
length
>
3
)
{
if
(
$field
.
val
().
length
>
=
this
.
minLength
)
{
console
.
log
(
"
blupp
"
);
this
.
$output
.
html
(
$field
.
val
());
var
request
=
$field
.
val
();
}
};
...
...
This diff is collapsed.
Click to expand it.
mockup/fabric.html
+
4
−
1
View file @
3bd0aefe
...
...
@@ -75,7 +75,10 @@
QfqNS
.
Log
.
level
=
0
;
// Just for mockup, init() function called from new QfqNS.Plugin class maybe.
$
(
"
.qfq-dynamic-search
"
).
each
(
function
()
{
var
dynamicSearch
=
new
QfqNS
.
DynamicSearch
(
$
(
this
),
"
url-soso
"
);
var
dynamicSearch
=
new
QfqNS
.
DynamicSearch
(
$
(
this
),
{
api
:
"
url
"
,
minLength
:
3
});
dynamicSearch
.
display
();
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment