diff options
author | barthc <mackintosh02@gmail.com> | 2016-09-08 11:08:09 +0100 |
---|---|---|
committer | barthc <mackintosh02@gmail.com> | 2017-04-14 09:33:28 +0100 |
commit | 04e2dde538b7a91de0ffdd09d355e9c990b4c7b1 (patch) | |
tree | 8139527c01760cfec392d5250583f5d9b4459f74 /app/assets/javascripts/lib/utils/common_utils.js | |
parent | 0497d3eadb67f347a6376c77cbd39511e5136bfb (diff) | |
download | gitlab-ce-04e2dde538b7a91de0ffdd09d355e9c990b4c7b1.tar.gz |
frontend prevent authored votes
Diffstat (limited to 'app/assets/javascripts/lib/utils/common_utils.js')
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index e1e6ca25446..33c900e264b 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -47,6 +47,10 @@ } }; + gl.utils.updateTooltipTitle = function($tooltipEl, newTitle) { + return $tooltipEl.attr('title', newTitle).tooltip('fixTitle'); + }; + w.gl.utils.disableButtonIfEmptyField = function(field_selector, button_selector, event_name) { event_name = event_name || 'input'; var closest_submit, field, that; |