max-width/max-height added to btn img

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11822 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nagoon97 2012-10-23 02:27:36 +00:00
parent 78d85cb3f9
commit ba1b5bf761

View file

@ -736,6 +736,7 @@ body>.x{max-width:none}
#imgbtn figcaption{font-weight:bold}
#imgbtn p{margin:0}
#imgbtn .btnBoth{border-top:0;border-bottom:1px solid #ddd;margin:0;padding:10px 0}
#imgbtn img{max-width:220px; max-height:220px}
/* Design */
#design ._preview_form{margin:0}
#design ul{margin-top:8px}
@ -2555,6 +2556,9 @@ jQuery(function($){
console.log(htData);
}
var $imgBtnForms = $("#imgbtn form");
$imgBtnForms = $("#imgbtn form input[type=file]").change(function(){
$(this).closest('form').submit();
});
$imgBtnForms.find('input[name=act]').val('procMenuAdminButtonUpload');
$imgBtnForms.find('input[name=mid]').remove();
$imgBtnForms.find('input[name=vid]').remove();
@ -3093,6 +3097,7 @@ setTimeout(function(){
});
});
*/
/*
// File upload
$('input[type="file"]').change(function(){
$(this).closest('form').submit();
@ -3110,6 +3115,7 @@ setTimeout(function(){
}
});
}, 1000);
*/
// Theme(layout | skin) list toggle
var $theme = $('.theme');
// layout, skin list toggle