Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_Search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Ryan Dee
UNL_Search
Commits
2a7c23f5
Commit
2a7c23f5
authored
13 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused js code for the directory popup
parent
b51f852e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www/searchFunc.js
+0
-96
0 additions, 96 deletions
www/searchFunc.js
with
0 additions
and
96 deletions
www/searchFunc.js
+
0
−
96
View file @
2a7c23f5
...
...
@@ -186,100 +186,4 @@ UNL_Search.doQuery = function (form) {
return
false
;
};
UNL_Search
.
showHCard
=
function
(
ele
,
href
)
{
var
uid
=
href
.
substr
(
href
.
lastIndexOf
(
"
=
"
)
+
1
);
var
cacheData
=
this
.
hcardCache
.
get
(
uid
)
if
(
cacheData
)
{
this
.
buildHCard
(
cacheData
,
ele
);
}
else
{
var
http
=
new
XMLHTTP
();
http
.
open
(
"
GET
"
,
"
http://directory.unl.edu/hcards/
"
+
uid
,
true
);
var
pointer
=
this
;
http
.
onreadystatechange
=
function
()
{
if
(
http
.
readyState
==
4
)
{
if
(
http
.
status
==
200
)
{
var
data
=
http
.
responseText
;
pointer
.
hcardCache
.
save
(
uid
,
data
);
pointer
.
buildHCard
(
data
,
ele
);
}
else
{
// Error loading file!
}
}
};
http
.
send
(
null
);
}
return
false
;
};
UNL_Search
.
buildHCard
=
function
(
hcardText
,
ele
)
{
_b
.
DOM
.
remE
(
"
peoplePopup
"
);
this
.
killHCardTimeout
();
var
div
=
_b
.
DOM
.
cE
(
"
div
"
,
{
id
:
"
peoplePopup
"
,
className
:
"
hcardPopup
"
});
var
hcorner
=
_b
.
DOM
.
cE
(
"
div
"
,
{
className
:
"
as_corner
"
});
var
hbar
=
_b
.
DOM
.
cE
(
"
div
"
,
{
className
:
"
as_bar
"
});
var
header
=
_b
.
DOM
.
cE
(
"
div
"
,
{
className
:
"
as_header
"
});
header
.
appendChild
(
hcorner
);
header
.
appendChild
(
hbar
);
div
.
appendChild
(
header
);
var
ul
=
_b
.
DOM
.
cE
(
"
ul
"
);
var
theCard
=
_b
.
DOM
.
cE
(
"
li
"
);
theCard
.
innerHTML
=
hcardText
;
ul
.
appendChild
(
theCard
);
div
.
appendChild
(
ul
);
var
fcorner
=
_b
.
DOM
.
cE
(
"
div
"
,
{
className
:
"
as_corner
"
});
var
fbar
=
_b
.
DOM
.
cE
(
"
div
"
,
{
className
:
"
as_bar
"
});
var
footer
=
_b
.
DOM
.
cE
(
"
div
"
,
{
className
:
"
as_footer
"
});
footer
.
appendChild
(
fcorner
);
footer
.
appendChild
(
fbar
);
div
.
appendChild
(
footer
);
var
pos
=
_b
.
DOM
.
getPos
(
ele
);
div
.
style
.
left
=
(
pos
.
x
)
+
"
px
"
;
div
.
style
.
top
=
(
pos
.
y
+
ele
.
offsetHeight
)
+
"
px
"
;
div
.
style
.
visibility
=
"
hidden
"
;
document
.
getElementsByTagName
(
"
body
"
)[
0
].
appendChild
(
div
);
div
.
style
.
left
=
(
pos
.
x
-
div
.
offsetWidth
+
5
)
+
"
px
"
;
div
.
style
.
top
=
(
pos
.
y
+
ele
.
offsetHeight
/
2
-
div
.
offsetHeight
/
2
)
+
"
px
"
;
div
.
style
.
visibility
=
"
visible
"
;
div
.
onmouseover
=
function
(){
UNL_Search
.
killHCardTimeout
()
};
div
.
onmouseout
=
function
(){
UNL_Search
.
resetHCardTimeout
()
};
this
.
hcardTimeout
=
setTimeout
(
function
()
{
UNL_Search
.
clearHCard
()
},
5000
);
};
//Sets up a fader to remove the hcard popup
UNL_Search
.
clearHCard
=
function
()
{
this
.
killHCardTimeout
();
var
popup
=
_b
.
DOM
.
gE
(
"
peoplePopup
"
);
if
(
popup
)
{
var
fade
=
new
_b
.
Fader
(
popup
,
1
,
0
,
250
,
function
()
{
_b
.
DOM
.
remE
(
"
peoplePopup
"
)
});
}
};
//Stops the timer for the removal of the hcard popup
UNL_Search
.
killHCardTimeout
=
function
()
{
clearTimeout
(
this
.
hcardTimeout
);
};
//Starts a new timer for the removal of the hcard popup
UNL_Search
.
resetHCardTimeout
=
function
()
{
clearTimeout
(
this
.
hcardTimeout
);
this
.
hcardTimeout
=
setTimeout
(
function
()
{
UNL_Search
.
clearHCard
()
},
500
);
};
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