Skip to content

Commit

Permalink
Added renderJSON messages to annotateActivity and nameActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
davidatnie committed Jan 30, 2012
1 parent d313865 commit f29d8d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/Application.java
Expand Up @@ -38,6 +38,7 @@ public static void nameActivity( String classname, int classyear, String activit
Activity a = Activity.connectCurrent(c); Activity a = Activity.connectCurrent(c);
a.sessionMessage = activityname; a.sessionMessage = activityname;
a.save(); a.save();
renderJSON( "Renamed Activity To: " + activityname );
} }


public static void appendAnnotationToActivity( String classname, int classyear, String annotation ) public static void appendAnnotationToActivity( String classname, int classyear, String annotation )
Expand All @@ -46,6 +47,7 @@ public static void appendAnnotationToActivity( String classname, int classyear,
Activity a = Activity.connectCurrent(c); Activity a = Activity.connectCurrent(c);
a.annotation += "\n" + annotation; a.annotation += "\n" + annotation;
a.save(); a.save();
renderJSON( "Added Annotation: '" + annotation + "' to this activity." );
} }




Expand Down

0 comments on commit f29d8d1

Please sign in to comment.