summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-07-02 21:11:24 +0200
committerzeripath <art27@cantab.net>2019-07-02 20:11:24 +0100
commit68ec7b8be9d945ffb83431ba1113997cfc9e648c (patch)
treeb193aa74ed95e51fea169e9875af2ef3129944bb /public/js
parentc39df040878c8ea22c14d56efcdc4280da63eb49 (diff)
downloadgitea-68ec7b8be9d945ffb83431ba1113997cfc9e648c.tar.gz
gitea-68ec7b8be9d945ffb83431ba1113997cfc9e648c.zip
update dependencies and various tweaks (#7344)
- ran `make npm-update` - ran `make js`, fixed new lint issue - ran `make css`, this added back some vendor prefixes - added `engines` property to package.json to specify minimum required Node.js version - added `private` property to package.json to prevent accidential publishing to npm
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js22
1 files changed, 10 insertions, 12 deletions
diff --git a/public/js/index.js b/public/js/index.js
index b932ef9590..22e4f9d419 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -396,18 +396,16 @@ function initCommentForm() {
hasLabelUpdateAction = $listMenu.data('action') == 'update'; // Update the var
if (hasLabelUpdateAction) {
var promises = [];
- for (var elementId in labels) {
- if (labels.hasOwnProperty(elementId)) {
- var label = labels[elementId];
- var promise = updateIssuesMeta(
- label["update-url"],
- label["action"],
- label["issue-id"],
- elementId
- );
- promises.push(promise);
- }
- }
+ Object.keys(labels).forEach(function(elementId) {
+ var label = labels[elementId];
+ var promise = updateIssuesMeta(
+ label["update-url"],
+ label["action"],
+ label["issue-id"],
+ elementId
+ );
+ promises.push(promise);
+ });
Promise.all(promises).then(reload);
}
});