]> source.dussan.org Git - redmine.git/commitdiff
Make the updateIssueFrom(url) function return the XMLHttpRequest object (#20180).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 Jun 2015 06:50:25 +0000 (06:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 Jun 2015 06:50:25 +0000 (06:50 +0000)
Patch by Vincent Robert.

git-svn-id: http://svn.redmine.org/redmine/trunk@14372 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 0fe2c4cd618194f6e3814f231df340c1d37c4274..bc56f43b2b436cc8489b875c84cdd5fc1390491d 100644 (file)
@@ -476,7 +476,7 @@ function updateIssueFrom(url) {
   $('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){
     $(this).data('valuebeforeupdate', $(this).val());
   });
-  $.ajax({
+  return $.ajax({
     url: url,
     type: 'post',
     data: $('#issue-form').serialize()