mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
removing aw-tooltip-ellipses
this was an unused directive that needs to be removed
This commit is contained in:
parent
aae91bbf37
commit
0ea69b1312
@ -70,8 +70,7 @@ export default
|
||||
label: 'Name',
|
||||
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
||||
ngClick: "viewJobLog(completed_job.id, completed_job.nameHref)",
|
||||
defaultSearchField: true,
|
||||
awToolTipEllipses: "{{ completed_job.name }}"
|
||||
defaultSearchField: true
|
||||
},
|
||||
failed: {
|
||||
label: 'Job failed?',
|
||||
|
@ -62,8 +62,7 @@ export default
|
||||
label: 'Name',
|
||||
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
||||
ngClick: "viewJobLog(queued_job.id, queued_job.nameHref)",
|
||||
defaultSearchField: true,
|
||||
awToolTipEllipses: "{{ queued_job.name }}"
|
||||
defaultSearchField: true
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -63,8 +63,7 @@ export default
|
||||
label: 'Name',
|
||||
columnClass: 'col-md-3 col-sm-4 col-xs-4',
|
||||
ngClick: "viewJobLog(running_job.id, running_job.nameHref)",
|
||||
defaultSearchField: true,
|
||||
awToolTipEllipses: "{{ running_job.name }}"
|
||||
defaultSearchField: true
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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
|
||||
* the element's attributes:
|
||||
|
@ -442,12 +442,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
html += (field.dataTipWatch) ? Attr(field, 'dataTipWatch') : "";
|
||||
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) {
|
||||
html += "aw-pop-over=\"" + field.awPopOver + "\" ";
|
||||
html += (field.dataPlacement) ? "data-placement=\"" + field.dataPlacement + "\" " : "";
|
||||
|
Loading…
Reference in New Issue
Block a user