data: {
revision: this.get('revision'),
user: this.document.get('user'),
- chunk: path,
- format: 'nl'
+ chunk: path
+ // format: 'nl'
},
success: function(data) {
self.xmlParts[path] = data;
var path = elem.attr('wl2o:path');
this.xmlParts[path] = data;
- this.set('state', 'unsynced');
+ this.set('state', 'dirty');
/* re-render the changed fragment */
$.ajax({
dataType: 'text; charset=utf-8',
data: {
fragment: data,
- chunk: path,
- format: 'nl'
+ chunk: path
+ // format: 'nl'
},
success: function(htmldata) {
- elem.replaceWith(htmldata);
+ elem.html(htmldata);
self.set('state', 'dirty');
}
});