HabitRPG/habitrpg — pull request #4439 by crookedneighbor (2014-12-29 17:26:23+00:00)
Title: Added transparent class to gem purchasing if zero gems are available for purchase

This will keep it in line with the seasonal shop that displays items that have already been purchased.

Added the one-time binding since the only time the class would need to be enabled in the page on the fly is when going from having one gem available to purchase to zero. That seems infrequent enough to merit allowing it to appear after a refresh.

If enough people open issues about it, we can change it to update on the fly.

![screen shot 2014-12-29 at 11 19 23 am](https://cloud.githubusercontent.com/assets/2916945/5570771/8eea0ea2-8f4c-11e4-9ead-9c1e2594ab0b.png)