Add files upload
This commit is contained in:
@@ -702,6 +702,43 @@ div.task .task-score {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.task-show-files a {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.task-show-files li {
|
||||
margin-left: 25px;
|
||||
list-style-type: square;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.task-show-file-actions {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
.task-show-file-actions:before {
|
||||
content: " [";
|
||||
}
|
||||
|
||||
.task-show-file-actions:after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.task-show-file-actions a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.task-file-viewer {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.task-file-viewer img {
|
||||
max-width: 95%;
|
||||
max-height: 85%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* markdown content */
|
||||
.markdown {
|
||||
line-height: 1.4em;
|
||||
|
||||
27
assets/js/task.js
Normal file
27
assets/js/task.js
Normal file
@@ -0,0 +1,27 @@
|
||||
(function () {
|
||||
|
||||
// Show popup
|
||||
function popover_show(content)
|
||||
{
|
||||
$("body").append('<div id="popover-container"><div id="popover-content">' + content + '</div></div>');
|
||||
|
||||
$("#popover-container").click(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
$("#popover-content").click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
$(".popover").click(function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
$.get($(this).attr("href"), function(data) {
|
||||
popover_show(data);
|
||||
});
|
||||
});
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user