Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
fix: add missing semicolons in editor and routes
Browse files Browse the repository at this point in the history
This patch also delete unnecessary blank spaces

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Jul 18, 2016
1 parent d85fc12 commit 46bc1d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions client/js/controllers/editor.js
Expand Up @@ -681,7 +681,7 @@
dialog.dialog("close");
} else {
$(".ui-dialog-buttonpane button:contains('Close')").button("enable");
$(".ui-dialog-buttonpane button:contains('Create')").button("enable")
$(".ui-dialog-buttonpane button:contains('Create')").button("enable");
}
});
}
Expand Down Expand Up @@ -910,7 +910,7 @@
$scope.filesChanged = function(elm) {
$scope.files = elm.files;
$scope.$apply();
}
};

$scope.importFile = function () {
var file = filePath;
Expand Down Expand Up @@ -958,7 +958,7 @@
$scope.refreshTree();
$scope.stopSpin();
$(".ui-dialog-buttonpane button:contains('Cancel')").button("enable");
$(".ui-dialog-buttonpane button:contains('Upload')").button("enable");
$(".ui-dialog-buttonpane button:contains('Upload')").button("enable");
})
.error(function(d) {
alert(d);
Expand All @@ -968,7 +968,7 @@
});
$scope.startSpin();
$(".ui-dialog-buttonpane button:contains('Cancel')").button("disable");
$(".ui-dialog-buttonpane button:contains('Upload')").button("disable");
$(".ui-dialog-buttonpane button:contains('Upload')").button("disable");
$(this).dialog("close");
},
Cancel: function() {
Expand All @@ -981,7 +981,7 @@
});
dialog.dialog("open");
} else {
alert("Error: Upload to demo folder is not allowed")
alert("Error: Upload to demo folder is not allowed");
}
} else {
alert("Folder destination must be selected!");
Expand Down
6 changes: 3 additions & 3 deletions server/routes.js
Expand Up @@ -389,8 +389,8 @@
}
} else {
return res.status(400).send('Error: Form cannot be empty');
}
})
}
});
});

router.get('/api/file/download', function(req, res) {
Expand All @@ -405,7 +405,7 @@
} else {
res.sendStatus(400);
}
});
});

router.post('/api/git/repo/delete/file', function (req, res) {
var file_path = req.body.params.file_path;
Expand Down

0 comments on commit 46bc1d0

Please sign in to comment.