diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-10-24 16:26:41 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-10-24 18:09:00 -0500 |
commit | 67d2b2acb3ec88e981f50aa4f4b8a86b9cc1b288 (patch) | |
tree | 98ab53b9f40fca7ce370aa6ad82893ac697fa096 /app/assets/javascripts/awards_handler.js | |
parent | 5a4e6721786dd080cd40ca4ea23fc4202a85e73f (diff) | |
download | gitlab-ce-67d2b2acb3ec88e981f50aa4f4b8a86b9cc1b288.tar.gz |
replace jquery.cookie vendor script with js.cookie
Diffstat (limited to 'app/assets/javascripts/awards_handler.js')
-rw-r--r-- | app/assets/javascripts/awards_handler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/awards_handler.js b/app/assets/javascripts/awards_handler.js index 44af1c135a0..40f074fe089 100644 --- a/app/assets/javascripts/awards_handler.js +++ b/app/assets/javascripts/awards_handler.js @@ -322,7 +322,7 @@ var frequentlyUsedEmojis; frequentlyUsedEmojis = this.getFrequentlyUsedEmojis(); frequentlyUsedEmojis.push(emoji); - return $.cookie('frequently_used_emojis', frequentlyUsedEmojis.join(','), { + Cookies.set('frequently_used_emojis', frequentlyUsedEmojis.join(','), { path: gon.relative_url_root || '/', expires: 365 }); @@ -330,13 +330,13 @@ AwardsHandler.prototype.getFrequentlyUsedEmojis = function() { var frequentlyUsedEmojis; - frequentlyUsedEmojis = ($.cookie('frequently_used_emojis') || '').split(','); + frequentlyUsedEmojis = (Cookies.get('frequently_used_emojis') || '').split(','); return _.compact(_.uniq(frequentlyUsedEmojis)); }; AwardsHandler.prototype.renderFrequentlyUsedBlock = function() { var emoji, frequentlyUsedEmojis, i, len, ul; - if ($.cookie('frequently_used_emojis')) { + if (Cookies.get('frequently_used_emojis')) { frequentlyUsedEmojis = this.getFrequentlyUsedEmojis(); ul = $("<ul class='clearfix emoji-menu-list frequent-emojis'>"); for (i = 0, len = frequentlyUsedEmojis.length; i < len; i++) { |