Skip to content

Commit fff7fb3

Browse files
author
Jelte Lagendijk
committed
Fix microflow call & bump version
1 parent 74fcc00 commit fff7fb3

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "HTMLSnippet",
3-
"version": "3.8.1",
3+
"version": "3.9.0",
44
"description": "",
55
"license": "",
66
"author": "",

src/HTMLSnippet/widget/HTMLSnippet.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,12 @@ define([
112112
_executeMicroflow: function () {
113113
logger.debug(this.id + "._executeMicroflow");
114114
if (this.onclickmf) {
115-
var params = {
116-
applyto: "selection",
117-
actionname: this.onclickmf
118-
};
119-
if (this.contextObj != null) {
120-
params.guids = [this.contextObj.getGuid()]
115+
var params = {};
116+
if (this.contextObj !== null) {
117+
params.applyto = "selection";
118+
params.guids = [this.contextObj.getGuid()];
121119
}
122-
mx.data.action({
120+
mx.ui.action(this.onclickmf, {
123121
params: params,
124122
callback: function (obj) { },
125123
error: function (error) { }

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="HTMLSnippet" version="3.8.1" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="HTMLSnippet" version="3.9.0" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="HTMLSnippet/HTMLSnippet.xml"/>
66
<widgetFile path="HTMLSnippet/HTMLSnippetContext.xml"/>

test/Test.mpr

29 KB
Binary file not shown.

test/widgets/HTMLSnippet.mpk

4.22 KB
Binary file not shown.

0 commit comments

Comments
 (0)