Skip to content

Commit

Permalink
Change "Close" button to "Resolve" in notes popup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Feb 5, 2013
1 parent d1aa084 commit 9f02513
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/index/notes.js.erb
Expand Up @@ -145,10 +145,10 @@ $(document).ready(function () {
var form = e.target.form;

if ($(e.target).val() == "") {
$(form.close).val(I18n.t("javascripts.notes.show.close"));
$(form.close).val(I18n.t("javascripts.notes.show.resolve"));
$(form.comment).prop("disabled", true);
} else {
$(form.close).val(I18n.t("javascripts.notes.show.comment_and_close"));
$(form.close).val(I18n.t("javascripts.notes.show.comment_and_resolve"));
$(form.comment).prop("disabled", false);
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/templates/notes/show.jst.ejs
Expand Up @@ -25,7 +25,7 @@
<textarea class="comment" name="text" cols="40" rows="5"></textarea>
<br/>
<div class="buttons">
<input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" data-url="<%- note.close_url %>">
<input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.resolve') %>" data-url="<%- note.close_url %>">
<input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" data-url="<%- note.comment_url %>" disabled="1">
</div>
</form>
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en.yml
Expand Up @@ -2041,8 +2041,8 @@ en:
closed_by_anonymous: "resolved by anonymous at %{time}"
reopened_by: "reactivated by <a href='%{user_url}'>%{user}</a> at %{time}"
reopened_by_anonymous: "reactivated by anonymous at %{time}"
close: Close
comment_and_close: Comment & Close
resolve: Resolve
comment_and_resolve: Comment & Resolve
comment: Comment
redaction:
edit:
Expand Down

0 comments on commit 9f02513

Please sign in to comment.