3781: Merge branch 'master' into 3781-browser-upload
[arvados.git] / apps / workbench / app / assets / javascripts / report_issue.js
index 97ee939038bbcbc2b438a3f08f32126146f20550..f3c323c63ba72bd05dde4e40a87cdcd46e936511 100644 (file)
@@ -1,7 +1,7 @@
 $(document).
   on('click', "#report-issue-submit", function(e){
     $(this).html('Sending');
-    $(this).attr('disabled', true);
+    $(this).prop('disabled', true);
     var $cancelButton = $('#report-issue-cancel');
     if ($cancelButton) {
       $cancelButton.html('Close');
@@ -13,15 +13,15 @@ $(document).
         var $sendButton = $('#report-issue-submit');
         $sendButton.html('Report sent');
         $('div').remove('.modal-footer-status');
-        $('.modal-footer').append('<div><br/></div><div class="modal-footer-status alert alert-success"><p align="left">Thanks for reporting this issue!</p></div>');
+        $('.modal-footer').append('<div><br/></div><div class="modal-footer-status alert alert-success"><p class="contain-align-left">Thanks for reporting this issue!</p></div>');
       }).
       fail(function(jqxhr, status, error) {
         var $sendButton = $('#report-issue-submit');
         if ($sendButton && $sendButton.prop('disabled')) {
           $('div').remove('.modal-footer-status');
-          $('.modal-footer').append('<div><br/></div><div class="modal-footer-status alert alert-danger"><p align="left">We are sorry. We could not submit your report! We really want this to work, though -- please try again.</p></div>');
+          $('.modal-footer').append('<div><br/></div><div class="modal-footer-status alert alert-danger"><p class="contain-align-left">We are sorry. We could not submit your report! We really want this to work, though -- please try again.</p></div>');
           $sendButton.html('Send problem report');
-          $sendButton.attr('disabled',false);
+          $sendButton.prop('disabled', false);
         }
         var $cancelButton = $('#report-issue-cancel');
         $cancelButton.html('Cancel');