diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-11-04 15:13:08 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-11-04 15:13:08 -0400 |
commit | db758c92cd4865ae02c8da357ce5e850a060a4ad (patch) | |
tree | 96bd6a549725d0a5b78f4fc54d752cf94a5a9894 /install/static/ipa.js | |
parent | 7b296f2623610b0820a5553e2c570c6b3428c861 (diff) | |
parent | d99ebc0f3798c84e612c79c43eb85c31b20ab1ce (diff) | |
download | freeipa.git-db758c92cd4865ae02c8da357ce5e850a060a4ad.tar.gz freeipa.git-db758c92cd4865ae02c8da357ce5e850a060a4ad.tar.xz freeipa.git-db758c92cd4865ae02c8da357ce5e850a060a4ad.zip |
Merge branch 'master' of ssh://rcritten@git.fedorahosted.org/git/freeipa
Diffstat (limited to 'install/static/ipa.js')
-rw-r--r-- | install/static/ipa.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/install/static/ipa.js b/install/static/ipa.js index 18833e67..be8e3b6a 100644 --- a/install/static/ipa.js +++ b/install/static/ipa.js @@ -51,6 +51,14 @@ var IPA = ( function () { id: 'error_dialog' }); + that.layout = $.bbq.getState('layout'); + that.layouts_dir = 'layouts'; + + that.get_template = function(path) { + if (!that.layout) return path; + return that.layouts_dir+'/'+that.layout+'/'+path; + }; + /* initialize the IPA JSON-RPC helper * arguments: * url - JSON-RPC URL to use (optional) */ @@ -92,9 +100,6 @@ var IPA = ( function () { that.show_page = function (entity_name, facet_name, other_entity) { - //var entity = IPA.get_entity(entity_name); - //var facet = entity.get_facet(facet_name); - var state = {}; state[entity_name + '-facet'] = facet_name; state[entity_name + '-enroll'] = other_entity ? other_entity : ''; |