Permalink
Browse files

Expressly pass the title for the modal dialog to the browser

  • Loading branch information...
1 parent d458526 commit c2f7c48818da1cd4bde1e8ce055a89181ec4686e @hlship committed Jul 12, 2012
@@ -260,9 +260,10 @@ void setupRender()
formSupport.store(this, new ProcessSubmission(controlName));
- JSONObject spec = new JSONObject("clientId", clientId,
-
- "newValueURL", createEventURL("newValue"));
+ JSONObject spec = new JSONObject(
+ "clientId", clientId,
+ "newValueTitle", "New " + singularLabel,
+ "newValueURL", createEventURL("newValue"));
for (Object value : values)
{
@@ -167,7 +167,7 @@ T5.extendInitializers(function () {
outerDiv.down(".tx-input button").observe("click", function (event) {
event.stop();
- lightbox(event.element().innerHTML, spec.newValueURL);
+ lightbox(spec.newValueTitle, spec.newValueURL);
});
$(spec.clientId).observe("tapx:multiselect:newvalue", function (event) {

0 comments on commit c2f7c48

Please sign in to comment.