Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
964c032f
Commit
964c032f
authored
Sep 14, 2011
by
xaver
Browse files
new selector for submit + button height in autocompelte is read from input before
parent
81c31c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/themes/default_combobox/templates/main.tpl.htm
View file @
964c032f
...
...
@@ -67,14 +67,15 @@
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
style
);
}
jQuery
(
document
).
ready
(
function
()
{
loadInitContent
();
});
//Use jQuery submit with kespress Enter in panel filterbar
jQuery
(
document
).
bind
(
"
keypress
"
,
function
(
event
)
{
if
(
event
.
which
==
'
13
'
&&
$
(
"
.panel #Filter
"
).
length
>
0
)
{
$
(
"
.panel
#Filter
"
).
attr
(
"
onsubmit
"
,
$
(
"
.panel #Filter
"
).
attr
(
"
onclick
"
)).
submit
();
jQuery
(
"
.panel .list input
"
).
live
(
"
keypress
"
,
function
(
event
)
{
if
(
event
.
which
==
'
13
'
&&
$
(
this
).
parents
(
"
tr
"
).
find
(
"
#Filter
"
)
)
{
$
(
this
).
parents
(
"
tr
"
).
find
(
"
#Filter
"
).
attr
(
"
onsubmit
"
,
$
(
"
.panel #Filter
"
).
attr
(
"
onclick
"
)).
submit
();
}
});
...
...
@@ -148,6 +149,7 @@
this
.
button
=
$
(
"
<button type='button'> </button>
"
)
.
attr
(
"
tabIndex
"
,
-
1
)
.
attr
(
"
title
"
,
"
Show All Items
"
)
.
height
(
$
(
input
).
outerHeight
())
.
insertAfter
(
input
)
.
button
({
icons
:
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment