Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4743f77e
Commit
4743f77e
authored
Nov 16, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle tooltip updates in timetracking component.
parent
66830f5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+0
-1
app/assets/javascripts/directives/tooltip_title.js.es6
app/assets/javascripts/directives/tooltip_title.js.es6
+0
-18
app/assets/javascripts/issuable_time_tracker.js.es6
app/assets/javascripts/issuable_time_tracker.js.es6
+1
-1
No files found.
app/assets/javascripts/application.js
View file @
4743f77e
...
...
@@ -49,7 +49,6 @@
/*= require_directory ./blob */
/*= require_directory ./templates */
/*= require_directory ./commit */
/*= require_directory ./directives */
/*= require_directory ./extensions */
/*= require_directory ./lib/utils */
/*= require_directory ./u2f */
...
...
app/assets/javascripts/directives/tooltip_title.js.es6
deleted
100644 → 0
View file @
66830f5c
//= require vue
(() => {
/**
* This directive ensures the text used to populate a Bootstrap tooltip is
* updated dynamically. The tooltip's `title` is not stored or accessed
* elsewhere, making it reasonably safe to write to as needed.
*/
Vue.directive('tooltip-title', {
update(el, binding) {
const updatedValue = binding.value || el.getAttribute('title');
el.setAttribute('title', updatedValue);
el.setAttribute('data-original-title', updatedValue);
},
});
})(window.gl || (window.gl = {}));
app/assets/javascripts/issuable_time_tracker.js.es6
View file @
4743f77e
...
...
@@ -135,7 +135,7 @@
</div>
<div class='time-tracking-content hide-collapsed'>
<div class='time-tracking-pane-compare' v-if='showComparison'>
<div class='compare-meter' data-toggle='tooltip' data-placement='top'
v-tooltip
-title='remainingTooltipPretty' :class='diffStatusClass' >
<div class='compare-meter' data-toggle='tooltip' data-placement='top'
:title='remainingTooltipPretty' :data-original
-title='remainingTooltipPretty' :class='diffStatusClass' >
<div class='meter-container'>
<div :style='{ width: diffPercent }' class='meter-fill'></div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment