1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-13 17:34:07 +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) { if (data.header) {
content = data.header; content = data.header;
if (data.header_type === 'md') { if (data.headerType === 'md') {
content = marked(content); content = marked(content);
} }
$header.html(content).stop().slideDown(duration); $header.html(content).stop().slideDown(duration);
@@ -31,7 +31,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server',
if (data.footer) { if (data.footer) {
content = data.footer; content = data.footer;
if (data.footer_type === 'md') { if (data.footerType === 'md') {
content = marked(content); content = marked(content);
} }
$footer.html(content).stop().slideDown(duration); $footer.html(content).stop().slideDown(duration);

View File

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