External onchange handlers for media scale.
This commit is contained in:
templates/2k11/admin
@@ -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'));
|
||||
|
Reference in New Issue
Block a user