We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f871c commit fb74475Copy full SHA for fb74475
tx_aspnet_protected_subtextparts/Views/Home/Index.cshtml
@@ -12,7 +12,7 @@
12
<script>
13
// this function is sending a POST request to the
14
// controller to insert a SubTextPart
15
- function InsertSubTextPart() {
+ function InsertSubTextPart(name, protect) {
16
17
var sel = TXTextControl.selection
18
@@ -33,9 +33,9 @@
33
url: serviceURL,
34
contentType: 'application/json',
35
data: JSON.stringify({
36
- Name: 'Test1',
+ Name: name,
37
BinaryDocument: e.data,
38
- Protected: true
+ Protected: protect
39
}),
40
success: successFunc,
41
error: errorFunc
@@ -69,4 +69,4 @@
69
TXTextControl.editMode = TXTextControl.EditMode.Edit;
70
$('#tbSubTextPartName').val('');
71
});
72
-</script>
+</script>
0 commit comments