diff --git a/docs/assets/js/index/index.js b/docs/assets/js/index/index.js index a38948fee..e26a6e4dc 100644 --- a/docs/assets/js/index/index.js +++ b/docs/assets/js/index/index.js @@ -54,9 +54,18 @@ $(function() { var MainRouter = Backbone.Router.extend({ routes: { + "": "checkModal", "icon/:iconName": "showIcon" }, + checkModal: function() { + var $modal = $("div.modal"); + + if ($modal.length > 0) { + $modal.modal("hide"); + } + }, + showIcon: function(iconName) { var $modal = $(mainView.modalTemplate({"iconName": iconName}));