Nitrogen: changing targetID breaks lightbox

Posted by dewd on Stack Overflow See other posts from Stack Overflow or by dewd
Published on 2010-03-08T02:00:06Z Indexed on 2010/03/08 2:12 UTC
Read the original article Hit count: 349

Filed under:
|
|

I'm using Nitrogen & lightbox. I'm looking for some guidance after spending way too long trying to understand why a working example breaks as soon as I change the targetID of a lightbox. The fragment below works if I use "name_dialog" or "share_dialog", but not if I use "compose_dialog". I've looked through the source and style sheets, but have not found where those two are defined any differently than what I'm trying to do.

In my .hrl:

...
-record (compose_dialog, { ?ELEMENT_BASE(compose_dialog_element) }).
..

In my element module:

...
reflect() -> record_info(fields, compose_dialog).
render_element(_HtmlID, _Record) ->
    #lightbox { id=compose_lightbox, style="display: none;", body = [
..

show() ->
    wf:wire(compose_lightbox, #show {}).

© Stack Overflow or respective owner

Nitrogen: changing targetID breaks lightbox

Posted by dewd on Stack Overflow See other posts from Stack Overflow or by dewd
Published on 2010-03-08T02:00:06Z Indexed on 2010/03/08 15:36 UTC
Read the original article Hit count: 349

Filed under:
|
|

I'm using Nitrogen & lightbox. I'm looking for some guidance after spending way too long trying to understand why a working example breaks as soon as I change the targetID of a lightbox. The fragment below works if I use "name_dialog" or "share_dialog", but not if I use "compose_dialog". I've looked through the source and style sheets, but have not found where those two are defined any differently than what I'm trying to do.

In my .hrl:

...
-record (compose_dialog, { ?ELEMENT_BASE(compose_dialog_element) }).
..

In my element module:

...
reflect() -> record_info(fields, compose_dialog).
render_element(_HtmlID, _Record) ->
    #lightbox { id=compose_lightbox, style="display: none;", body = [
..

show() ->
    wf:wire(compose_lightbox, #show {}).

© Stack Overflow or respective owner

Related posts about nitrogen

Related posts about erlang