mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixing unnecessary whitespace changes
- My editor added additional whitespace to several unchanged lines, so I just reverted them
This commit is contained in:
parent
48f24c0cf3
commit
8e4ea8437f
@ -86,7 +86,7 @@
|
||||
|
||||
// FIXME : We remove the onload callback here because JsGif will insert
|
||||
// the image again and we want to avoid retriggering the image onload
|
||||
this.importedImage_.onload = function () { };
|
||||
this.importedImage_.onload = function () {};
|
||||
|
||||
var fileName = this.extractFileNameFromPath_(this.file_.name);
|
||||
this.fileNameContainer.html(fileName);
|
||||
@ -126,18 +126,18 @@
|
||||
if (image) {
|
||||
if (window.confirm('You are about to create a new Piskel, unsaved changes will be lost.')) {
|
||||
var gifLoader = new window.SuperGif({
|
||||
gif: image
|
||||
gif : image
|
||||
});
|
||||
|
||||
gifLoader.load({
|
||||
success: function () {
|
||||
success : function () {
|
||||
var images = gifLoader.getFrames().map(function (frame) {
|
||||
return pskl.utils.CanvasUtils.createFromImageData(frame.data);
|
||||
});
|
||||
this.createPiskelFromImages_(images);
|
||||
this.closeDialog();
|
||||
}.bind(this),
|
||||
error: function () {
|
||||
error : function () {
|
||||
var images = pskl.utils.CanvasUtils.createFramesFromImage(
|
||||
image,
|
||||
this.frameCountX.val(),
|
||||
|
@ -14,17 +14,17 @@
|
||||
</div>
|
||||
<div class="import-section">
|
||||
<span class="dialog-section-title">Size :</span>
|
||||
<input type="text" class="textfield import-size-field" name="resize-width" />x
|
||||
<input type="text" class="textfield import-size-field" name="resize-height" />
|
||||
<input type="text" class="textfield import-size-field" name="resize-width"/>x
|
||||
<input type="text" class="textfield import-size-field" name="resize-height"/>
|
||||
</div>
|
||||
<div class="import-section">
|
||||
<span class="dialog-section-title">Frames :</span>
|
||||
<input type="text" class="textfield import-size-field" name="frame-count-x" />x
|
||||
<input type="text" class="textfield import-size-field" name="frame-count-y" />
|
||||
<input type="text" class="textfield import-size-field" name="frame-count-x"/>x
|
||||
<input type="text" class="textfield import-size-field" name="frame-count-y"/>
|
||||
</div>
|
||||
<div class="import-section">
|
||||
<span class="import-section-title">Smooth resize :</span>
|
||||
<input type="checkbox" checked="checked" name="smooth-resize-checkbox" value="1" />
|
||||
<input type="checkbox" checked="checked" name="smooth-resize-checkbox" value="1"/>
|
||||
</div>
|
||||
<input type="submit" name="import-submit" class="button button-primary import-button" value="Import" />
|
||||
</form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user