|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
7 | 7 | <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
|
8 | 8 | <link rel="stylesheet" type="text/css" href="css/git-webui.css" />
|
9 |
| - <server>set $NAMESPACE = "USER"</server> |
10 | 9 | #(##class(SourceControl.Git.Utils).GetSourceControlInclude())#
|
11 | 10 | <style type="text/css">
|
12 | 11 | h1, h2 {
|
|
92 | 91 | while iterator.%GetNext(,.uncommitted) {
|
93 | 92 | set action = uncommitted.%Get("action")
|
94 | 93 | set file = uncommitted.%Get("file")
|
95 |
| - &html<<li class="list-group-item #(action)#">#(file)#</li>> |
| 94 | + &html<<li class="list-group-item #(..EscapeHTML(action))#">#(..EscapeHTML(file))#</li>> |
96 | 95 | }
|
97 | 96 | </server>
|
98 | 97 | </ul>
|
99 | 98 | <h3 class="section-header">Sync commit message:</h3>
|
100 |
| - <input class="form-control" type="text" name="syncMsg" id="syncMsg" value="#(commitMsg)#"> |
| 99 | + <input class="form-control" type="text" name="syncMsg" id="syncMsg" value="#(..EscapeHTML(commitMsg))#"> |
101 | 100 | </div>
|
102 | 101 | <div style="display: #(noFileDisplay)#">
|
103 | 102 | <h2 class="text-center">No files to commit with sync</h2>
|
|
111 | 110 | }
|
112 | 111 | </server>
|
113 | 112 |
|
114 |
| - <button class="btn btn-lg btn-primary" id="syncBtn" onClick="disableInput()">Sync</button> |
| 113 | + <button class="btn btn-lg btn-primary" id="syncBtn" onClick="disableInput(); #server(..PerformSync(self.document.getElementById('syncMsg').value))#">Sync</button> |
115 | 114 | <div>
|
116 | 115 | <h3 class="output-header" id="outputHeader" style="display: #(outputDisplay)#">Sync output: </h3>
|
117 | 116 | <div class="container output" id="outputContainer" style="display: #(outputDisplay)#">
|
|
128 | 127 | document.getElementById('syncMsg').disabled = true;
|
129 | 128 | document.getElementById('syncBtn').innerHTML = 'Syncing...';
|
130 | 129 | document.getElementById('syncBtn').disabled = true;
|
131 |
| - #server(..PerformSync(self.document.getElementById('syncMsg').value))# |
132 | 130 | }
|
133 | 131 | </script>
|
134 | 132 | <script language="cache" method="PerformSync" arguments="syncMsg:%String">
|
|
0 commit comments