Merge branch '2.0.3-wip' of github.com:FortAwesome/Font-Awesome into 2.0.3-wip

This commit is contained in:
Dave Gandy 2012-06-04 15:10:43 -04:00
commit a21ac2a323

View File

@ -54,9 +54,18 @@ $(function() {
var MainRouter = Backbone.Router.extend({ var MainRouter = Backbone.Router.extend({
routes: { routes: {
"": "checkModal",
"icon/:iconName": "showIcon" "icon/:iconName": "showIcon"
}, },
checkModal: function() {
var $modal = $("div.modal");
if ($modal.length > 0) {
$modal.modal("hide");
}
},
showIcon: function(iconName) { showIcon: function(iconName) {
var $modal = $(mainView.modalTemplate({"iconName": iconName})); var $modal = $(mainView.modalTemplate({"iconName": iconName}));