1.0.4 • Published 9 years ago

inpage_edit v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

IN-PAGE EDIT

example usage new @InpageEdit on : node focuselement : 'input.title' success : (response, textStatus, jqXhr)-> id = response.id source = $("table.documentdata-id='"+id+"'").closest('.template-download') new_template = .template($('#template-download').html()) source.replaceWith(new_template({file:response})) error : -> console.log "Changes were not saved, for some reason"

options: on: the root element of the editable content, a jquery node reference NOT the id, but the actual jquery object focus_element : selector of element on which to apply focus when switching to edit mode success : callback when save was successful error : callback when save failed

requirements: Needs an element with selector '.editable_container' with data attribute for save_url

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago