Sha256: dd78418079ec5bdfed14477a512cbcaaff9ccf33bca214aa5ac686b358bb8b53
Contents?: true
Size: 952 Bytes
Versions: 3
Compression:
Stored size: 952 Bytes
Contents
window.TS.models = new window.TS.Store window.TS.editors = new window.TS.Store window.TS.getModel = (url) -> model = @models.get url unless model model = new window.TS.Model url @models.set url, model model window.TS.enable = -> @editors.each (id, editor) -> editor.enable() window.TS.disable = -> @editors.each (id, editor) -> editor.disable() window.TS.save = -> @models.each (id, model) -> model.save() window.TS.init = -> @editors.set 'ts-admin-bar', new window.TS.AdminBar $('#ts-admin-bar-template') @editors.set 'ts-editable-text', new window.TS.EditableText $('span.ts-editable-text') @editors.set 'ts-editable-html', new window.TS.EditableHtml $('.ts-editable-html') @editors.set 'ts-editable-image', new window.TS.EditableImage $('.ts-editable-image') @editors.set 'ts-editable-file', new window.TS.EditableFile $('.ts-editable-file') @editors.set 'ts-new-model', new window.TS.NewModel $('.ts-new-model')
Version data entries
3 entries across 3 versions & 1 rubygems