Solution for field editor edit mode button

Beautiful!

I’m no javascript expert, but we probably want to be explicit about defining variables within a ‘var’ expression, right?

var params = arguments[0],<br />&nbsp; &nbsp; $ = skuid&#46;$<b>,</b><br />&nbsp; &nbsp; target = params&#46;button[0]&#46;classList[0]<b>,</b><br />&nbsp; &nbsp; f = skuid&#46;component&#46;getById(target)&#46;element;<br />if(f&#46;mode == 'read'){<br />&nbsp; &nbsp; f&#46;mode = 'edit';<br />&nbsp; &nbsp; f&#46;list&#46;render({doNotCache:true});<br />}<br />else if(f&#46;mode == 'edit'){<br />&nbsp; &nbsp; f&#46;mode = 'read';<br />&nbsp; &nbsp; f&#46;list&#46;render({doNotCache:true});<br />}