HabitRPG/habitrpg — pull request #4410 by lucymhdavies (2014-12-26 01:36:22+00:00)
Title: Prevent multiple buy gems popups (issue #4401)

Simple fix for issue #4401

The widget itself:
* /views/shared/gems.jade is the "Buy Gems" Pop Up

This is sourced from 4 places:
* ./views/shared/modals/buy-gems.jade:4: include ../gems
* ./views/shared/modals/drops.jade:21: include ../gems
* ./views/shared/modals/rebirth.jade:18: include ../gems
* ./views/shared/modals/reroll.jade:6: include ../gems

The popup is ./views/shared/modals/buy-gems.jade.
The other three locations, I see no reason why they shouldn't cause a Buy Gems popup.
Therefore, only making a change in buy-gems.jade and gems.jade.

Don't think variable scope here is an issue, but I'm not too familiar with the Jade language, so I've set it to false after it's used just to be safe.

If you want this to look the same as before, it needs some CSS to override the following:
```
.tile.flush:first-child {
border-right: 0;
}
```
Before the fix:
![Without fix](https://i.imgur.com/CCMzc9k.png)
After the fix:
![With fix](https://i.imgur.com/LD9shTj.png)

Also, the element is still an , therefore the cursor will still be a pointer.