jshint cleanup, move HTML to a template, add css classes

This commit is contained in:
Julian Descottes
2016-12-24 10:43:12 +01:00
parent 98527c6ded
commit c0f7e7be52
4 changed files with 20 additions and 9 deletions

View File

@@ -54,9 +54,8 @@
ns.SaveController.prototype.updateSaveToGalleryMessage_ = function (spritesheetSize) {
if (pskl.app.performanceReportService.hasProblem()) {
document.querySelector('.save-online-status').innerHTML =
'<div class="icon-common-warning-red" style="float:left; margin-top: 5px">&nbsp;</div>' +
'<div style="overflow: hidden; padding-left: 10px">Saving to the gallery might fail due to the sprite size.</div>';
var warningPartial = pskl.utils.Template.get('save-gallery-warning-partial');
document.querySelector('.save-online-status').innerHTML = warningPartial;
}
};
@@ -76,7 +75,6 @@
}
// Uncomment this line to test the online save section locally.
return [PARTIALS.FILEDOWNLOAD, PARTIALS.LOCALSTORAGE, PARTIALS.GALLERY];
return [PARTIALS.FILEDOWNLOAD, PARTIALS.LOCALSTORAGE, PARTIALS.GALLERY_UNAVAILABLE];
};