Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
BRIC
dokuwiki
Commits
7647d877
Commit
7647d877
authored
11 years ago
by
Gerrit Uitslag
Browse files
Options
Downloads
Patches
Plain Diff
Made a jquery function of dw_qsearch
parent
4a5ab1c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/scripts/qsearch.js
+21
-8
21 additions, 8 deletions
lib/scripts/qsearch.js
with
21 additions
and
8 deletions
lib/scripts/qsearch.js
+
21
−
8
View file @
7647d877
...
...
@@ -6,10 +6,13 @@
* @author Adrian Lang <lang@cosmocode.de>
* @author Michal Rezler <m.rezler@centrum.cz>
*/
jQuery
.
fn
.
dw_qsearch
=
function
(
overrides
)
{
var
dw_qsearch
=
{
var
dw_qsearch
=
{
$inObj
:
null
,
output_id
:
'
#qsearch__out
'
,
$inObj
:
this
,
$outObj
:
null
,
timer
:
null
,
curRequest
:
null
,
...
...
@@ -19,14 +22,11 @@ var dw_qsearch = {
*
* Attaches the event handlers
*
* @param input element (jQuery selector/DOM obj)
* @param output element (jQuery selector/DOM obj)
*/
init
:
function
(
input
,
output
)
{
init
:
function
()
{
var
do_qsearch
;
dw_qsearch
.
$inObj
=
jQuery
(
input
);
dw_qsearch
.
$outObj
=
jQuery
(
output
);
dw_qsearch
.
$outObj
=
jQuery
(
dw_qsearch
.
output_id
);
// objects found?
if
(
dw_qsearch
.
$inObj
.
length
===
0
||
...
...
@@ -163,8 +163,21 @@ var dw_qsearch = {
// reenable overflow
dw_qsearch
.
$outObj
.
find
(
'
li
'
).
css
(
'
overflow
'
,
'
hidden
'
).
css
(
'
text-overflow
'
,
'
ellipsis
'
);
}
};
jQuery
.
extend
(
dw_qsearch
,
overrides
);
if
(
!
overrides
.
deferInit
)
{
dw_qsearch
.
init
();
}
return
dw_qsearch
;
};
jQuery
(
function
()
{
dw_qsearch
.
init
(
'
#qsearch__in
'
,
'
#qsearch__out
'
);
jQuery
(
'
#qsearch__in
'
).
dw_qsearch
({
output_id
:
'
#qsearch__out
'
});
});
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