expand changesets with notes by default
This commit is contained in:
parent
bb7fe1d888
commit
b3550cf91c
|
@ -236,7 +236,7 @@ namespace SparkleShare {
|
||||||
if (match.Success) {
|
if (match.Success) {
|
||||||
string folder_name = match.Groups [1].Value;
|
string folder_name = match.Groups [1].Value;
|
||||||
string revision = match.Groups [2].Value;
|
string revision = match.Groups [2].Value;
|
||||||
string note = match.Groups [3].Value;
|
string note = match.Groups [3].Value.Replace ("%20", " ");
|
||||||
|
|
||||||
Thread thread = new Thread (new ThreadStart (delegate {
|
Thread thread = new Thread (new ThreadStart (delegate {
|
||||||
SparkleShare.Controller.AddNoteToFolder (folder_name, revision, note);
|
SparkleShare.Controller.AddNoteToFolder (folder_name, revision, note);
|
||||||
|
|
|
@ -11,13 +11,16 @@
|
||||||
<div class='event-folder' style='background-color: <!-- $event-folder-color -->'><!-- $event-folder --></div>
|
<div class='event-folder' style='background-color: <!-- $event-folder-color -->'><!-- $event-folder --></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- $event-entry-content -->
|
<!-- $event-entry-content -->
|
||||||
<div style='clear: both'></div>
|
<div class="comments-section">
|
||||||
<div class="comments-wrapper">
|
<div class="comments-wrapper">
|
||||||
<!-- $event-comments -->
|
<!-- $event-comments -->
|
||||||
<textarea class="comment-textarea"></textarea>
|
<textarea class="comment-textarea"></textarea>
|
||||||
|
|
||||||
|
<input class="comment-button" type="button" value="Add note"
|
||||||
|
id="<!-- $event-folder -->~<!-- $event-revision -->">
|
||||||
|
<div style='clear: both'></div>
|
||||||
|
</div>
|
||||||
<div style='clear: both'></div>
|
<div style='clear: both'></div>
|
||||||
<input class="comment-button" type="button" value="Add note"
|
|
||||||
id="<!-- $event-folder -->~<!-- $event-revision -->">
|
|
||||||
</div>
|
</div>
|
||||||
<div style='clear: both'></div>
|
<div style='clear: both'></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,6 +5,17 @@
|
||||||
<script type="text/javascript" src="<!-- $jquery-url -->"></script>
|
<script type="text/javascript" src="<!-- $jquery-url -->"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
$('.comments-wrapper').each (function () {
|
||||||
|
if ($(this).find ('.comments').children ().size () < 1) {
|
||||||
|
$(this).hide ();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.comments-section').click(function () {
|
||||||
|
$(this).find ('.comments-wrapper').show ();
|
||||||
|
$(this).find ('.comments-wrapper').css ('cursor', 'default');
|
||||||
|
});
|
||||||
|
|
||||||
$("input").click(function () {
|
$("input").click(function () {
|
||||||
textarea = $(this).parent ().find ('textarea');
|
textarea = $(this).parent ().find ('textarea');
|
||||||
text = textarea.val ();
|
text = textarea.val ();
|
||||||
|
@ -90,7 +101,6 @@
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
padding-bottom: 6px;
|
|
||||||
border: #ccc 1px solid;
|
border: #ccc 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,6 +132,7 @@
|
||||||
|
|
||||||
dd:last-child {
|
dd:last-child {
|
||||||
border: none;
|
border: none;
|
||||||
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.document-added {
|
.document-added {
|
||||||
|
@ -182,31 +193,38 @@
|
||||||
.comment-button {
|
.comment-button {
|
||||||
float:right;
|
float:right;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
margin-bottom: 6px;"
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-textarea {
|
.comment-textarea {
|
||||||
margin-top: 12px;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 50px;
|
||||||
|
padding-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comments-section {
|
||||||
|
box-sizing: border-box;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
border-top: 1px #ccc solid;
|
||||||
|
width: 100%;
|
||||||
|
height: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comments-wrapper {
|
.comments-wrapper {
|
||||||
margin-top: 9px;
|
|
||||||
border-top: 1px #ccc solid;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
margin-top: 3px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comments-section:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.comment-text {
|
.comment-text {
|
||||||
padding-bottom: 6px;
|
padding-bottom: 15px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue