Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a17c366
authored
Jun 13, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: update comments
parent
a34d2837
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
firewall_gui/static/js/project.js
+6
-4
No files found.
firewall_gui/static/js/project.js
View file @
5a17c366
...
...
@@ -343,7 +343,6 @@ function EntityController(url, init) {
$scope
.
errors
=
newErrors
;
})
}
catch
(
ex
)
{
}
})
}
...
...
@@ -357,7 +356,9 @@ function EntityController(url, init) {
[
'vlan'
,
'vlangroup'
,
'host'
,
'hostgroup'
,
'firewall'
,
'owner'
,
'domain'
,
'record'
].
forEach
(
function
(
t
)
{
$
(
'.'
+
t
).
typeahead
({
/**
* Typeahead does AJAX queries
* Typeahead does AJAX queries.
*
* Pretty messy
* @param {String} query Partial name of the entity
* @param {Function} process Callback function after AJAX returned result
*/
...
...
@@ -381,8 +382,9 @@ function EntityController(url, init) {
return
true
;
},
/**
* Typeahead does not trigger proper DOM events, so we have to refresh
* the model manually.
* The DOM is correctly updated, but it doesnt triggers the proper events,
* so the model should be updated manually.
*
* @param {String} item Selected entity name
* @return {String} Same as `item`, the input value is set to this
*/
...
...
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