This commit is contained in:
jdescottes
2013-12-06 18:04:04 +01:00
parent cecadf54e1
commit b11b16b427
10 changed files with 71 additions and 18 deletions

View File

@ -0,0 +1,18 @@
(function () {
var ns = $.namespace("pskl.controller.settings");
ns.SaveController = function (piskelController) {
this.piskelController = piskelController;
};
/**
* @public
*/
ns.SaveController.prototype.init = function () {
this.titleInput = document.getElementById("save-title");
this.descriptionInput = document.getElementById("save-description");
this.titleInput.value = this.piskelController.piskel.getDescriptor().name;
this.descriptionInput.value = this.piskelController.piskel.getDescriptor().description;
};
})();

View File

@ -13,6 +13,10 @@
'import' : {
template : 'templates/settings/import.html',
controller : ns.ImportController
},
'save' : {
template : 'templates/settings/save.html',
controller : ns.SaveController
}
};