Sha256: bc8a7dd6e65dfa454f8d258e2c44366663a8d12e07e0432e48a6961ab420d222
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
"a[data-insert]".on('click', function(event) { if (event.which != 1) return; if (this.data('insert').element) { var new_id = new Date().getTime(); $(this.data('insert').element).insert(this.data('insert').content.replace(/new_nested_index/g, new_id)); } if (this.data('insert').remove) { $(this.data('insert').remove).remove(); } if (this.data('insert').show) { $(this.data('insert').show).show(); } if (this.data('insert').hide) { $(this.data('insert').hide).hide(); } event.stop(); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.1.1 | app/assets/javascripts/puffer/associations.js |
puffer-0.1.0 | app/assets/javascripts/puffer/associations.js |