Permalink
Browse files

Merge branch 'master' of git@github.com:nodejitsu/prenup

  • Loading branch information...
2 parents 547f093 + 3c4074c commit fb2f68bcd3bef4128eab430c9915030b6a09c6cc hij1nx committed Sep 7, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 client/js/app.js
View
@@ -274,6 +274,11 @@ $(function() {
}
});
+ doc.bind('step.add', function(e, step){
+ $(step).siblings('ul').append($.jup.html(NJ.nup.renderStep()));
+ $('.sortable-ui').sortable('refresh');
+ });
+
doc.bind('step.delete', function(e, step){
$(step).closest('li').slideUp(300, function(){
$(step).remove();
@@ -477,8 +482,7 @@ $(function() {
// for adding additional steps in a scenario
$('.add-step').live('click', function(){
- $(this).siblings('ul').append($.jup.html(NJ.nup.renderStep()));
- $('.sortable-ui').sortable('refresh');
+ doc.trigger('step.add', this);
});
// for removing steps in a scenario

0 comments on commit fb2f68b

Please sign in to comment.