Re: [Freeipa-users] Setting "preserve" as default action when deleting in webUI

2016-11-11 Thread Pavel Vomacka
Hello Sebastien, It's really weird, I tried it again using exactly the same code as you sent earlier and it works. Just for information which version of FreeIPA do you use? It should not be a problem, but I really can't find anything bad in your solution. On 11/09/2016 05:12 PM, Sébastien

Re: [Freeipa-users] Setting "preserve" as default action when deleting in webUI

2016-11-09 Thread Sébastien Julliot
Hello Pavel, Yes I did. "PRESERVE.JS WAS EXECUTED" is printed in my browser's console, and yet "delete" ("supprimer", in French) is still the default. (as you can see in linked image) Le 31/10/2016 à 16:18, Pavel Vomacka a écrit : > Hello Sebastien, > > I tried your plugin and it works

Re: [Freeipa-users] Setting "preserve" as default action when deleting in webUI

2016-10-31 Thread Pavel Vomacka
Hello Sebastien, I tried your plugin and it works correctly. Default value is Preserve with your plugin. Did you copy your plugin into /var/share/ipa/ui/js/plugins/plugin_name/plugin_name.js ? That should be enough. On 10/28/2016 12:14 AM, Sebastien Julliot wrote: Hello guys, Thank you

Re: [Freeipa-users] Setting "preserve" as default action when deleting in webUI

2016-10-30 Thread Petr Vobornik
On 10/21/2016 02:13 PM, Sébastien Julliot wrote: > Hi everyone, > > > In order to prevent administrators to make mistakes that could have > > silly consequences, I would like to set "preserve" as the default selected > > action in freeipa's webui. > > What do you think would be the best way

Re: [Freeipa-users] Setting "preserve" as default action when deleting in webUI

2016-10-27 Thread Sebastien Julliot
Hello guys, Thank you for your answers. First, I was able to modify the minified js to change the default. Ugly solution, but it works for now. I am trying to write a plugin but it seems that I missed something here since, despite being executed, the default is not changed .. Here is my code,

Re: [Freeipa-users] Setting "preserve" as default action when deleting in webUI

2016-10-24 Thread Pavel Vomacka
Hello Sebastien, the safest way is to create a WebUI plugin which rewrite definition of radiobutton in deleter dialog. You can find radiobutton code in user.js, line 989 (method IPA.user.create_active_user_del_dialog), where you need to set default_value to true. Several examples of plugins