Commit 84eff3a8 authored by Jonathon Duerig's avatar Jonathon Duerig

Fix template fetch for genilib-editor page

parent dd960253
......@@ -174,8 +174,10 @@ window.APT_OPTIONS.fetchTemplate = function (name) {
window.APT_OPTIONS.fetchTemplateList = function (nameList) {
var result = {};
for (var name in nameList)
var i = 0;
for (; i < nameList.length; i += 1)
{
var name = nameList[i];
result[name] = window.APT_OPTIONS.fetchTemplate(name);
}
return result;
......
require(window.APT_OPTIONS.configObject,
['underscore', 'js/quickvm_sup', 'js/aptforms',
// 'js/lib/text!template/genilib-editor.html',
// 'js/lib/text!template/oops-modal.html',
// 'js/lib/text!template/waitwait-modal.html',
// 'js/lib/text!template/manage-profile.html',
'jacks'],
function (_, sup, aptforms)//,
// pageString, oopsString, waitwaitString, manageString)
function (_, sup, aptforms)
{
'use strict';
var templates = APT_OPTIONS.fetchTemplateList('genilib-editor', 'oops-modal', 'waitwait-modal', 'manage-profile');
var templates = APT_OPTIONS.fetchTemplateList(['genilib-editor', 'oops-modal', 'waitwait-modal', 'manage-profile']);
var pageString = templates['genilib-editor'];
var oopsString = templates['oops-modal'];
var waitwaitString = templates['waitwait-modal'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment