this.fetch = function() {
self.clear();
- self.url = '/g/' + self.function + '/' + self.args + '?callback=JSON_CALLBACK';
+ self.url = '/g/' + self.function_name + '/' + self.args + '?callback=JSON_CALLBACK';
$xhr('JSON', self.url, function(code, response) {
self.code = code;
self.response = response;
GearmanCntl.$inject = ['$xhr'];
</script>
<div ng:controller="GearmanCntl">
- <select name="function">
+ <select name="function_name">
<option ng:repeat="f in g.status" ng:show="f.available" value="{{f.function}}">{{f.function}}</option>
<input type="text" name="args" value="127.0.0.1" size="40"/>
<button ng:click="fetch()">fetch</button>