mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-12 22:03:06 +00:00
This commit is contained in:
commit
2a0546fd65
|
@ -95,9 +95,13 @@ AjaxComments.prototype.isProperKeys = function(event) {
|
|||
* @return {Boolean} Выбран ли файл
|
||||
*/
|
||||
AjaxComments.prototype.isFileSelected = function($form) {
|
||||
var files = $form.get(0).elements.attach.files;
|
||||
var attach = $form.get(0).elements.attach;
|
||||
|
||||
return Boolean(files && files.length);
|
||||
if (attach) {
|
||||
return Boolean(attach.files && attach.files.length);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue