Sha256: be724f0d81abd7b05c88d5ed80139e482838fe79aedf9138a4760cd24ab52caa

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 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'));
});

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

  new Dialog({expandable: true}).load(this.get('data-new-dialog-uri'));
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.1.0 app/assets/javascripts/puffer/puffer.js