atk4/atk4 — pull request #188 by TheElter (2012-12-17 11:10:46+00:00)
Title: Fixed form field reload for shortened cases

When the id is shortened on php side the field reload was calculating the wrong id

test case to include in testsuite:

add("View","container");

$form = $div->add("Form");

$nc = $form->addField("line", "short");
$nc->set(rand());
$nl = $form->addField("line",	"really_long_name_that_will_be_shortened_for_sure_on_the_sixty_char");
$nl->set(rand());
$b = $this->add("Button")
->set('Click should refresh both field')
->js('click',array(
$form->js()->atk4_form('reloadField', "short"),
$form->js()->atk4_form('reloadField',"really_long_name_that_will_be_shortened_for_sure_on_the_sixty_char")
));

}
}