1
0

External onchange handlers for media scale.

This commit is contained in:
Matthias Mees
2013-06-14 19:07:26 +02:00
parent 41734c682e
commit 91ff747733
2 changed files with 11 additions and 2 deletions

@@ -295,12 +295,12 @@
<div class="form_field">
<label for="resize_width">{$CONST.INSTALL_THUMBDIM_WIDTH}</label>
<input id="resize_width" name="serendipity[width]" type="text" onchange="rescale('width' , value);" value="{$img_width}">
<input id="resize_width" name="serendipity[width]" type="text" value="{$img_width}">
</div>
<div class="form_field">
<label for="resize_height">{$CONST.INSTALL_THUMBDIM_HEIGHT}</label>
<input id="resize_height" name="serendipity[height]" type="text" onchange="rescale('height', value);" value="{$img_height}">
<input id="resize_height" name="serendipity[height]" type="text" value="{$img_height}">
</div>
</fieldset>

@@ -829,6 +829,15 @@ function highlightComment(id, checkvalue) {
if (confirm('{$CONST.REALLY_SCALE_IMAGE}')) document.serendipityScaleForm.submit();
});
// Media scale change events
$('#resize_width').change(function(e) {
rescale('width' , $(this).val());
});
$('#resize_height').change(function(e) {
rescale('height' , $(this).val());
});
// Show extended comment
$('.toggle_comment_full').click(function(e) {
var $toggles = $($(this).attr('href'));