Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Sep 30, 2013
2 parents 3742d5f + 80fd96a commit 188f4c6
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 201 deletions.
2 changes: 1 addition & 1 deletion app/scripts/api.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


//var API = '/api/';
var API = '/';
var API = '/';
2 changes: 1 addition & 1 deletion app/scripts/controllers/function-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ schemaModule.controller("FunctionController", ['$scope', '$routeParams', '$locat
}
$scope.saveFunction = function () {
console.log($scope.functionToExecute)
if ($scope.functionToExecute['language'] != undefined && $scope.functionToExecute['name']!= undefined && $scope.functionToExecute['name']!= '') {
if ($scope.functionToExecute['language'] != undefined && $scope.functionToExecute['name'] != undefined && $scope.functionToExecute['name'] != '') {

if ($scope.isNewFunction == true) {
DocumentApi.createDocument($scope.database.getName(), $scope.functionToExecute['@rid'], $scope.functionToExecute, function (data) {
Expand Down
Loading

0 comments on commit 188f4c6

Please sign in to comment.