projects
/
Pman.MTrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07a4597
)
Uncommited changes synced
author
Alan Knowles
<alan@roojs.com>
Mon, 31 Dec 2018 04:52:39 +0000
(12:52 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 31 Dec 2018 04:52:39 +0000
(12:52 +0800)
jtemplates/change_commit.html
patch
|
blob
|
history
diff --git
a/jtemplates/change_commit.html
b/jtemplates/change_commit.html
index
b310e72
..
0a36f9b
100644
(file)
--- a/
jtemplates/change_commit.html
+++ b/
jtemplates/change_commit.html
@@
-1,14
+1,24
@@
-
+ el.select('.change-log-item').on('click', Pman.MTrack.auditToggle);
+ }
+ });
+
+ },
+ auditToggle : function(e,y)
+ {
+ // Roo.log(this);
+ var id = this.id.split('-').pop();
+ Roo.get('change-expand-' + id).setVisibilityMode(Roo.Element.DISPLAY);
+ Roo.get('change-expand-' + id).toggle(true);
+ Roo.get('change-expander-' + id).toggleClass('change-log-item-expanded')
+
+
<li class="change-log-item" id="change-expander-{t.id}">
<span class="change" > Commit : {t.rev} change by {t.person_id_name}</span>
<li class="change-log-item" id="change-expander-{t.id}">
<span class="change" > Commit : {t.rev} change by {t.person_id_name}</span>
-
+</li>
<div style="display:none" class="change-log-details" id="change-expand-{t.id}">
<div style="display:none" class="change-log-details" id="change-expand-{t.id}">
- <ul>
- <li class="change-log-item" id="change-expander-{t.id}-a">
- </li>
- </ul>
+
{script:}
{script:}
@@
-17,7
+27,7
@@
{end:}
<h4>{fn}</h4>
<div class="showdown"
{end:}
<h4>{fn}</h4>
<div class="showdown"
- style="white-space: pre;overflow:scroll;font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
+ style="white-space: pre;overflow:scroll;font-family:
font-size: 10px;
'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
{Roo.util.Format.htmlEncode(diff).replace(/\n/g,'<br/>'):h}
</div>
{Roo.util.Format.htmlEncode(diff).replace(/\n/g,'<br/>'):h}
</div>
@@
-30,4
+40,4
@@
</div>
</div>
-</li>
+