Commit 5be718b2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

lint issues

parent f3048f48
......@@ -12,7 +12,6 @@
"author": "Piotr Gawron",
"devDependencies": {
"assert": "1.4.1",
"blob-util": "^1.2.1",
"bluebird": "^3.4.6",
"bootstrap": "^3.3.7",
"browserify": "^13.1.1",
......
......@@ -39,7 +39,7 @@ function OverlayPanel(params) {
} else {
self.getAddButtonElement().onclick = function(){
self.openAddOverlayDialog();
}
};
}
self.setCustomOverlaysMessage(self.getCustomOverlaysTitleElement().innerHTML);
......@@ -338,7 +338,7 @@ OverlayPanel.prototype.parseFile = function(fileContent) {
OverlayPanel.prototype.openAddOverlayDialog = function() {
var self = this;
var fileContent = null;
return new Promise(function(resolve, reject){
return new Promise(function(resolve){
var content = document.createElement("div");
content.style.width="100%";
......@@ -377,10 +377,10 @@ OverlayPanel.prototype.openAddOverlayDialog = function() {
if (data.description!==undefined) {
descriptionInput.value =data.description;
}
}
reader.onerror = function (evt) {
};
reader.onerror = function () {
GuiConnector.alert("Problem reading file");
}
};
}
}, false);
content.appendChild(fileInput);
......@@ -398,7 +398,7 @@ OverlayPanel.prototype.openAddOverlayDialog = function() {
description : descriptionInput.value,
content : fileContent,
filename : fileInput.value
}
};
return ServerConnector.addOverlay(data).then(function(){
return self.refresh();
}).then(function(){
......
......@@ -6,7 +6,6 @@ var GuiConnector = require('../GuiConnector');
var ObjectWithListeners = require('../ObjectWithListeners');
var logger = require('../logger');
var fun = require('../Functions');
function Panel(params) {
ObjectWithListeners.call(this, params);
......
......@@ -9,7 +9,6 @@ var OverlayPanel = require('../../../main/js/gui/OverlayPanel');
var chai = require('chai');
var assert = chai.assert;
var logger = require('../logger');
var blobUtil = require('blob-util');
describe('OverlayPanel', function() {
......
"use strict";
/* exported logger */
var Helper = require('../helper');
require("../mocha-config.js");
var Alias = require('../../../main/js/map/data/Alias');
var Panel = require('../../../main/js/gui/Panel');
var chai = require('chai');
......
......@@ -17,7 +17,7 @@ global.$ = require('jQuery');
global.jQuery = $;
global.window.$ = $;
require('jquery-ui-dist/jquery-ui.js')
require('jquery-ui-dist/jquery-ui.js');
require("bootstrap");
......
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 to comment