Commits

factormystic committed 82c629c

Pare down the conditions text, so it fits inside the gadget without clipping

Comments (0)

Files changed (1)

 
 				var start = data.indexOf('<t>',start)+3;
 				var end = data.indexOf('</t>',start);
-				condition.value = data.substr(start, end-start).toUpperCase();
+				condition.value = data.substr(start, end-start).toUpperCase().replace(" AND ", "/").replace("MOSTLY","");
 				System.Gadget.Settings.writeString("condition", condition.value);
 				alert("Condition is now: "+condition.value);