+ $('#commit-dialog-save-button').click( function (event, data)\r
+ {\r
+ if( $('#commit-dialog-message').val().match(/^\s*$/)) {\r
+ $('#commit-dialog-error-empty-message').fadeIn();\r
+ }\r
+ else {\r
+ $('#commit-dialog-error-empty-message').hide();\r
+ $('#commit-dialog').jqmHide();\r
+\r
+ var message = $('#commit-dialog-message').val();\r
+ $('#commit-dialog-related-issues input:checked').\r
+ each(function() { message += ' refs #' + $(this).val(); });\r
+ $.log("COMMIT APROVED", hash.t);\r
+ hash.t.callback(message);\r
+ }\r
+\r
+ return false;\r
+ });\r
+\r