vumix/commit

use updated annotation APIs

authorMichiel Hildebrand
Mon Mar 26 22:47:20 2012 +0200
committerMichiel Hildebrand
Mon Mar 26 22:47:20 2012 +0200
commit0f2b59769a54c176c20aae9ae3c105fb7cf5e2cd
treef5f74da14736709760ff64440e4f92b35a2d4465
parente4a5e21f195a67abaa948b56f82eafd4e88516be
Diff style: patch stat
diff --git a/web/js/textedit.js b/web/js/textedit.js
index 3b08692..354da24 100644
--- a/web/js/textedit.js
+++ b/web/js/textedit.js
@@ -85,7 +85,7 @@ YUI.add('textedit', function(Y) {
 			var data = 	{
 				target:this.get("target"),
 				field:this.get("field"),
-				body:newText
+				body:Y.JSON.stringify({value:newText, type:"literal"})
 			};
 			if(this.get("annotation")) {
 				data.annotation = this.get("annotation");
@@ -110,6 +110,6 @@ YUI.add('textedit', function(Y) {
 	Y.Plugin.TextEdit = TextEdit;
 
 }, '0.0.1', { requires: [
-	'node','event','plugin','io-base','querystring-stringify-simple'
+	'node','event','plugin','io-base','json','querystring-stringify-simple'
 	]
 });