Permalink
Browse files

Rename project-specific fields for consistency with global fields

  • Loading branch information...
1 parent a8a3576 commit b415472be1b9a15e0aa95ac07e7266408eda76d3 @jsl jsl committed Apr 26, 2012
@@ -66,9 +66,9 @@ public boolean isApplicable(Class<? extends AbstractProject> aClass) {
*/
@Override
public Publisher newInstance(StaplerRequest req, JSONObject formData) throws FormException {
- String projectRoom = req.getParameter("roomName");
- String projectToken = req.getParameter("cfToken");
- String projectSubdomain = req.getParameter("cfSubdomain");
+ String projectSubdomain = req.getParameter("campfireSubdomain");
+ String projectToken = req.getParameter("campfireToken");
+ String projectRoom = req.getParameter("campfireRoom");
if ( projectRoom == null || projectRoom.trim().length() == 0 ) {
projectRoom = room;
}
@@ -4,14 +4,12 @@
See global.jelly for a general discussion about jelly script.
-->
<f:entry title="Project Subdomain" description="Optional. Use to send notifications to a subdomain other than the default (${descriptor.getSubdomain()})" help="${rootURL}/plugin/campfire/help-projectConfig-subdomain.html">
- <f:textbox name="cfSubdomain" value="${instance.getConfiguredSubdomain()}"/>
+ <f:textbox name="campfireSubdomain" value="${instance.getConfiguredSubdomain()}"/>
</f:entry>
-
<f:entry title="Project API Token" description="Optional. Use to send notifications to an API token other than the default (${descriptor.getToken()})" help="${rootURL}/plugin/campfire/help-projectConfig-token.html">
- <f:textbox name="cfToken" value="${instance.getConfiguredToken()}"/>
+ <f:textbox name="campfireToken" value="${instance.getConfiguredToken()}"/>
</f:entry>
-
<f:entry title="Project Room Name" description="Optional. Use to send notifications to a room other than the default (${descriptor.getRoom()})" help="${rootURL}/plugin/campfire/help-projectConfig-room.html">
- <f:textbox name="roomName" value="${instance.getConfiguredRoomName()}"/>
+ <f:textbox name="campfireRoom" value="${instance.getConfiguredRoomName()}"/>
</f:entry>
</j:jelly>

0 comments on commit b415472

Please sign in to comment.