mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 10:46:02 +00:00
This commit is contained in:
commit
2a0546fd65
|
@ -95,9 +95,13 @@ AjaxComments.prototype.isProperKeys = function(event) {
|
||||||
* @return {Boolean} Выбран ли файл
|
* @return {Boolean} Выбран ли файл
|
||||||
*/
|
*/
|
||||||
AjaxComments.prototype.isFileSelected = function($form) {
|
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