From 6df145455e16185f4338d0892bd1933e40f34c0b Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Fri, 24 Apr 2015 14:57:01 +0200 Subject: [PATCH] enhancement : use size-input instead of select for export --- .../settings/exportimage/GifExportController.js | 8 +++++--- src/js/controller/settings/resize/ResizeController.js | 1 - src/js/widgets/SizeInput.js | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/controller/settings/exportimage/GifExportController.js b/src/js/controller/settings/exportimage/GifExportController.js index 14815d13..f5b4c296 100644 --- a/src/js/controller/settings/exportimage/GifExportController.js +++ b/src/js/controller/settings/exportimage/GifExportController.js @@ -30,12 +30,14 @@ this.uploadStatusContainerEl = document.querySelector('.gif-upload-status'); this.previewContainerEl = document.querySelector('.gif-export-preview'); - this.widthInput= document.querySelector('.export-gif-resize-width'); - this.heightInput= document.querySelector('.export-gif-resize-height'); + this.widthInput = document.querySelector('.export-gif-resize-width'); + this.heightInput = document.querySelector('.export-gif-resize-height'); this.uploadButton = document.querySelector('.gif-upload-button'); this.downloadButton = document.querySelector('.gif-download-button'); - this.sizeInputWidget = new pskl.widgets.SizeInput(this.widthInput, this.heightInput, this.piskelController.getWidth(), this.piskelController.getHeight()); + this.sizeInputWidget = new pskl.widgets.SizeInput( + this.widthInput, this.heightInput, + this.piskelController.getWidth(), this.piskelController.getHeight()); this.addEventListener(this.uploadButton, 'click', this.onUploadButtonClick_); this.addEventListener(this.downloadButton, 'click', this.onDownloadButtonClick_); diff --git a/src/js/controller/settings/resize/ResizeController.js b/src/js/controller/settings/resize/ResizeController.js index 27771770..173d33ca 100644 --- a/src/js/controller/settings/resize/ResizeController.js +++ b/src/js/controller/settings/resize/ResizeController.js @@ -30,7 +30,6 @@ this.addEventListener(this.resizeContentCheckbox, 'change', this.onResizeContentChange_); this.addEventListener(this.maintainRatioCheckbox, 'change', this.onMaintainRatioChange_); - this.defaultSizeController.init(); }; diff --git a/src/js/widgets/SizeInput.js b/src/js/widgets/SizeInput.js index 91e598c8..8b19dd74 100644 --- a/src/js/widgets/SizeInput.js +++ b/src/js/widgets/SizeInput.js @@ -57,5 +57,4 @@ this.widthInput.value = Math.round(value * this.initWidth / this.initHeight); } }; - -})(); \ No newline at end of file +})();