Support for Markdown extra

This commit is contained in:
benweet 2013-04-15 17:23:34 +01:00
parent 6f5cfd4712
commit f31a2d7b61
3 changed files with 18 additions and 18 deletions

View File

@ -368,17 +368,6 @@
<div class="tab-content">
<div class="tab-pane active" id="tabpane-settings-editor">
<div class="form-horizontal">
<div class="control-group">
<label class="control-label"
for="input-settings-converter-type">Converter</label>
<div class="controls">
<select id="input-settings-converter-type">
<option value="markdown">Markdown</option>
<option value="markdown-extra">Markdown Extra</option>
<option value="markdown-extra-prettify">Markdown Extra + Prettify</option>
</select>
</div>
</div>
<div class="control-group">
<div class="control-label">Layout orientation</div>
<div class="controls">
@ -391,6 +380,17 @@
</label>
</div>
</div>
<div class="control-group">
<label class="control-label"
for="input-settings-converter-type">Converter</label>
<div class="controls">
<select id="input-settings-converter-type">
<option value="markdown">Markdown</option>
<option value="markdown-extra">Markdown Extra</option>
<option value="markdown-extra-prettify">Markdown Extra + Prettify</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label"
for="input-settings-editor-font-size">Editor font size</label>

View File

@ -192,13 +192,13 @@ define(
$.extend(core.settings, JSON.parse(localStorage.settings));
}
// Converter type
$("#input-settings-converter-type").val(core.settings.converterType);
// Layout orientation
$("input:radio[name=radio-layout-orientation][value="
+ core.settings.layoutOrientation + "]").prop("checked", true);
// Converter type
$("#input-settings-converter-type").val(core.settings.converterType);
// Editor font size
$("#input-settings-editor-font-size").val(core.settings.editorFontSize);
@ -212,13 +212,13 @@ define(
core.saveSettings = function(event) {
var newSettings = {};
// Converter type
newSettings.converterType = $("#input-settings-converter-type").val();
// Layout orientation
newSettings.layoutOrientation = $(
"input:radio[name=radio-layout-orientation]:checked").prop("value");
// Converter type
newSettings.converterType = $("#input-settings-converter-type").val();
// Editor font size
newSettings.editorFontSize = core.getInputIntValue($("#input-settings-editor-font-size"), event, 1, 99);

2
js/main-min.js vendored

File diff suppressed because one or more lines are too long