update when edit news image checkbox verification
This commit is contained in:
parent
09dd3a0b1f
commit
709b5a7ccb
|
@ -417,9 +417,11 @@
|
|||
|
||||
$('.form-actions input[type="submit"]').click(function(){
|
||||
var validate = true;
|
||||
if(validate_files) validate = validate_fileupload();
|
||||
if(validate_image) validate = validate_image();
|
||||
if(!validate) return false;
|
||||
if(location.pathname=='/admin/news/new'){
|
||||
if(validate_files) validate = validate_fileupload();
|
||||
if(validate_image) validate = validate_image();
|
||||
if(!validate) return false;
|
||||
}
|
||||
});
|
||||
|
||||
if(validate_files) $(".start-line input[type='file']").on("change", validate_fileupload);
|
||||
|
|
Loading…
Reference in New Issue