mirror of
https://github.com/ForkAwesome/Fork-Awesome
synced 2024-05-01 22:32:45 +02:00
Merge branch '2.0.3-wip' of github.com:FortAwesome/Font-Awesome into 2.0.3-wip
This commit is contained in:
commit
a21ac2a323
|
@ -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}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue