Use attr() instead of data() to prevent parsing of json (#2548)
* Use attr() instead of data() to prevent parsing of json

A fix for issue #2503 
Valid JSON text will be converted to a JSON object, not text , when using .data(). using .attr() prevents this behavior.

* Update gitbucket.js

Use different methods to get old and head values depending on the object type
1 parent d97f7c6 commit f25cf5781c4f76b789d5c2ca2af8cbfebd6b609e
@Marcel Berteler Marcel Berteler authored on 3 Nov 2020
GitHub committed on 3 Nov 2020
Showing 1 changed file
View
src/main/webapp/assets/common/js/gitbucket.js