Mercurial > hg > isophonics-drupal-site
comparison core/modules/quickedit/js/util.js @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
83 nocssjs: options.nocssjs, | 83 nocssjs: options.nocssjs, |
84 other_view_modes: options.other_view_modes | 84 other_view_modes: options.other_view_modes |
85 }, | 85 }, |
86 | 86 |
87 success: function success(response, status) { | 87 success: function success(response, status) { |
88 for (var i in response) { | 88 var _this = this; |
89 if (response.hasOwnProperty(i) && response[i].command && this.commands[response[i].command]) { | 89 |
90 this.commands[response[i].command](this, response[i], status); | 90 Object.keys(response || {}).forEach(function (i) { |
91 if (response[i].command && _this.commands[response[i].command]) { | |
92 _this.commands[response[i].command](_this, response[i], status); | |
91 } | 93 } |
92 } | 94 }); |
93 }, | 95 }, |
94 | 96 |
95 base: $submit.attr('id'), | 97 base: $submit.attr('id'), |
96 element: $submit[0] | 98 element: $submit[0] |
97 }; | 99 }; |