diff --git a/botanjs/src/Astro/Blog/Components/Notification.js b/botanjs/src/Astro/Blog/Components/Notification.js index cdd69dd..e829485 100644 --- a/botanjs/src/Astro/Blog/Components/Notification.js +++ b/botanjs/src/Astro/Blog/Components/Notification.js @@ -227,7 +227,7 @@ contextMenu.getItemByKey("Settings").stage.className = "nt_icon_settings"; }; - postData( processor, { action: "get" }, createContextMenu ); + postData( processor, { "action": "get" }, createContextMenu ); }; Bootstrap.regInit( init ); diff --git a/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.js b/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.js index 384c4a9..47aae3c 100644 --- a/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.js +++ b/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.js @@ -14,8 +14,10 @@ var init = function() { - var stage = Dand.id( "b_entry", true ); - if( !stage ) return; + var stage = Dand.glass( "b_delete", true, Dand.id( "b_entry" ) ); + if( !stage.length ) return; + + stage = stage[0]; var doDelete = function( confirmed ) {