Archived
1
0

External onclick handler for scaling images.

This commit is contained in:
Matthias Mees
2013-06-14 17:18:37 +02:00
parent a6470864fb
commit 2b2ed7551d
2 changed files with 6 additions and 1 deletions

View File

@@ -334,7 +334,7 @@
</div>
<div class="form_buttons">
<input name="scale" type="button" value="{$CONST.IMAGE_RESIZE}" onclick="if (confirm('{$CONST.REALLY_SCALE_IMAGE}')) document.serendipityScaleForm.submit();">
<input class="image_scale" name="scale" type="button" value="{$CONST.IMAGE_RESIZE}">
</div>
</form>

View File

@@ -826,6 +826,11 @@ function highlightComment(id, checkvalue) {
e.preventDefault();
});
// Confirm media scale
$('.image_scale').click(function(e) {
if (confirm('{$CONST.REALLY_SCALE_IMAGE}')) document.serendipityScaleForm.submit();
});
// Show extended comment
$('.toggle_comment_full').click(function(e) {
var $toggles = $($(this).attr('href'));