Skip to content

Commit 5944dc2

Browse files
committed
Merge branch 'hotfix/https'
2 parents e1a730c + 31c784b commit 5944dc2

9 files changed

+165
-150
lines changed

EditSettings.ascx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"schema": config.schema,
9191
"options": config.options,
9292
"data": config.data,
93-
"view": "dnn-edit",
93+
"view": "dnnbootstrap-edit",
9494
"connector": connector,
9595
"postRender": function (control) {
9696
}

EditSettings.ascx.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected override void OnInit(EventArgs e)
3030
//ServicesFramework.Instance.RequestAjaxScriptSupport();
3131
//ServicesFramework.Instance.RequestAjaxAntiForgerySupport();
3232
AlpacaEngine alpaca = new AlpacaEngine(Page, ModuleContext.PortalId, "DesktopModules/OpenForm/", "settings");
33-
alpaca.RegisterAll();
33+
alpaca.RegisterAll(true, true);
3434
}
3535

3636
protected override void OnLoad(EventArgs e)

EditSettings.ascx.designer.cs

+29-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenForm.dnn

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="OpenForm" type="Module" version="03.03.01">
3+
<package name="OpenForm" type="Module" version="03.04.00">
44
<friendlyName>OpenForm</friendlyName>
5-
<description>OpenForm module. Requires OpenContent v3.2.x</description>
5+
<description>OpenForm module. Requires OpenContent v3.4.5 or higher</description>
66
<iconFile>~/Images/icon_extensions.png</iconFile>
77
<owner>
88
<name>Satrabel.be</name>

View.ascx

+10-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<dnncl:DnnJsInclude ID="DnnJsInclude3" runat="server" FilePath="~/DesktopModules/OpenContent/js/lib/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js" Priority="109" ForceProvider="DnnPageHeaderProvider" />
99
<dnncl:DnnCssInclude ID="DnnCssInclude4" runat="server" FilePath="~/DesktopModules/OpenContent/js/lib/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" />
1010
<dnncl:DnnJsInclude ID="DnnJsInclude5" runat="server" FilePath="~/DesktopModules/OpenContent/alpaca/js/fields/dnn/DateField.js" Priority="110" ForceProvider="DnnPageHeaderProvider" />
11+
<dnncl:DnnJsInclude ID="DnnJsInclude6" runat="server" FilePath="~/DesktopModules/OpenContent/alpaca/js/fields/dnn/CheckboxField.js" Priority="110" ForceProvider="DnnPageHeaderProvider" />
1112

1213
<dnncl:DnnCssInclude ID="DnnCssInclude1" runat="server" FilePath="~/DesktopModules/OpenContent/js/summernote/summernote.css" />
1314
<dnncl:DnnJsInclude ID="DnnJsInclude10" runat="server" FilePath="~/DesktopModules/OpenContent/js/summernote/summernote.js" Priority="113" ForceProvider="DnnPageHeaderProvider" />
@@ -44,7 +45,8 @@
4445
</div>
4546
<span class="ResultMessage"></span>
4647
<div class="ResultTracking"></div>
47-
<asp:HiddenField ID="hfOpenForm" runat="server" />
48+
<asp:HiddenField ID="hfOpenForm" runat="server" />
49+
<input type="hidden" name="__OPENFORM<%=ModuleId %>" id="__OPENFORM<%=ModuleId %>" value="" />
4850
</asp:Panel>
4951

5052
<script type="text/javascript">
@@ -96,6 +98,7 @@
9698
if (selfControl.isValid(true) && (!recaptcha || recap.length > 0)) {
9799
var value = selfControl.getValue();
98100
$('#<%=hfOpenForm.ClientID %>').val(JSON.stringify(value));
101+
$('#__OPENFORM<%=ModuleId %>').val(JSON.stringify(value));
99102
if (recaptcha) {
100103
value.recaptcha = recap;
101104
}
@@ -110,7 +113,7 @@
110113
111114
});
112115
fd.append("data", JSON.stringify(value));
113-
self.FormSubmit(fd);
116+
self.FormSubmit(fd, value);
114117
$(document).trigger("postSubmit.openform", [value, <%=ModuleId %>, sf]);
115118
}
116119
});
@@ -123,7 +126,7 @@
123126
//alert("Uh-oh, something broke: " + status);
124127
});
125128
126-
self.FormSubmit = function (formdata) {
129+
self.FormSubmit = function (formdata, value) {
127130
$.ajax({
128131
type: "POST",
129132
url: sf.getServiceRoot('OpenForm') + "OpenFormAPI/Submit",
@@ -136,7 +139,11 @@
136139
console.log(data.Errors);
137140
}
138141
if (data.Tracking || data.AfterSubmit) {
142+
//var jsonData = JSON.stringify(value);
139143
<%= PostBackStr() %>
144+
//WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("dnn$ctr472$View$lbSave", jsonData, false, "", "http://localhost:54068/fr-fr/openform/result/submit", false, true))
145+
146+
//window.location = window.location + "/submit/" + encodeURIComponent(JSON.stringify(value));
140147
} else {
141148
$('.OpenForm', moduleScope).hide();
142149
$('.ResultMessage', moduleScope).html(data.Message);

View.ascx.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected override void OnLoad(EventArgs e)
6767
OpenFormController ctrl =new OpenFormController();
6868
var content = ctrl.GetContent(id, ModuleId);
6969
*/
70-
string json = hfOpenForm.Value;
70+
string json = Request["__OPENFORM"+ModuleId];
7171
phForm.Visible = false;
7272
phResult.Visible = true;
7373
string formData = "";
@@ -138,8 +138,6 @@ private void InitForm(string template)
138138
scriptList.Items.AddRange(OpenFormUtils.GetTemplatesFiles(PortalSettings, ModuleId, template).ToArray());
139139
scriptList.Visible = true;
140140
}
141-
142-
143141
if (string.IsNullOrEmpty(template))
144142
{
145143
ScopeWrapper.Visible = false;

View.ascx.designer.cs

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/builder/formbuilder.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ var baseFields = function (index, value, oldOptions) {
273273
});
274274
}
275275
if (value.fieldtype == "checkbox") {
276-
field.label = value.title;
276+
field.rightLabel = value.title;
277277
}
278278
if (value.fieldtype == "radio") {
279279
field.vertical = value.vertical;
@@ -664,10 +664,11 @@ var fieldOptions =
664664
maxHeight: null,
665665
focus: true,
666666
toolbar: [
667-
['style', ['bold', 'italic', 'underline', 'clear']],
667+
['style', ['bold', 'underline', 'clear']],
668668
['fontsize', ['fontsize']],
669669
['color', ['color']],
670-
['para', ['ul', 'ol', 'paragraph']]
670+
['para', ['ul', 'ol', 'paragraph']],
671+
['insert', ['link']]
671672
]
672673
}
673674
},

0 commit comments

Comments
 (0)