mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 14:36:19 +02:00
* Load fse stuff from menu.json. Will use form 0..n
This commit is contained in:
parent
e7e9070414
commit
670bf0fd6e
4 changed files with 51 additions and 53 deletions
|
@ -161,7 +161,7 @@ function ViewController(options) {
|
|||
this.setViewPropertiesFromMCIConf = function(view, conf) {
|
||||
|
||||
function setViewProp(propName, setter) {
|
||||
if(conf[propName]) {
|
||||
if(!_.isUndefined(conf[propName])) {
|
||||
var propValue;
|
||||
var propAsset = asset.getViewPropertyAsset(conf[propName]);
|
||||
if(propAsset) {
|
||||
|
@ -182,7 +182,7 @@ function ViewController(options) {
|
|||
propValue = conf[propName];
|
||||
}
|
||||
|
||||
if(propValue) {
|
||||
if(!_.isUndefined(propValue)) {
|
||||
if(setter) {
|
||||
setter(propValue);
|
||||
} else {
|
||||
|
@ -323,7 +323,6 @@ ViewController.prototype.attachClientEvents = function() {
|
|||
}
|
||||
|
||||
this.client.on('key press', this.clientKeyPressHandler);
|
||||
//this.client.on('special key', this.clientSpecialKeyHandler);
|
||||
|
||||
this.attached = true;
|
||||
};
|
||||
|
@ -334,7 +333,6 @@ ViewController.prototype.detachClientEvents = function() {
|
|||
}
|
||||
|
||||
this.client.removeListener('key press', this.clientKeyPressHandler);
|
||||
//this.client.removeListener('special key', this.clientSpecialKeyHandler);
|
||||
|
||||
for(var id in this.views) {
|
||||
this.views[id].removeAllListeners();
|
||||
|
@ -584,6 +582,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
|||
}
|
||||
|
||||
self.on('submit', function formSubmit(formData) {
|
||||
|
||||
Log.trace( { formData : self.getLogFriendlyFormData(formData) }, 'Form submit');
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue