Created
April 21, 2015 20:11
-
-
Save devfoo-one/ab20d478df9608242a89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> | |
<div class="container"> | |
<button id="btn-AddNewProject" title="Create a new project" class="btn btn-success navbar-btn navbar-right">Add new project</button> | |
</div> | |
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'click #btn-AddNewProject': function(e) { | |
// render "addNewProjectModal" into the lastNode of current "dashboard"-template instance | |
var modal = Blaze.render(Template.addNewProjectModal, Template.instance().lastNode); | |
// destroy rendered template when modal is hiding | |
$('#addNewProjectModal').on('hide.bs.modal', function (e) { | |
Blaze.remove(modal); | |
}); | |
// show modal | |
$("#addNewProjectModal").modal('show'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment