mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19: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
|
@ -62,8 +62,8 @@ export default Component.extend(ModalMixin, {
|
|||
|
||||
this.get('link').getCandidates(folderId, documentId, pageId).then(function (candidates) {
|
||||
self.set('candidates', candidates);
|
||||
self.set('hasSections', is.not.null(candidates.pages) && candidates.pages.length);
|
||||
self.set('hasAttachments', is.not.null(candidates.attachments) && candidates.attachments.length);
|
||||
self.set('hasSections', !_.isNull(candidates.pages) && candidates.pages.length);
|
||||
self.set('hasAttachments', !_.isNull(candidates.attachments) && candidates.attachments.length);
|
||||
|
||||
if (!self.get('hasSections') && !self.get('hasAttachments')) {
|
||||
self.set('tab1Selected', false);
|
||||
|
@ -148,7 +148,7 @@ export default Component.extend(ModalMixin, {
|
|||
}
|
||||
}
|
||||
|
||||
if (is.null(selection)) {
|
||||
if (_.isNull(selection)) {
|
||||
if (this.get('tab4Selected')) this.$('#content-linker-networklocation').addClass('is-invalid').focus();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue