Esempio n. 1
0
  var updateRecordingName = function() {
    var value = this.get('value');
    if (!value) value = 'Untitled';

    // We don't want to copy *all* temporary properties to storage
    var updated = Recording.findById(recording.id);
    updated.display_name = value;
    Recording.update(updated);
    object.setTitle(value);
  };
Esempio n. 2
0
 form.addEvent('update:chapters', function() {
   var updated = Recording.findById(recording.id);
   updated.chapters = Chapter.getData(form, object).chapters;
   View.getMain().getStack().notifyAll('updateChapters', [updated.chapters]);
   Recording.update(updated);
 });
Esempio n. 3
0
 form.addEvent('update:chapters', function() {
   var updated = Recording.findById(recording.id);
   updated.chapters = Chapter.getData(form, object).chapters;
   Recording.update(updated);
 });