Merge branch 'master' of https://github.com/highfidelity/hifi into orange

This commit is contained in:
Sam Gateau 2017-11-01 18:51:00 -07:00
commit 4dba5b8b36

View file

@ -290,11 +290,17 @@
} }
}); });
// change pricing to GET on button hover // change pricing to GET/BUY on button hover
$('body').on('mouseenter', '#price-or-edit .price', function () { $('body').on('mouseenter', '#price-or-edit .price', function () {
var $this = $(this); var $this = $(this);
$this.data('initialHtml', $this.html()); $this.data('initialHtml', $this.html());
var cost = $(this).parent().siblings().text();
if (parseInt(cost) > 0) {
$this.text('BUY');
} else {
$this.text('GET'); $this.text('GET');
}
}); });
$('body').on('mouseleave', '#price-or-edit .price', function () { $('body').on('mouseleave', '#price-or-edit .price', function () {