-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInject.txt
More file actions
83 lines (81 loc) · 2.28 KB
/
Inject.txt
File metadata and controls
83 lines (81 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Add the following code before the closing tab </asp:panel>
// in the file \Program Files\kCura Corporation\Relativity\EDDS\Case\RelativityScript\Edit.aspx
<style>
.modal-context{
box-sizing: border-box;
outline: 0;
background-color: rgba(54,25,25,.2);
left: 0;
overflow: auto;
padding-bottom: 20px;
padding-top: 20px;
z-index: 100;
height: 100%;
position: fixed;
top: 0;
width: 100%;
}
span.dummy-question{
margin-left: 50px;
color: green;
cursor: pointer;
}
.dynamic-content-modal-content-container {
border: none;
height: 766px;
width: 100%;
}
.modal-container{
height: 800px;
width: 1250px;
background-color: #f7f7f7;
margin: auto;
border-radius: 3px;
text-align: center;
}
.dynamic-content-modal-close{
background-color: #2356a6!important;
background: linear-gradient(#0063af,#1b5495);
border-color: #194b87;
border-style: solid;
border-width: 1px;
border-radius: 3px;
vertical-align: middle;
height: 16px;
line-height: 16px;
font-family: Arial,Helvetica,sans-serif;
font-size: 11px;
font-weight: 400;
box-sizing: content-box;
color: #fff!important;
padding: 3px 8px;
margin-top: 4px;
margin-bottom: 4px;
}
</style>
<div id="dummyWorld" style="display: none">
<div class="modal-context first-focus-element" tabindex="0">
<div class="modal-container">
<button class="dynamic-content-modal-close" type="button">Close</button>
<iframe id="script4DummiesModal" class="dynamic-content-modal-content-container" src="about:blank"></iframe>
</div>
</div>
</div>
<script language=javascript>
$(function(){
var txtarea = $('#_editTemplate__kCuraScrollingDiv__scriptText');
if(!txtarea.attr('disabled')){
$('#_editTemplate__kCuraScrollingDiv__scriptBodyHeader').append('<span class="dummy-question">Launch Editor ...</span>');
}
$('.dummy-question').click(function(){
$('#dummyWorld').show();
$('#script4DummiesModal').attr('src', '/Relativity/CustomPages/49a9acaf-6ddd-468f-9b1e-22f7b719bf65/index.html');
});
$('.dynamic-content-modal-close').click(function(){
var modalWindow = document.getElementById("script4DummiesModal").contentWindow;
var result = modalWindow.xmlScript();
$('textarea.script-body').val(result);
$('#dummyWorld').hide();
});
});
</script>