//>>built
require({cache:{"url:app/ui/dialogs/templates/LanguageDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"languageDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"codeInput-${id}"\x3eCode\x3c/label\x3e\n          \x3cinput type\x3d"text" id\x3d"codeInput-${id}" data-dojo-attach-point\x3d"codeInputNode" /\x3e\n        \x3c/div\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"descriptionInput-${id}"\x3eName\x3c/label\x3e\n          \x3cinput type\x3d"text" id\x3d"descriptionInput-${id}" data-dojo-attach-point\x3d"descriptionInputNode" /\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" data-dojo-attach-point\x3d"okButtonNode" class\x3d"button tiny"\x3eOk\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e'}});
define("app/ui/dialogs/LanguageDialog","dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/topic dojo/text!./templates/LanguageDialog.html ../../utils/DomUtils".split(" "),function(b,c,d,e,f,g,h){return b([e,c,d],{templateString:g,parentNode:null,baseClass:"language-dialog",title:"Edit language",language:null,edit:!0,postCreate:function(){this.inherited(arguments)},startup:function(){this.inherited(arguments)},setData:function(a){this.codeInputNode.value=a.id;
this.descriptionInputNode.value=a.name},hide:function(){this.inherited(arguments);this.reset()},show:function(a){this.inherited(arguments);this.reset();a?(this.setData(a),this.set("title","Edit language"),this.okButtonNode.innerHTML="Edit",this.edit=!0,this.language=a):(this.set("title","Add new language"),this.okButtonNode.innerHTML="Add",this.edit=!1)},_okClick:function(a){a.preventDefault();this._validate()?(this.language.id=this.codeInputNode.value,this.language.name=this.descriptionInputNode.value,
this.edit?this.emit("edit.language",{language:this.language}):this.emit("add.language",{language:this.language}),this.hide()):f.publish("dGrowl","Please fill in at least a language code.",{title:"Invalid language",sticky:!1,channel:"info"})},_cancelClick:function(a){a?a.preventDefault():null;this.hide()},reset:function(){this.codeInputNode.value="";this.descriptionInputNode.value=""},_validate:function(){return null!==this.codeInputNode.value.trim()&&""!==this.codeInputNode.value.trim()}})});
//# sourceMappingURL=LanguageDialog.js.map