Commit 8ee0b5ab authored by Prakhar Agarwal's avatar Prakhar Agarwal 🎯
Browse files

added close icon in canvas

parent 7c4d2a36
<div id="patch" class="patch">
<h6 class="text-center patch-filename" id="patch-filename"></h6>
<div class="d-flex justify-content-between align-items-center">
<h6 class="patch-filename" id="patch-filename" style="margin-right: auto; margin-left: auto;"></h6>
<i id="close-canvas" class="fa fa-times text-primary" style="cursor: pointer;"></i>
</div>
<div class="rounded">
<!-- Patch menu -->
<ul class="patch-menu" id="patch-menu">
......
......@@ -518,10 +518,9 @@
// Add pd module to pd
//Clear Console
document.getElementById("clear").addEventListener("click",()=>{
// Clear Console
document.getElementById("clear").addEventListener("click",function clear(){
document.getElementById('p1').innerHTML='';
})
</script>
......
......@@ -2149,6 +2149,9 @@ function load_canvas_menu_actions(name, filename){
minit("file-close"+name, {
onclick: function() { pdgui.menu_close(name); }
});
minit("close-canvas"+name, {
onclick: function() { pdgui.menu_close(name); }
});
// Edit entries
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment