mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 14:58:43 +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();
|
jQuery(this.div).empty();
|
||||||
if(value['old'] && value['new']) {
|
if(value['old'] && value['new']) {
|
||||||
// Build diff
|
// Build diff
|
||||||
var old_text = difflib.stringAsLines(value['old']);
|
var old_text = difflib.stringAsLines(value['old'].toString());
|
||||||
var new_text = difflib.stringAsLines(value['new']);
|
var new_text = difflib.stringAsLines(value['new'].toString());
|
||||||
var sm = new difflib.SequenceMatcher(old_text, new_text);
|
var sm = new difflib.SequenceMatcher(old_text, new_text);
|
||||||
var opcodes = sm.get_opcodes();
|
var opcodes = sm.get_opcodes();
|
||||||
var view = diffview.buildView({
|
var view = diffview.buildView({
|
||||||
|
Loading…
Reference in New Issue
Block a user