mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Use value as string, so we don't fail if invalid data is passed
This commit is contained in:
parent
625dae0c59
commit
865151f977
@ -51,8 +51,8 @@ var et2_diff = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
jQuery(this.div).empty();
|
||||
if(value['old'] && value['new']) {
|
||||
// Build diff
|
||||
var old_text = difflib.stringAsLines(value['old']);
|
||||
var new_text = difflib.stringAsLines(value['new']);
|
||||
var old_text = difflib.stringAsLines(value['old'].toString());
|
||||
var new_text = difflib.stringAsLines(value['new'].toString());
|
||||
var sm = new difflib.SequenceMatcher(old_text, new_text);
|
||||
var opcodes = sm.get_opcodes();
|
||||
var view = diffview.buildView({
|
||||
|
Loading…
Reference in New Issue
Block a user