Skip to content

Commit

Permalink
Update rt-html-abs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 9, 2024
1 parent e14f766 commit 99ccfc7
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions js/rt-html-abs.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ function sendSMS(element) {
defaultMsg: element.getAttribute('data-default-msg'),
type: 'act_sms'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function openLocation(element) {
Expand All @@ -151,7 +152,8 @@ function openLocation(element) {
mapType: element.getAttribute('data-map-type'),
type: 'act_gps'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function shareContent(element) {
Expand All @@ -162,7 +164,8 @@ function shareContent(element) {
subject: element.getAttribute('data-subject'),
type: 'act_share'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function callCloudPhone(element) {
Expand All @@ -188,7 +191,8 @@ function openForm(element) {
preload_repeat: JSON.parse(element.getAttribute('data-preload-repeat')),
type: 'act_fill_form'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function openReport(element) {
Expand All @@ -197,7 +201,8 @@ function openReport(element) {
reportID: element.getAttribute('data-report-id'),
type: 'act_report'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function openDMView(element) {
Expand All @@ -215,7 +220,8 @@ function openDMView(element) {
dismissParent: element.getAttribute('data-dismiss-parent') === 'true',
type: 'act_dm_view'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function getInstance(element) {
Expand Down Expand Up @@ -243,7 +249,8 @@ function openModule(element) {
dismissParent: element.getAttribute('data-dismiss-parent') === 'true',
type: 'act_open_module'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

function openChat(element) {
Expand All @@ -253,7 +260,8 @@ function openChat(element) {
room_title: element.getAttribute('data-room-title'),
type: 'act_open_chat'
};
App.callActionButton(JSON.stringify(actionData));
var json = JSON.stringify(actionData);
App.callActionButton(json);
}

document.addEventListener('DOMContentLoaded', () => {
Expand Down

0 comments on commit 99ccfc7

Please sign in to comment.