42 lines
766 B
JavaScript
42 lines
766 B
JavaScript
|
|
|
|
$(document).ready(function(){
|
|
$('[data-toggle="tooltip"]').tooltip({html:true});
|
|
});
|
|
|
|
|
|
function clickedShow(dmp){
|
|
$("#jsonModal").find("div.modal-body > p").jsonViewer(dmp, {withQuotes: true, collapsed: true});
|
|
}
|
|
|
|
function clickedDelete(id){
|
|
console.log(id);
|
|
$.notify(
|
|
{
|
|
title: "<strong><b>Deleting is disabled</b></strong><br>",
|
|
message: "Deleting DMPs is currently not allowed."
|
|
},
|
|
{
|
|
type: 'danger'
|
|
}
|
|
);
|
|
|
|
}
|
|
|
|
function clickedEdit(id){
|
|
console.log(id);
|
|
$.notify({
|
|
title: "<strong><b>Editing is disabled</b></strong><br>",
|
|
message: "Editing DMPs is currently not allowed."
|
|
});
|
|
}
|
|
|
|
|
|
|
|
function loadTile(data){
|
|
|
|
if($("#tile-"+data.id).html() == ''){
|
|
$("#tile-"+data.id).jsonViewer(data, {withQuotes: true, collapsed: true});
|
|
}
|
|
|
|
} |