|
|
@ -70,6 +70,10 @@ function initAfterI18nMessagesLoaded(reload, templates, callbacks) { |
|
|
|
$(input).change(function(){ |
|
|
|
$(input).change(function(){ |
|
|
|
var val = (isRadioOrcheckbox ? $(this).is(":checked") : $(this).val()); |
|
|
|
var val = (isRadioOrcheckbox ? $(this).is(":checked") : $(this).val()); |
|
|
|
parameters.value(key, val); |
|
|
|
parameters.value(key, val); |
|
|
|
|
|
|
|
if(key != "themes"){ |
|
|
|
|
|
|
|
parameters.value("show", "3"); |
|
|
|
|
|
|
|
app.reload();
|
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
})(input); |
|
|
|
})(input); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -79,6 +83,7 @@ function initAfterI18nMessagesLoaded(reload, templates, callbacks) { |
|
|
|
app.onEdit = true; |
|
|
|
app.onEdit = true; |
|
|
|
$(document.body).addClass("onEdit"); |
|
|
|
$(document.body).addClass("onEdit"); |
|
|
|
if(callbacks.onEdit && typeof callbacks.onEdit === 'function') { |
|
|
|
if(callbacks.onEdit && typeof callbacks.onEdit === 'function') { |
|
|
|
|
|
|
|
parameters.value("show", "1"); |
|
|
|
callbacks.onEdit(app); |
|
|
|
callbacks.onEdit(app); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -86,10 +91,12 @@ function initAfterI18nMessagesLoaded(reload, templates, callbacks) { |
|
|
|
app.onEdit = false;
|
|
|
|
app.onEdit = false;
|
|
|
|
$(document.body).removeClass("onEdit"); |
|
|
|
$(document.body).removeClass("onEdit"); |
|
|
|
if(callbacks.onView && typeof callbacks.onView === 'function') { |
|
|
|
if(callbacks.onView && typeof callbacks.onView === 'function') { |
|
|
|
|
|
|
|
parameters.value("show", "2"); |
|
|
|
callbacks.onView(app); |
|
|
|
callbacks.onView(app); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$("button[role=reload]").click(function(){ |
|
|
|
$("button[role=reload]").click(function(){ |
|
|
|
|
|
|
|
parameters.value("show", "3"); |
|
|
|
app.reload(); |
|
|
|
app.reload(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$("button[role=help]").click(function(){ |
|
|
|
$("button[role=help]").click(function(){ |
|
|
@ -133,7 +140,10 @@ var Parameters = (function(){ |
|
|
|
else { |
|
|
|
else { |
|
|
|
log("Set parameter value ["+value+"] for key : ["+key+"]"); |
|
|
|
log("Set parameter value ["+value+"] for key : ["+key+"]"); |
|
|
|
this.delegate.setPreference(key, value); |
|
|
|
this.delegate.setPreference(key, value); |
|
|
|
this.container.trigger("preferenceChange", {key: key, value: value});
|
|
|
|
this.container.trigger("preferenceChange", { |
|
|
|
|
|
|
|
key: key,
|
|
|
|
|
|
|
|
value: value |
|
|
|
|
|
|
|
});
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|