Sha256: 32b54e7be57da7785a57626eed4858f0e9e4fe6362f35c2a1cc9f7be31e8da7f
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
jQuery -> $('.file_commits input').change (event) -> event.preventDefault() fields = {} $.each $(this.form).serializeArray(), (index, field) -> fields[field.name] = field.value $.each $(this.form).find('a.diff'), (index, link) -> url = '#' if fields['rev'] == fields['rev_to'] alert 'Not implemented!' else url = "#{diffPath}?repository_path=#{fields['repository_path']}&path=#{fields['path']}&rev=#{fields['rev']}&rev_to=#{fields['rev_to']}" $(link).attr('href', url) $(link).text('Diff')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commit_filter-0.1.1 | app/assets/javascripts/commit_filter/file_commits.js.coffee |
commit_filter-0.1.0 | app/assets/javascripts/commit_filter/file_commits.js.coffee |