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:
斟酌 鵬兄 2015-12-22 22:52:29 +08:00
parent 73301ce88a
commit 33661021da
8 changed files with 37 additions and 18 deletions

View File

@ -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)

View File

@ -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
);

View File

@ -83,3 +83,7 @@
font-size: 1em;
color: #76400C;
}
.highlighter-wrapper {
margin: 0 1em;
}

View File

@ -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
);

View File

@ -2,5 +2,4 @@
var ns = __namespace( "Astro.Blog.Layout.Article.Latest" );
// __import( "Astro.Blog.Components.Entry.Home" );
// __import( "Astro.Blog.Components.Entry.Mega" );
})();

View File

@ -0,0 +1,5 @@
(function(){
var ns = __namespace( "Astro.Blog.Layout.Article.Tag" );
// __import( "Astro.Blog.Components.Entry.List" );
})();

View File

@ -0,0 +1,6 @@
.rss-icon circle, .rss-icon path {
fill: #444;
}
.rss-icon:hover circle, .rss-icon:hover path {
fill: orangered;
}

View File

@ -43,6 +43,7 @@
/** @type {Libraries.SyntaxHighlighter} */
var synt = __import( SyntaxHighlighter );
synt.defaults["toolbar"] = false;
synt.defaults["quick-code"] = false;
synt.highlight();
}
};