|
@@ -160,8 +160,6 @@ App.MainJobsView = App.TableView.extend({
|
|
|
this.set('disabled', false);
|
|
|
}
|
|
|
}.observes('parentView.hasBackLinks'),
|
|
|
- attributeBindings: ['disabled'],
|
|
|
- disabled: false,
|
|
|
change: function () {
|
|
|
this.get('controller').set('navIDs.nextID', '');
|
|
|
this.get('parentView').saveDisplayLength();
|
|
@@ -243,19 +241,20 @@ App.MainJobsView = App.TableView.extend({
|
|
|
|
|
|
jobNameView: Em.View.extend({
|
|
|
classNames: ['job-link'],
|
|
|
+ tagName: 'a',
|
|
|
+ classNameBindings: ['isLink'],
|
|
|
+ attributeBindings: ['rel', 'job.queryText:data-original-title', 'href'],
|
|
|
rel: 'tooltip',
|
|
|
href: '#',
|
|
|
- template: Ember.Handlebars.compile('{{job.name}}'),
|
|
|
- attributeBindings: function () {
|
|
|
- var attributes = ['rel', 'job.queryText:data-original-title'];
|
|
|
+ isLink: 'is-not-link',
|
|
|
+ isLinkObserver: function () {
|
|
|
if (this.get('job.hasTezDag')) {
|
|
|
- attributes.push('href');
|
|
|
- };
|
|
|
- return attributes;
|
|
|
- }.property('job.hasTezDag'),
|
|
|
- tagName: function () {
|
|
|
- return this.get('job.hasTezDag') ? 'a' : 'span';
|
|
|
- }.property('job.hasTezDag'),
|
|
|
+ this.set('isLink', "");
|
|
|
+ }else{
|
|
|
+ this.set('isLink', "is-not-link");
|
|
|
+ }
|
|
|
+ }.observes('controller.sortingDone'),
|
|
|
+ template: Ember.Handlebars.compile('{{job.name}}'),
|
|
|
click: function(event) {
|
|
|
if (this.get('job.hasTezDag')) {
|
|
|
App.router.transitionTo('main.jobs.jobDetails', this.get('job'));
|