1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-10 07:54:00 +02:00

Refactor code.

This commit is contained in:
Lars Jung
2015-05-03 01:52:26 +02:00
parent 46b335eb9f
commit 3b9e87e11b
2 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server',
if (data.header) {
content = data.header;
if (data.header_type === 'md') {
if (data.headerType === 'md') {
content = marked(content);
}
$header.html(content).stop().slideDown(duration);
@@ -31,7 +31,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server',
if (data.footer) {
content = data.footer;
if (data.footer_type === 'md') {
if (data.footerType === 'md') {
content = marked(content);
}
$footer.html(content).stop().slideDown(duration);

View File

@@ -337,9 +337,9 @@ class App {
if (!$this->get_option("custom.enabled", false)) {
return array(
"header" => null,
"header_type" => null,
"headerType" => null,
"footer" => null,
"footer_type" => null
"footerType" => null
);
}
@@ -374,9 +374,9 @@ class App {
return array(
"header" => $header,
"header_type" => $header_type,
"headerType" => $header_type,
"footer" => $footer,
"footer_type" => $footer_type
"footerType" => $footer_type
);
}
}