Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bdf33d88

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID bdf33d885938c4f29c1e4b3198174deb5f3193b6
  • Vorgänger e8b07984
  • Nachfolger 2e8dd1d8

Pflichtenheftkostenschätzung: "Abbrechen" ohne AJAX-Call nur in JS

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
109 109
  $self->render('requirement_spec/_show_time_and_cost_estimate', { layout => 0 });
110 110
}
111 111

  
112
sub action_ajax_cancel_time_and_cost_estimate {
113
  my ($self) = @_;
114

  
115
  my $html   = $self->render('requirement_spec/_show_time_and_cost_estimate', { output => 0 });
116

  
117
  $self->js
118
   ->replaceWith('#time_cost_estimate', $html)
119
   ->render($self);
120
}
121

  
122 112
sub action_ajax_edit_time_and_cost_estimate {
123 113
  my ($self) = @_;
124 114

  
125 115
  my $html   = $self->render('requirement_spec/_edit_time_and_cost_estimate', { output => 0 });
126 116

  
127 117
  $self->js
128
   ->replaceWith('#time_cost_estimate', $html)
118
   ->hide('#time_cost_estimate')
119
   ->after('#time_cost_estimate', $html)
129 120
   ->on('#time_cost_estimate INPUT[type=text]', 'keydown', 'kivi.requirement_spec.time_cost_estimate_input_key_down')
130 121
   ->render($self);
131 122
}

Auch abrufbar als: Unified diff