Browse Source

fixed small bug with rendering of text

Simon Van Mierlo 8 years ago
parent
commit
defaae32cb
2 changed files with 6 additions and 2 deletions
  1. 6 2
      client/query_response.js
  2. BIN
      doc/_build/html/_images/MoTif_toolbar.png

+ 6 - 2
client/query_response.js

@@ -273,8 +273,12 @@ function __handleChangelog(changelog,seqNum,hitchhiker)
 						 		utils.contains(['r','rays'],attr) )
 						__editStar(vobj,attr,step['new_val']);
 
-					try 			{var newVal = utils.jsonp(step['new_val']);}
-					catch(err)	{var newVal = step['new_val'];}
+                    if( vobj.type == 'text' )
+						var newVal = step['new_val'];
+                    else {
+                        try 			{var newVal = utils.jsonp(step['new_val']);}
+                        catch(err)	{var newVal = step['new_val'];}
+                    }
 					if( attr == 'style' )
 						vobj.attr( newVal );
 					else if( attr == 'src' )

BIN
doc/_build/html/_images/MoTif_toolbar.png