Commit 5a17c366 by Bence Dányi

firewall_gui: update comments

parent a34d2837
...@@ -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
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment