Commits

Matt Ryall  committed ddeada7

Fix JSON quoting for compatibility with jQuery 1.4

  • Participants
  • Parent commits e60df64

Comments (0)

Files changed (1)

File src/main/java/com/atlassian/confluence/plugin/planning/ProjectManager.java

 
     private static String defaultData()
     {
-        return "{ iterations: [\n" +
-            "   { title: \"Iteration 1: " + getDefaultIterationDate() + "\", tasks: [\n" +
-            "       { title: \"Example scheduled task\", estimate: \"1d\" }\n" +
+        return "{ \"iterations\": [\n" +
+            "   { \"title\": \"Iteration 1: " + getDefaultIterationDate() + "\", \"tasks\": [\n" +
+            "       { \"title\": \"Example scheduled task\", \"estimate\": \"1d\" }\n" +
             "   ]},\n" +
-            "   { title: \"Backlog\", tasks: [\n" +
-            "       { title: \"Example backlog task\", estimate: \"1d 4h\" }\n" +
+            "   { \"title\": \"Backlog\", \"tasks\": [\n" +
+            "       { \"title\": \"Example backlog task\", \"estimate\": \"1d 4h\" }\n" +
             "   ]}\n" +
             "]}\n";
     }