1
0

Prepare for ajax save, delete, modify

This commit is contained in:
hukoeth 2010-09-21 14:25:03 +08:00 committed by Bharat Mediratta
parent f844b79343
commit f1084d6390

View File

@ -206,6 +206,20 @@
buttons: btns
});
} else {
var test = saveUrl;
var newnote = new array();
newnote.description = data.description;
newnote.editable = true;
newnote.height = data.height;
newnote.internaltext = data.internaltext;
newnote.left = data.left;
newnote.noteid = data.noteid;
newnote.notetype = data.notetype;
newnote.text = data.text;
newnote.top = data.top;
newnote.url = data.url;
newnote.width = data.width;
$.fn.annotateView(!image, newnote, !image.tags, !image.labels, !image.editable, !image.csrf, !image.deleteUrl, !image.saveUrl, !image.cssaclass, !image.rtlsupport, !image.users);
//@todo: save new annotation / update existing annotation
//success
}