aboutsummaryrefslogtreecommitdiffstats
path: root/template/admin/html/page/form.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-28 17:53:46 +0200
committerThomas Lange <code@nerdmind.de>2017-04-28 17:53:46 +0200
commit6471b7d21bf571b4f1da911a5440239d0f936574 (patch)
treed298ef87cee35bc34a36169afe3b49f4363167b8 /template/admin/html/page/form.php
parent6c4f2a26233f7bef03ddf7ee9f59c95e88e1a601 (diff)
downloadblog-6471b7d21bf571b4f1da911a5440239d0f936574.tar.gz
blog-6471b7d21bf571b4f1da911a5440239d0f936574.tar.xz
blog-6471b7d21bf571b4f1da911a5440239d0f936574.zip
Inline javascript for emoticon and markdown replacement has been outsourced into the main.js file.
Diffstat (limited to 'template/admin/html/page/form.php')
-rw-r--r--template/admin/html/page/form.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/template/admin/html/page/form.php b/template/admin/html/page/form.php
index 7d91af9..f254aeb 100644
--- a/template/admin/html/page/form.php
+++ b/template/admin/html/page/form.php
@@ -57,23 +57,23 @@
<input id="L_ARGV" name="argv" maxlength="100" placeholder="[ARGUMENT_FOO=one|ARGUMENT_BAR=two …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>" />
</section>
<section class="flex flex-padding background flex-emoticons">
- <ul class="button-list emoticons">
+ <ul id="emoticon-list" class="button-list emoticons">
<?php foreach(getEmoticons() as $emoticon => $data):?>
- <li onmousedown="emoticonReplace('<?=$emoticon?>')" title="<?=$data[1]?>"><?=$data[0]?></li>
+ <li data-emoticon="<?=$emoticon?>" title="<?=$data[1]?>"><?=$data[0]?></li>
<?php endforeach; ?>
</ul>
</section>
<section class="flex flex-padding background">
- <ul class="button-list markdown">
- <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="<?=$Language->template('markdown_bold')?>"></li>
- <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="<?=$Language->template('markdown_italic')?>"></li>
- <li onmousedown="markdownReplace('heading');" class="fa fa-header" title="<?=$Language->template('markdown_heading')?>"></li>
- <li onmousedown="markdownReplace('link');" class="fa fa-link" title="<?=$Language->template('markdown_link')?>"></li>
- <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="<?=$Language->template('markdown_image')?>"></li>
- <li onmousedown="markdownReplace('code');" class="fa fa-code" title="<?=$Language->template('markdown_code')?>"></li>
- <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="<?=$Language->template('markdown_quote')?>"></li>
- <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="<?=$Language->template('markdown_list_ul')?>"></li>
- <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="<?=$Language->template('markdown_list_ol')?>"></li>
+ <ul id="markdown-list" class="button-list markdown">
+ <li data-markdown="bold" class="fa fa-bold" title="<?=$Language->template('markdown_bold')?>"></li>
+ <li data-markdown="italic" class="fa fa-italic" title="<?=$Language->template('markdown_italic')?>"></li>
+ <li data-markdown="heading" class="fa fa-header" title="<?=$Language->template('markdown_heading')?>"></li>
+ <li data-markdown="link" class="fa fa-link" title="<?=$Language->template('markdown_link')?>"></li>
+ <li data-markdown="image" class="fa fa-picture-o" title="<?=$Language->template('markdown_image')?>"></li>
+ <li data-markdown="code" class="fa fa-code" title="<?=$Language->template('markdown_code')?>"></li>
+ <li data-markdown="quote" class="fa fa-quote-right" title="<?=$Language->template('markdown_quote')?>"></li>
+ <li data-markdown="list_ul" class="fa fa-list-ul" title="<?=$Language->template('markdown_list_ul')?>"></li>
+ <li data-markdown="list_ol" class="fa fa-list-ol" title="<?=$Language->template('markdown_list_ol')?>"></li>
</ul>
</section>
<?php else: ?>