Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created December 10, 2010 03:57
Show Gist options
  • Save hvgotcodes/735746 to your computer and use it in GitHub Desktop.
Save hvgotcodes/735746 to your computer and use it in GitHub Desktop.
popup: function() {
this.set('currentView', this.getPath('pane.contentView.input1'));
this.notifyPropertyChange('currentView');
this._previousView = this.getPath('pane.contentView.input1');
sc_super();
},
remove: function() {
this.disableAnimation();
this.adjust('opacity', 1);
this.enableAnimation();
sc_super();
var children = this.getPath('contentView.childViews');
children.forEach(function(view) {
view.$().removeClass('disabled');
view.set('isEnabled', YES);
view.set('isVisible', YES);
});
var cv = this.get('currentView');
if (cv) cv.$().removeClass('input-highlight');
if (this._cellView) this._cellView.removeInputs();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment