mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-04 19:14:14 +00:00
Added show preview option
This commit is contained in:
parent
2f14512025
commit
b4ede1d54f
@ -131,6 +131,18 @@ var TwisterOptions = function()
|
||||
$.Options.setOption(this.id, this.value);
|
||||
})
|
||||
}
|
||||
|
||||
this.getShowPreviewOpt = function() {
|
||||
return $.Options.getOption('displayPreview',"disable");
|
||||
}
|
||||
|
||||
this.setShowPreviewOpt = function () {
|
||||
$('#showPreviewOpt select')[0].value = this.getShowPreviewOpt();
|
||||
|
||||
$('#showPreviewOpt select').on('change', function(){
|
||||
$.Options.setOption(this.id, this.value);
|
||||
})
|
||||
}
|
||||
|
||||
this.InitOptions = function() {
|
||||
this.soundNotifOptions();
|
||||
@ -139,6 +151,7 @@ var TwisterOptions = function()
|
||||
this.setLang();
|
||||
this.setTheme();
|
||||
this.setLineFeedsOpt();
|
||||
this.setShowPreviewOpt();
|
||||
}
|
||||
}
|
||||
|
||||
|
15
options.html
15
options.html
@ -149,6 +149,21 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="preview-display">
|
||||
<div class="module">
|
||||
<p> Posts display </p>
|
||||
<div>
|
||||
<form action="" id="showPreviewOpt">
|
||||
<p>Inline image preview</p>
|
||||
<select name="" id="displayPreview">
|
||||
<option value="disable">Ignore</option>
|
||||
<option value="enable">Display</option>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user