forked from Botanical/BotanJS
Minor bug fixes for astroedit
sitefile snippet cancel not work cannot delete Article syntaxhighlighter disable quick-code added rss button
This commit is contained in:
parent
73301ce88a
commit
33661021da
@ -48,16 +48,19 @@
|
||||
}
|
||||
|
||||
// Popup MessageBox
|
||||
new MessageBox("Insert site file"
|
||||
new MessageBox(
|
||||
"Insert site file"
|
||||
, Dand.wrape([
|
||||
v_snippetInput
|
||||
, Dand.wrape([ input_preferred, Dand.textNode( "Preferred" ) ])
|
||||
])
|
||||
, "OK", "Cancel", visualizer.bind({
|
||||
code: v_snippetInput
|
||||
, preferred: input_preferred
|
||||
, stage: this._stage
|
||||
})).show();
|
||||
, "OK", "Cancel"
|
||||
, visualizer.bind({
|
||||
code: v_snippetInput
|
||||
, preferred: input_preferred
|
||||
, stage: this._stage
|
||||
})
|
||||
).show();
|
||||
}
|
||||
|
||||
, __applyData = function (e)
|
||||
@ -210,16 +213,16 @@
|
||||
getData( config.path.info + hash, __applyData.bind({stage: temp, hash: hash}), loadFailed );
|
||||
}
|
||||
|
||||
i = {
|
||||
_content: hash
|
||||
, _preferred: preferred || "off"
|
||||
, _stage: temp
|
||||
};
|
||||
|
||||
// Set context menu
|
||||
createContext( i, j, handler );
|
||||
|
||||
}
|
||||
|
||||
i = {
|
||||
_content: hash
|
||||
, _preferred: preferred || "off"
|
||||
, _stage: temp
|
||||
};
|
||||
|
||||
// Set context menu
|
||||
createContext( i, j, handler );
|
||||
};
|
||||
|
||||
if (override)
|
||||
|
@ -65,7 +65,7 @@
|
||||
// Independent modules
|
||||
new Uploader( a_conf.paths.set_file );
|
||||
new SiteLibrary(
|
||||
Config.get( "BasePath" )
|
||||
base_path
|
||||
, a_conf.paths.get_files
|
||||
, a_conf.paths.set_file
|
||||
);
|
||||
|
@ -83,3 +83,7 @@
|
||||
font-size: 1em;
|
||||
color: #76400C;
|
||||
}
|
||||
|
||||
.highlighter-wrapper {
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
var init = function()
|
||||
{
|
||||
var aid = Dand.id( "b_entry", true ).getDAttribute( "aid" );
|
||||
var stage = Dand.glass( "b_delete", true, Dand.id( "b_entry" ) );
|
||||
if( !stage.length ) return;
|
||||
|
||||
@ -26,7 +27,7 @@
|
||||
|
||||
if( confirmed ) postData(
|
||||
"/ajax/del-article"
|
||||
, { "article_id": stage.getDAttribute( "aid" ) }
|
||||
, { "article_id": aid }
|
||||
, a_deleteSuccess
|
||||
, a_deleteFailed
|
||||
);
|
||||
|
@ -2,5 +2,4 @@
|
||||
var ns = __namespace( "Astro.Blog.Layout.Article.Latest" );
|
||||
|
||||
// __import( "Astro.Blog.Components.Entry.Home" );
|
||||
// __import( "Astro.Blog.Components.Entry.Mega" );
|
||||
})();
|
||||
|
5
botanjs/src/Astro/Blog/Layout/Article/Tag.js
Normal file
5
botanjs/src/Astro/Blog/Layout/Article/Tag.js
Normal file
@ -0,0 +1,5 @@
|
||||
(function(){
|
||||
var ns = __namespace( "Astro.Blog.Layout.Article.Tag" );
|
||||
|
||||
// __import( "Astro.Blog.Components.Entry.List" );
|
||||
})();
|
6
botanjs/src/Astro/Blog/Layout/Article/_this.css
Normal file
6
botanjs/src/Astro/Blog/Layout/Article/_this.css
Normal file
@ -0,0 +1,6 @@
|
||||
.rss-icon circle, .rss-icon path {
|
||||
fill: #444;
|
||||
}
|
||||
.rss-icon:hover circle, .rss-icon:hover path {
|
||||
fill: orangered;
|
||||
}
|
@ -43,6 +43,7 @@
|
||||
/** @type {Libraries.SyntaxHighlighter} */
|
||||
var synt = __import( SyntaxHighlighter );
|
||||
synt.defaults["toolbar"] = false;
|
||||
synt.defaults["quick-code"] = false;
|
||||
synt.highlight();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user