Skip to content

Instantly share code, notes, and snippets.

@avand
Created January 14, 2010 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avand/277321 to your computer and use it in GitHub Desktop.
Save avand/277321 to your computer and use it in GitHub Desktop.
dom_id = 'new_debt_lightview'
page << "e = $('#{dom_id}'); if (e != null) { e.remove() }"
page.insert_html :bottom, 'body', content_tag(:div, :id => dom_id, :style => 'display: none') { render :partial => 'new' }
page << "Lightview.show({ href: '##{dom_id}', rel: 'inline', title: 'New Debt', options: { width: 420, height: 280 } });"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment