mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add handlebar helper to convert json to string
This commit is contained in:
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…
Reference in New Issue
Block a user