//-- copyright
// Copyright (C)2013-2014 the OpenProject Foundation (OPF)
// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda
// Copyright (C)2010-2011 friflaj
// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns
// Copyright (C)2009-2010 Mark Maglana
// Copyright (C)2009 Joe Heck, Nate Lowrie
// The copyright follows:
// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj
// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany
// See doc/COPYRIGHT.rdoc for more details.
RB.Sprint=function(e){return RB.Object.create(RB.Model,RB.EditableInplace,{initialize:function(t){this.$=e(t),this.el=t,this.$.data("this",this),this.$.find(".editable").mouseup(this.handleClick)},beforeSave:function(){},getType:function(){return"Sprint"},markIfClosed:function(){},refreshed:function(){this.$.find(".editable").mouseup(this.handleClick)},saveDirectives:function(){var e=this.$,t=e.find(".editor").serialize()+"&_method=put",i=RB.urlFor("update_sprint",{id:this.getID()});return{url:i,data:t}},beforeSaveDragResult:function(){}})}(jQuery);