Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
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) {
...
@@ -343,7 +343,6 @@ function EntityController(url, init) {
$scope
.
errors
=
newErrors
;
$scope
.
errors
=
newErrors
;
})
})
}
catch
(
ex
)
{
}
catch
(
ex
)
{
}
}
})
})
}
}
...
@@ -357,7 +356,9 @@ function EntityController(url, init) {
...
@@ -357,7 +356,9 @@ function EntityController(url, init) {
[
'vlan'
,
'vlangroup'
,
'host'
,
'hostgroup'
,
'firewall'
,
'owner'
,
'domain'
,
'record'
].
forEach
(
function
(
t
)
{
[
'vlan'
,
'vlangroup'
,
'host'
,
'hostgroup'
,
'firewall'
,
'owner'
,
'domain'
,
'record'
].
forEach
(
function
(
t
)
{
$
(
'.'
+
t
).
typeahead
({
$
(
'.'
+
t
).
typeahead
({
/**
/**
* Typeahead does AJAX queries
* Typeahead does AJAX queries.
*
* Pretty messy
* @param {String} query Partial name of the entity
* @param {String} query Partial name of the entity
* @param {Function} process Callback function after AJAX returned result
* @param {Function} process Callback function after AJAX returned result
*/
*/
...
@@ -381,8 +382,9 @@ function EntityController(url, init) {
...
@@ -381,8 +382,9 @@ function EntityController(url, init) {
return
true
;
return
true
;
},
},
/**
/**
* Typeahead does not trigger proper DOM events, so we have to refresh
* The DOM is correctly updated, but it doesnt triggers the proper events,
* the model manually.
* so the model should be updated manually.
*
* @param {String} item Selected entity name
* @param {String} item Selected entity name
* @return {String} Same as `item`, the input value is set to this
* @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