Logo
Explore Help
Sign In
perso/syncthing-arm
1
0
Fork 0
You've already forked syncthing-arm
Code Issues Pull Requests Releases Wiki Activity
syncthing-arm/gui/default/syncthing/core/tooltipDirective.js

12 lines
298 B
JavaScript
Raw Normal View History

Use Bootstrap tooltips instead of plain title attributes By using data-original-title the tooltips live update without reapplying the js code, such as .tooltip('fixTitle') each time the content changes. This method also works well with angular expressions: data-original-title="{{'Download Rate' | translate}}" This example provides a bootstrap tooltip saying 'Download Rate' that changes automatically when the language is updated.
2016-03-16 14:55:29 +00:00
angular.module('syncthing.core')
.directive('tooltip', function () {
return {
restrict: 'A',
link: function (scope, element, attributes) {
$(element).tooltip({
html: 'true'
});
}
};
gui: Reformat HTML & JS for consistent white space (white space only change)
2018-12-25 14:26:46 +01:00
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 347ms Template repo/home: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API