mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
removing aw-tooltip-ellipses
this was an unused directive that needs to be removed
This commit is contained in:
@@ -70,8 +70,7 @@ export default
|
|||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
||||||
ngClick: "viewJobLog(completed_job.id, completed_job.nameHref)",
|
ngClick: "viewJobLog(completed_job.id, completed_job.nameHref)",
|
||||||
defaultSearchField: true,
|
defaultSearchField: true
|
||||||
awToolTipEllipses: "{{ completed_job.name }}"
|
|
||||||
},
|
},
|
||||||
failed: {
|
failed: {
|
||||||
label: 'Job failed?',
|
label: 'Job failed?',
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ export default
|
|||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
||||||
ngClick: "viewJobLog(queued_job.id, queued_job.nameHref)",
|
ngClick: "viewJobLog(queued_job.id, queued_job.nameHref)",
|
||||||
defaultSearchField: true,
|
defaultSearchField: true
|
||||||
awToolTipEllipses: "{{ queued_job.name }}"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -63,8 +63,7 @@ export default
|
|||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
||||||
ngClick: "viewJobLog(running_job.id, running_job.nameHref)",
|
ngClick: "viewJobLog(running_job.id, running_job.nameHref)",
|
||||||
defaultSearchField: true,
|
defaultSearchField: true
|
||||||
awToolTipEllipses: "{{ running_job.name }}"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -449,45 +449,6 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
|||||||
};
|
};
|
||||||
}])
|
}])
|
||||||
|
|
||||||
/*
|
|
||||||
* This is a copy of awToolTip currently.
|
|
||||||
* TODO: only display these tool tips if the length of the anchor *as interpolated* to be larger than the table cell
|
|
||||||
*/
|
|
||||||
.directive('awToolTipEllipses', [ function() {
|
|
||||||
return {
|
|
||||||
link: function(scope, element, attrs) {
|
|
||||||
|
|
||||||
var delay = (attrs.delay !== undefined && attrs.delay !== null) ? attrs.delay : ($AnsibleConfig) ? $AnsibleConfig.tooltip_delay : {show: 500, hide: 100},
|
|
||||||
placement;
|
|
||||||
|
|
||||||
if (attrs.awTipPlacement) {
|
|
||||||
placement = attrs.awTipPlacement;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
placement = (attrs.placement !== undefined && attrs.placement !== null) ? attrs.placement : 'left';
|
|
||||||
}
|
|
||||||
|
|
||||||
$(element).on('hidden.bs.tooltip', function( ) {
|
|
||||||
// TB3RC1 is leaving behind tooltip <div> elements. This will remove them
|
|
||||||
// after a tooltip fades away. If not, they lay overtop of other elements and
|
|
||||||
// honk up the page.
|
|
||||||
$('.tooltip').each(function() {
|
|
||||||
$(this).remove();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$(element).tooltip({
|
|
||||||
placement: placement,
|
|
||||||
delay: delay,
|
|
||||||
html: true,
|
|
||||||
title: attrs.awToolTipEllipses,
|
|
||||||
container: 'body',
|
|
||||||
trigger: 'hover focus'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}])
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enable TB pop-overs. To add a pop-over to an element, include the following directive in
|
* Enable TB pop-overs. To add a pop-over to an element, include the following directive in
|
||||||
* the element's attributes:
|
* the element's attributes:
|
||||||
|
|||||||
@@ -442,12 +442,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
|||||||
html += (field.dataTipWatch) ? Attr(field, 'dataTipWatch') : "";
|
html += (field.dataTipWatch) ? Attr(field, 'dataTipWatch') : "";
|
||||||
html += (field.awTipPlacement) ? Attr(field, 'awTipPlacement') : "";
|
html += (field.awTipPlacement) ? Attr(field, 'awTipPlacement') : "";
|
||||||
}
|
}
|
||||||
if (field.awToolTipEllipses) {
|
|
||||||
html += Attr(field, 'awToolTipEllipses');
|
|
||||||
html += (field.dataPlacement && !field.awPopOver) ? Attr(field, 'dataPlacement') : "";
|
|
||||||
html += (field.dataTipWatch) ? Attr(field, 'dataTipWatch') : "";
|
|
||||||
html += (field.awTipPlacement) ? Attr(field, 'awTipPlacement') : "";
|
|
||||||
}
|
|
||||||
if (field.awPopOver) {
|
if (field.awPopOver) {
|
||||||
html += "aw-pop-over=\"" + field.awPopOver + "\" ";
|
html += "aw-pop-over=\"" + field.awPopOver + "\" ";
|
||||||
html += (field.dataPlacement) ? "data-placement=\"" + field.dataPlacement + "\" " : "";
|
html += (field.dataPlacement) ? "data-placement=\"" + field.dataPlacement + "\" " : "";
|
||||||
|
|||||||
Reference in New Issue
Block a user