Add files upload
This commit is contained in:
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