summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-05-14 19:21:02 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-17 12:32:24 +0200
commit89be148580169d9a8dbafa8a72f8c23034e3b601 (patch)
treebf47d8a0e95f620261deed62d954268b8d8c7991
parent17caa5dd5af37826d5fe830edcab344e6a975608 (diff)
downloadfreeipa-89be148580169d9a8dbafa8a72f8c23034e3b601.tar.gz
freeipa-89be148580169d9a8dbafa8a72f8c23034e3b601.tar.xz
freeipa-89be148580169d9a8dbafa8a72f8c23034e3b601.zip
Web UI: move ./_base/metadata_provider.js to ./metadata.js
Metadata provider is IPA specific object, not a framework object, so it should not be in _base directory. https://fedorahosted.org/freeipa/ticket/3604
-rw-r--r--install/ui/src/freeipa/aci.js2
-rw-r--r--install/ui/src/freeipa/association.js2
-rw-r--r--install/ui/src/freeipa/automember.js2
-rwxr-xr-xinstall/ui/src/freeipa/certificate.js2
-rw-r--r--install/ui/src/freeipa/entity.js2
-rw-r--r--install/ui/src/freeipa/field.js2
-rw-r--r--install/ui/src/freeipa/hbactest.js2
-rw-r--r--install/ui/src/freeipa/ipa.js2
-rw-r--r--install/ui/src/freeipa/metadata.js (renamed from install/ui/src/freeipa/_base/metadata_provider.js)11
-rw-r--r--install/ui/src/freeipa/text.js2
-rw-r--r--install/ui/test/aci_tests.js2
-rw-r--r--install/ui/test/details_tests.js2
12 files changed, 18 insertions, 15 deletions
diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js
index 20acca20e..aa28d7218 100644
--- a/install/ui/src/freeipa/aci.js
+++ b/install/ui/src/freeipa/aci.js
@@ -20,7 +20,7 @@
*/
define([
- './_base/metadata_provider',
+ './metadata',
'./ipa',
'./jquery',
'./phases',
diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js
index e2ddaf866..15e164963 100644
--- a/install/ui/src/freeipa/association.js
+++ b/install/ui/src/freeipa/association.js
@@ -24,7 +24,7 @@
define([
'dojo/Deferred',
- './_base/metadata_provider',
+ './metadata',
'./ipa',
'./jquery',
'./navigation',
diff --git a/install/ui/src/freeipa/automember.js b/install/ui/src/freeipa/automember.js
index 36793f303..f8083b89e 100644
--- a/install/ui/src/freeipa/automember.js
+++ b/install/ui/src/freeipa/automember.js
@@ -19,7 +19,7 @@
*/
define([
- './_base/metadata_provider',
+ './metadata',
'./ipa',
'./jquery',
'./navigation',
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js
index e53b6ef6d..897939087 100755
--- a/install/ui/src/freeipa/certificate.js
+++ b/install/ui/src/freeipa/certificate.js
@@ -21,7 +21,7 @@
define([
'dojo/_base/lang',
- './_base/metadata_provider',
+ './metadata',
'./ipa',
'./jquery',
'./menu',
diff --git a/install/ui/src/freeipa/entity.js b/install/ui/src/freeipa/entity.js
index 0d0564d1d..1896f9077 100644
--- a/install/ui/src/freeipa/entity.js
+++ b/install/ui/src/freeipa/entity.js
@@ -23,7 +23,7 @@
define([
'dojo/_base/lang',
- './_base/metadata_provider',
+ './metadata',
'./_base/Singleton_registry',
'./builder',
'./ipa',
diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js
index 17f440aba..087f6e289 100644
--- a/install/ui/src/freeipa/field.js
+++ b/install/ui/src/freeipa/field.js
@@ -25,7 +25,7 @@
define([
'dojo/_base/array',
'dojo/_base/lang',
- './_base/metadata_provider',
+ './metadata',
'./builder',
'./ipa',
'./jquery',
diff --git a/install/ui/src/freeipa/hbactest.js b/install/ui/src/freeipa/hbactest.js
index 4eefe5635..c5189f9b3 100644
--- a/install/ui/src/freeipa/hbactest.js
+++ b/install/ui/src/freeipa/hbactest.js
@@ -19,7 +19,7 @@
*/
define([
- './_base/metadata_provider',
+ './metadata',
'./ipa',
'./jquery',
'./navigation',
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js
index 69d375a4b..441a9052e 100644
--- a/install/ui/src/freeipa/ipa.js
+++ b/install/ui/src/freeipa/ipa.js
@@ -25,7 +25,7 @@
define(['./jquery',
'./json2',
'./_base/i18n',
- './_base/metadata_provider',
+ './metadata',
'./builder',
'./reg',
'./text'],
diff --git a/install/ui/src/freeipa/_base/metadata_provider.js b/install/ui/src/freeipa/metadata.js
index 9a332b556..d33d3ae8f 100644
--- a/install/ui/src/freeipa/_base/metadata_provider.js
+++ b/install/ui/src/freeipa/metadata.js
@@ -18,8 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['dojo/_base/lang', './Provider', './Search_provider'],
- function(lang, Provider, Search_provider) {
+define([
+ 'dojo/_base/lang',
+ './_base/Provider',
+ './_base/Search_provider'
+ ], function(lang, Provider, Search_provider) {
var metadata = new Provider({
code: '@m:'
@@ -29,7 +32,7 @@ define(['dojo/_base/lang', './Provider', './Search_provider'],
source: metadata,
path: 'objects'
});
- var commmads = new Provider({
+ var commands = new Provider({
code: '@mc:',
source: metadata,
path: 'commands'
@@ -56,7 +59,7 @@ define(['dojo/_base/lang', './Provider', './Search_provider'],
array_attr: 'name'
});
- metadata.providers.push(objects, commmads, object_param, cmd_arg, cmd_option);
+ metadata.providers.push(objects, commands, object_param, cmd_arg, cmd_option);
return metadata;
}); \ No newline at end of file
diff --git a/install/ui/src/freeipa/text.js b/install/ui/src/freeipa/text.js
index 1e5b0e591..a439237ae 100644
--- a/install/ui/src/freeipa/text.js
+++ b/install/ui/src/freeipa/text.js
@@ -24,7 +24,7 @@
* Serves for returning labels, titles, messages from various providers.
* Other providers can extends functionality.
*/
-define(['./_base/Provider', './_base/i18n', './_base/metadata_provider'],
+define(['./_base/Provider', './_base/i18n', './metadata'],
function(Provider, i18n, metadata) {
var text = new Provider({
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js
index a819d3f14..b0464e7fd 100644
--- a/install/ui/test/aci_tests.js
+++ b/install/ui/test/aci_tests.js
@@ -19,7 +19,7 @@
*/
define([
- 'freeipa/_base/metadata_provider',
+ 'freeipa/metadata',
'freeipa/aci',
'freeipa/details',
'freeipa/facet',
diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js
index 26bc4fb66..85fb270fd 100644
--- a/install/ui/test/details_tests.js
+++ b/install/ui/test/details_tests.js
@@ -19,7 +19,7 @@
*/
define([
- 'freeipa/_base/metadata_provider',
+ 'freeipa/metadata',
'freeipa/ipa',
'freeipa/jquery',
'freeipa/details',