Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
97d5e372
Commit
97d5e372
authored
Jun 18, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reset packages search button
parent
654fe2b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+11
-5
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+6
-1
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
97d5e372
...
...
@@ -174,8 +174,8 @@ function Page_Distrubion(socket) {
$
(
'
#packages ul li
'
).
on
(
'
dblclick
'
,
function
(
event
)
{
var
name
=
$
(
this
).
find
(
'
.name
'
).
html
();
debug
(
1
,
'
double click - selecting:
'
,
name
);
$
(
'
#packages .search
'
).
val
(
name
);
$
(
'
#packages .search
'
).
keyup
();
$
(
'
#packages .search
.text
'
).
val
(
name
);
$
(
'
#packages .search
.text
'
).
keyup
();
});
packages
.
select
();
}
else
{
...
...
@@ -186,7 +186,7 @@ function Page_Distrubion(socket) {
},
clean
:
function
()
{
$
(
'
#packages ul
'
).
html
(
''
);
$
(
'
#packages .search
'
).
val
(
''
);
$
(
'
#packages .search
.text
'
).
val
(
''
);
},
get
:
function
()
{
if
(
Utils
.
check_view_distribution
(
view
))
{
...
...
@@ -232,7 +232,7 @@ function Page_Distrubion(socket) {
},
search
:
function
(
token
)
{
if
(
!
token
)
token
=
$
(
'
#packages .search
'
).
val
();
token
=
$
(
'
#packages .search
.text
'
).
val
();
if
(
!
token
)
{
debug
(
2
,
'
packages search token empty - showing all
'
);
$
(
'
#packages li
'
).
show
();
...
...
@@ -736,9 +736,15 @@ function Page_Distrubion(socket) {
watch_for_new_lines
();
// Handle search packages
$
(
'
#packages .search
'
).
on
(
'
keyup
'
,
function
(
event
)
{
$
(
'
#packages .search
.text
'
).
on
(
'
keyup
'
,
function
(
event
)
{
packages
.
search
(
$
(
event
.
target
).
val
());
});
$
(
'
#packages .search .reset
'
).
on
(
'
click
'
,
function
(
event
)
{
debug
(
1
,
'
packages search reset
'
);
$
(
'
#packages .search .text
'
).
val
(
''
);
$
(
'
#packages .search .text
'
).
keyup
();
});
// Update html according with preferences
preferences
();
...
...
debomatic-webui/views/distribution.ejs
View file @
97d5e372
...
...
@@ -13,7 +13,12 @@
<aside id="sidebar" class="col-md-3">
<nav id="packages">
<h2>Packages</h2>
<input type="text" class="form-control search" placeholder="Search">
<div class="input-group search">
<input type="text" class="form-control text" placeholder="Search">
<span class="input-group-btn">
<a class="btn btn-default reset"><span class="glyphicon glyphicon-remove-sign"></span></a>
</span>
</div>
<ul class="nav nav-pills nav-stacked"></ul>
</nav>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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