Hi Roman,
Ah yes, the old nitrogen-elements repo! Most of those elements were
made for Nitrogen 1.0 and the original maintainer doesn't really
maintain it any longer. One of the things I'd like to tackle is
resurrecting that old repo and maintain it myself. It's a very useful
thing.
Since that particular element was last edited in 2009, it would have
been made for Nitrogen 1.0, which explains why it breaks. There are
some things you'd need to do to fix it up for Nitrogen 2.0:
1) Add -include_lib("nitrogen_core/include/wf.hrl").
2) Change element_panel:render(ControlID,Terms) to
element_panel:render_element(Terms).
3) Change the assignments from wf:q to be non-lists (ie [EventStr] =
wf:q(event) should be changed to just EventStr = wf:q(event) ). This
is due the change from Nitrogen 1.0 to Nitrogen 2.0 that made wf:q not
return a list of values any longer, just a single value)
That should cover most of the big issues, but it'll likely take a
little more debugging than that (may some JS issues, or other
compilation issues).
If you decide to tackle this, definitely post it here if you're able
to get it working.
-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/nitrogenweb/-/ArwkJKCYO_UJ.
> To post to this group, send email to
nitro...@googlegroups.com.
> To unsubscribe from this group, send email to
>
nitrogenweb...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/nitrogenweb?hl=en.
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 ||
sigma-star.com || @jessegumm