Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

Hobo 2.0.0: <live-editor> should be able to update more than one part #32

Closed enwood closed 11 years ago

enwood commented 11 years ago

Was expecting this to update both parts:

<field-list fields="my_text">  
  <my-text-view:>
    <div part="div-my-text">
      <live-editor-innards updates="div-my-text,div-history"/>
    </div>
  </my-text-view:>
</field-list>
<div part="div-history">
  <field-list fields="created_at, updated_at"/> 
</div>

but it does not.

Bryan suggested

<live-editor-innards updates="div-wholly-cancelled,div-history" ajax="&false"/>

but to no effect.

iox commented 11 years ago

I'm going to close this issue as it was a syntax problem. You need to use the dom_ids when you use "updates":

      <live-editor-innards updates="div-my-text,div-history"/>

http://cookbook.hobocentral.net/manual/ajax#specifying-the-dom-id