welocally/welocally-places — comment on commit 297f177071e1000e355cc90c52a94f1ebb9714f0
File: views/places-meta-box.php line 384
By claytantor:

Ok you said you were not going to do this. I am not so sure that your approach is better. You have traded one complication for another. Remember thsi conversation?

[2/1/12 9:06:53 AM] Andrey Podoprosvetov: ok we have button for example:
Next
[2/1/12 9:07:02 AM] Andrey Podoprosvetov: I add to this button action
[2/1/12 9:07:25 AM] Andrey Podoprosvetov: Next
[2/1/12 9:07:44 AM] Andrey Podoprosvetov: when we click on this button
[2/1/12 9:07:57 AM] Andrey Podoprosvetov: I change attribute OnClick to
[2/1/12 9:08:13 AM] Andrey Podoprosvetov: onClick="show_step('step3')"
[2/1/12 9:08:16 AM] Andrey Podoprosvetov: etc.
[2/1/12 9:08:51 AM] Andrey Podoprosvetov: no need always use append()
[2/1/12 9:10:11 AM] claytantor23: yeah, but then you need a seperated next and back button for every step
[2/1/12 9:10:46 AM] claytantor23: so if there are 16 steps there are 32 buttons, and if you want to add a new stepp you need to add two more buttons
[2/1/12 9:11:08 AM] claytantor23: am I wrong?
[2/1/12 9:11:24 AM] Andrey Podoprosvetov: no
[2/1/12 9:11:33 AM] Andrey Podoprosvetov: need only two buttons
[2/1/12 9:11:39 AM] Andrey Podoprosvetov: next and back
[2/1/12 9:11:44 AM] Andrey Podoprosvetov: for exaple now spep 2
[2/1/12 9:12:04 AM] claytantor23: so how does the onClick="show_step('step3')" get asigned when you go from step two to step three>
[2/1/12 9:12:45 AM] Andrey Podoprosvetov: ok, we click to button next
[2/1/12 9:13:06 AM] Andrey Podoprosvetov: we see block for example with 3 step
[2/1/12 9:13:47 AM] claytantor23: can you add a simple code example as a comment in the ticket before starting on how you would make a case with 3 steps and two buttons?
[2/1/12 9:13:53 AM] Andrey Podoprosvetov: I use Jquery function $('selector').attr('onClick','step4')