From 30e81e530d78ccaed42efe1179977e28ee42632c Mon Sep 17 00:00:00 2001 From: Mark Maglana Date: Thu, 22 Jul 2010 16:50:24 +0800 Subject: [PATCH] fixing arrangement of methods --- assets/javascripts/backlog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/backlog.js b/assets/javascripts/backlog.js index a506674625..08020da2d8 100755 --- a/assets/javascripts/backlog.js +++ b/assets/javascripts/backlog.js @@ -185,10 +185,6 @@ RB.Backlog = RB.Object.create(RB.Model, { isSprint: function(){ return $(this.el).hasClass('sprint'); }, - - markSaving: function(){ - this.$.addClass('saving'); - }, loadStoryTemplate: function(){ $.ajax({ @@ -199,6 +195,10 @@ RB.Backlog = RB.Object.create(RB.Model, { complete: function(xhr, textStatus){ $(xhr.responseText).removeClass("story").appendTo("#content").wrap("
") } // removeClass() ensures that $(".story") will not include this node }); }, + + markSaving: function(){ + this.$.addClass('saving'); + }, newStory: function(){ if($('#story_template').size()==0){