Filter create or update visual console, not let background size smaller than 1024x768 - #77

This commit is contained in:
enriquecd 2017-02-27 11:27:40 +01:00
parent fc7e2f69b7
commit 2c8c2dceb7
1 changed files with 2 additions and 2 deletions

View File

@ -244,20 +244,20 @@ $(document).ready (function () {
});
$( "input[type=submit]" ).click(function( event ) {
if($( "#getsize" ).css('visibility')=='hidden'){
if (parseInt($('#imagen').width()) < 1024){
alert('Default width is '+$('#imagen').width()+'px, smaller than minimum -> 1024px');
$('input[name=width]').val('1024');
}
else{
$('input[name=width]').val($('#imagen').width());
}
if (parseInt($('#imagen').height()) < 768){
alert('Default height is '+$('#imagen').height()+'px, smaller than minimum -> 768px');
$('input[name=height]').val('768');
}
else{
$('input[name=height]').val($('#imagen').height());
}
}
});
$("#background").change(function() {