mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Start to get new diff viewer in, not working yet
This commit is contained in:
parent
73600bb541
commit
0ddcd3e9f8
@ -500,20 +500,12 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
|
||||
{
|
||||
// Large text value - span both columns, and show a nice diff
|
||||
var jthis = jQuery(this);
|
||||
if(i == self.NEW_VALUE)
|
||||
if(i === self.NEW_VALUE)
|
||||
{
|
||||
// Diff widget
|
||||
widget = self.diff.widget;
|
||||
nodes = self.diff.nodes.clone();
|
||||
|
||||
if (typeof _data[self.columns[self.NEW_VALUE].id] == "string")
|
||||
{
|
||||
value = _data[self.columns[i].id] = {
|
||||
'old': _data[self.columns[i+1].id],
|
||||
'new': value
|
||||
};
|
||||
}
|
||||
|
||||
// Skip column 4
|
||||
jthis.parents("td").attr("colspan", 2)
|
||||
.css("border-right", "none");
|
||||
@ -571,7 +563,7 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
|
||||
this.egw().debug("warn", "Crazy diff value", value);
|
||||
return false;
|
||||
}
|
||||
return columnName == 'note' || columnName == 'description' || (value && (value.length > 50 || value.match(/\n/g)));
|
||||
return value=== '***diff***';
|
||||
},
|
||||
|
||||
resize: function (_height)
|
||||
|
@ -85,7 +85,8 @@
|
||||
"egroupware/z-push-dev": "self.version",
|
||||
"egroupware/activesync": "self.version",
|
||||
"egroupware/adodb-php": "self.version",
|
||||
"pear-pear.horde.org/Horde_Text_Diff": "^2.2"
|
||||
"pear-pear.horde.org/Horde_Text_Diff": "^2.2",
|
||||
"bower-asset/diff2html": "^2.7"
|
||||
},
|
||||
"require-dev": {
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user