Hello,
I'm trying to set up gui parameters in a gui plugin. I get a strange behavior: the parameters that I am setting only seem to be taken into account under certain circumstances. Here is the scenario:
* the register.js file of the plugin looks like this
* with this code, every time a user logs in, the default landing page in its properties should be changed to "Calendar".
* to check this, I have changed the landing page to "Contacts" and I have logged out and logged in using several browsers.
* the issue is: the landing page stays to "Contacts" instead of being "Calendar"
I manage to get the "Calendar" landing page when I do the following:
* before logging out, I restart the groupware
* then I log in again
=> the landing page is set to "Calendar"
Any idea where this behavior is coming from and how to counter it?
Michaël
I'm trying to set up gui parameters in a gui plugin. I get a strange behavior: the parameters that I am setting only seem to be taken into account under certain circumstances. Here is the scenario:
* the register.js file of the plugin looks like this
Code:
start_user_env_initialization(); // entry point for the initialization function start_user_env_initialization() { // set gui parameters set_gui_parameters(); } function set_gui_parameters() { var default_param = {"global":{"landing_page":{"module":"calendar"}}}; ox.JSON.put(AjaxRoot + "/config/gui?session=" + session, default_param,set_gui_parameters_ok, operation_nok, true); } function set_gui_parameters_ok(reply) { console.log("Set default categories OK: " + reply); } function operation_nok(reply) { console.log ("Operation NOK: " + reply); }
* to check this, I have changed the landing page to "Contacts" and I have logged out and logged in using several browsers.
* the issue is: the landing page stays to "Contacts" instead of being "Calendar"
I manage to get the "Calendar" landing page when I do the following:
* before logging out, I restart the groupware
* then I log in again
=> the landing page is set to "Calendar"
Any idea where this behavior is coming from and how to counter it?
Michaël
Comment