diff options
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 18833e677..be8e3b6ad 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 : ''; |