Skip to content

Instantly share code, notes, and snippets.

@hai5nguy
Created January 15, 2016 15:30
Show Gist options
  • Save hai5nguy/81a61051011fe7f07d5e to your computer and use it in GitHub Desktop.
Save hai5nguy/81a61051011fe7f07d5e to your computer and use it in GitHub Desktop.
this.$el.find('.geartabselement').geartabs('setTarget', this.target);
this.$el.find('.geartabselement').geartabs('selectTab', 'content');
if (this.gearView.gear && this.gearView.gear.id && this.gearView.gear.assetType !== 'image') {
this.saveAndUpdate.removeClass('disabled');
} else {
this.saveAndUpdate.addClass('disabled');
}
if (this.gearView.gear) {
this.$('.save-block').show();
if (options.gearView.gear.id) {
obj.blockName = options.gearView.gear.name;
obj.saveStatus = '';
if (self.gearView.gear.notSavedStatus) {
self.saveStatus.text(self.getResource('CLOUDEDITOR_BLOCK_SAVE_STATUS'));
} else {
this.saveStatus.text('');
}
} else {
obj.blockName = '';
obj.saveStatus = '';
self.saveStatus.text('');
}
this.$el.find('.geartabselement').geartabs('setHeader', obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment