Skip to content

Commit

Permalink
Merge branch '1.7.2.x' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
eternoendless committed Aug 31, 2017
2 parents fe881a9 + e344776 commit a4f1b1a
Show file tree
Hide file tree
Showing 37 changed files with 27,032 additions and 681 deletions.
9 changes: 6 additions & 3 deletions admin-dev/themes/default/js/bundle/product/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ var warehouseCombinations = (function() {
var form = (function() {
var elem = $('#form');

function send(redirect, target) {
function send(redirect, target, callBack) {
// target value by default
if (typeof(target) == 'undefined') {
target = false;
Expand Down Expand Up @@ -866,6 +866,9 @@ var form = (function() {
$('#form-nav li.has-error').removeClass('has-error');
},
success: function(response) {
if (callBack) {
callBack();
}
showSuccessMessage(translate_javascripts['Form update success']);
//update the customization ids
if (typeof response.customization_fields_ids != "undefined") {
Expand Down Expand Up @@ -1138,8 +1141,8 @@ var form = (function() {
imagesProduct.initExpander();
});
},
'send': function() {
send();
'send': function(redirect, target, callBack) {
send(redirect, target, callBack);
},
'switchLanguage': function(iso_code) {
switchLanguage(iso_code);
Expand Down
Loading

0 comments on commit a4f1b1a

Please sign in to comment.