mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-27 14:01:30 +08:00
removing modal on default URL
This commit is contained in:
parent
71b6237fc6
commit
6fe2e7edd4
@ -24,9 +24,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}));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user