This patch is a fix for upcoming ipa-3-1 minor release.

Loading of extension.js was removed with introduction of AMD modules. This patch returns the feature to avoid regressions.

In 3.2 it will be handled differently (multiple plugins).
--
Petr Vobornik
From 6efdc28c4da8e501ad8f410a7758a9036ed66bf6 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Thu, 21 Mar 2013 16:41:29 +0100
Subject: [PATCH] Load extension.js after UI AMD modules.

This patch is fix for upcoming ipa-3-1 minor release.

Loading of extension.js was removed with introduction of AMD modules. This patch returns the feature to avoid regressions.

In 3.2 it will be handled differently (multiple plugins).
---
 install/ui/src/freeipa/app.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/install/ui/src/freeipa/app.js b/install/ui/src/freeipa/app.js
index 3dcb10f493824923254636c06b715164e419cce5..c30d09fe9f977a47d8adb6235893cec30d895d8d 100644
--- a/install/ui/src/freeipa/app.js
+++ b/install/ui/src/freeipa/app.js
@@ -116,11 +116,14 @@ define([
         container.append('<p>'+error_thrown.message+'</p>');
     }
 
+
     return {
         run: function() {
-            IPA.init({
-                on_success: init_on_success,
-                on_error: init_on_error
+            require(['./ext/extension.js'], function() {
+                IPA.init({
+                    on_success: init_on_success,
+                    on_error: init_on_error
+                });
             });
         }
     };
-- 
1.8.1.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to