From 6fe2e7edd4a7744037dabaaafb9c848ae36a08fa Mon Sep 17 00:00:00 2001 From: supercodepoet Date: Mon, 4 Jun 2012 11:05:38 -0500 Subject: [PATCH] removing modal on default URL --- docs/assets/js/index/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/assets/js/index/index.js b/docs/assets/js/index/index.js index fa249c769..8401e7c6f 100644 --- a/docs/assets/js/index/index.js +++ b/docs/assets/js/index/index.js @@ -24,9 +24,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}));