Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
dpobel feedback nexdpobel feedback nextt
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickroger committed Jan 27, 2017
1 parent 6201b18 commit 7e374e7
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions Resources/public/js/views/ez-fieldeditview.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,14 @@ YUI.add('ez-fieldeditview', function (Y) {

this._addDOMEventHandlers(_events);

this.set('isNotTranslatable', this.get('translating') && !this.get('fieldDefinition').isTranslatable);

this.after('activeChange', Y.bind(function() {
this.after('isNotTranslatableChange', Y.bind(function() {
if (this.get('isNotTranslatable')) {
this.get('container').addClass('is-not-translatable');
}
}, this));

this._set('isNotTranslatable', this.get('translating') && !this.get('fieldDefinition').isTranslatable);

},

/**
Expand Down Expand Up @@ -475,9 +476,17 @@ YUI.add('ez-fieldeditview', function (Y) {
value: null
},

//TODO comment
/**
* //TODO comment
*
* @attribute isNotTranslatable
* @readonly
* @type {Boolean}
* @default null
*/
isNotTranslatable: {
value: null
value: null,
readOnly: true,
},
},

Expand Down

0 comments on commit 7e374e7

Please sign in to comment.