mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
Replaced underscore.js & is.js with lodash.js
This commit is contained in:
parent
df8e843bf5
commit
566807bc14
93 changed files with 17379 additions and 2056 deletions
|
@ -12,6 +12,7 @@
|
|||
import $ from 'jquery';
|
||||
import { empty, and } from '@ember/object/computed';
|
||||
import { isEmpty } from '@ember/utils';
|
||||
import stringUtil from '../utils/string';
|
||||
import { set } from '@ember/object';
|
||||
import Component from '@ember/component';
|
||||
|
||||
|
@ -45,7 +46,7 @@ export default Component.extend({
|
|||
return $("#adminLastname").focus();
|
||||
}
|
||||
|
||||
if (isEmpty(this.get('model.email')) || !is.email(this.get('model.email'))) {
|
||||
if (isEmpty(this.get('model.email')) || !stringUtil.isEmail(this.get('model.email'))) {
|
||||
set(this, 'adminEmailError', true);
|
||||
return $("#adminEmail").focus();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue