Fix "View Diff" buttons on edit attachment page
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Oct 2014 16:01:22 +0000 (16:01 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Oct 2014 16:01:22 +0000 (16:01 +0000)
commit02dba12877067c715cc117578468c0f571746e58
tree558ed63bd2ca9d81922f7230619659ba4da32b63
parent2c6a4b505240098d05bafb0d95db8aeae41b63ec
Fix "View Diff" buttons on edit attachment page

* js/attachment.js:
(viewPrettyPatch): Change code syntax from Perl to JavaScript.
When I moved this method from
template/en/custom/attachment/edit.html.tmpl into
js/attachment.js during the Bugzilla 4.2.1 merge, I wrote some
of the code using Perl syntax.
* template/en/custom/attachment/edit.html.tmpl:
- Fix 120-column truncation of code.  (That's what you get for
  copying and pasting code from 'git diff' in a terminal
  window.)
- Pass attachment_id into the viewPrettyPatch() method since
  the method expects it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/bugs.webkit.org/js/attachment.js
Websites/bugs.webkit.org/template/en/custom/attachment/edit.html.tmpl