Add handlebar helper to convert json to string

revert-70aa11f8
Saad Sahibjan 6 years ago
parent 84cbf64b3b
commit d64edd8cf9

@ -223,6 +223,7 @@ policyModule = function () {
appObjectToView = {};
appObjectToView["appName"] = appObjectFromRestEndpoint["name"];
appObjectToView["appId"] = appObjectFromRestEndpoint["id"];
appObjectToView["webUrl"] = appObjectFromRestEndpoint["appmeta"]["weburl"];
if ("webapp" === appObjectFromRestEndpoint["platform"]) {
appObjectToView["packageName"] = appObjectFromRestEndpoint["appmeta"]["weburl"];
appObjectToView["type"] = "Web Clip"

@ -504,6 +504,12 @@ function formatRepoSelection(user) {
$(document).ready(function () {
// Handlebar helper to convert JSON to String
Handlebars.registerHelper("json", function (jsonObject) {
return JSON.stringify(jsonObject);
});
$("#users-input").select2({
multiple: true,
tags: false,

@ -599,6 +599,12 @@ var formatRepoSelection = function (user) {
$(document).ready(function () {
// Handlebar helper to convert JSON to String
Handlebars.registerHelper("json", function (jsonObject) {
return JSON.stringify(jsonObject);
});
// Adding initial state of wizard-steps.
$("#users-input").select2({
multiple: true,
@ -755,5 +761,4 @@ $(document).ready(function () {
$("." + nextStep).removeClass("hidden");
}
});
});
Loading…
Cancel
Save