Sha256: 6b44793edf2c5f8d943270c340ded7770b93ed8dd800a18a7765fba89d7274b1

Contents?: true

Size: 674 Bytes

Versions: 8

Compression:

Stored size: 674 Bytes

Contents

var association_done = function(event) {
  current = this.first('li.current');
  this.input.next('input[type=hidden]').value(current.get('data-id'));
  this.input.value(current.find('.title').first().html().stripTags()).disable();
}

'.association_clear'.on('click', function(event) {
  this.prev('input[type=text]').value('').enable();
  this.next('input[type=hidden]').value('');
});

'a[data-dialog-uri]'.on('click', function(event) {
  if (event.which != 1) return;
  event.stop();

  var dialog = event.find('.rui-dialog');
  if (!dialog || !(dialog instanceof Dialog)) {
    dialog = new Dialog({expandable: true});
  }

  dialog.load(this.get('data-dialog-uri'));
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puffer-0.0.32 app/assets/javascripts/puffer/puffer.js
puffer-0.0.31 app/assets/javascripts/puffer/puffer.js
puffer-0.0.30 app/assets/javascripts/puffer/puffer.js
puffer-0.0.29 app/assets/javascripts/puffer/puffer.js
puffer-0.0.28 app/assets/javascripts/puffer/puffer.js
puffer-0.0.26 app/assets/javascripts/puffer/puffer.js
puffer-0.0.25 app/assets/javascripts/puffer/puffer.js
puffer-0.0.24 app/assets/javascripts/puffer/puffer.js