summaryrefslogtreecommitdiffstats
path: root/install/ui/ipa.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-11-02 16:43:00 +0100
committerEndi S. Dewata <edewata@redhat.com>2011-11-04 16:54:51 +0000
commit9378e8b437a72c7d267def342874a7f2dcaf301c (patch)
treee1a343089281d50d9cac812df592c9bcf6e139ee /install/ui/ipa.js
parent8ca348b99e350862418ac2fe0addfb0e354ea57e (diff)
downloadfreeipa-9378e8b437a72c7d267def342874a7f2dcaf301c.tar.gz
freeipa-9378e8b437a72c7d267def342874a7f2dcaf301c.tar.xz
freeipa-9378e8b437a72c7d267def342874a7f2dcaf301c.zip
Extending facet's mechanism of gathering changes
https://fedorahosted.org/freeipa/ticket/2041 Adding option to gathering changes for update from widgets, sections, details facet. Changes are represented by update_info { fields [] ((field_info)), commands [] ((command_info)) } object. * On calling get_update_info() method widget, section and facet returns update_info object which represents all changes in nested objects. Thus usually widgets are creating update_infos, their containers are merging them. * This object can be then used in details facet update method. In order to use it command_mode = 'init' has to be set. Command mode was introduced to support backward compatibility. * command_info consists of command and priority. Priority can be set to specify exact exectuting order of commands. It can be defined on facet level by setting widget's priority. When widgit is creating command_info it should pas its priority to it.
Diffstat (limited to 'install/ui/ipa.js')
-rw-r--r--install/ui/ipa.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/install/ui/ipa.js b/install/ui/ipa.js
index c0aa98b98..4dd627ff2 100644
--- a/install/ui/ipa.js
+++ b/install/ui/ipa.js
@@ -204,14 +204,14 @@ var IPA = function() {
that.add_entity(entity);
} catch (e) {
- if (e.expected){
+ if (e.expected) {
/*expected exceptions thrown by builder just mean that
entities are not to be registered. */
return null;
}
- if (e.message){
+ if (e.message) {
alert(e.message);
- }else{
+ } else {
alert(e);
}
return null;
@@ -1086,3 +1086,7 @@ IPA.error_list = function() {
that.clear();
return that;
};
+
+IPA.config = {
+ default_priority: 500
+};