Skip to content

Commit 18b35ce

Browse files
committed
add build files
1 parent 5688efc commit 18b35ce

File tree

2 files changed

+31
-20
lines changed

2 files changed

+31
-20
lines changed

assets/dist/carbon.core.js

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11731,7 +11731,7 @@ var getFieldPatternRegex = exports.getFieldPatternRegex = function getFieldPatte
1173111731
};
1173211732

1173311733
/**
11734-
* Get a field based on it's name hierarchy
11734+
* Get a field based on its name hierarchy
1173511735
* This is a direct translation of Container::get_field_by_name from php
1173611736
*
1173711737
* @return {Object}
@@ -11795,7 +11795,7 @@ var getFieldByHierarchy = exports.getFieldByHierarchy = function getFieldByHiera
1179511795
};
1179611796

1179711797
/**
11798-
* Get a field's hierarchy name based on it's id
11798+
* Get a field's hierarchy name based on its id
1179911799
*
1180011800
* @return {Object}
1180111801
*/
@@ -14180,7 +14180,7 @@ function workerFormSubmit() {
1418014180

1418114181
case 4:
1418214182
if (false) {
14183-
_context3.next = 29;
14183+
_context3.next = 31;
1418414184
break;
1418514185
}
1418614186

@@ -14192,49 +14192,60 @@ function workerFormSubmit() {
1419214192
_event = _ref3.event;
1419314193
widgetId = getWidgetId((0, _jquery2.default)(_event.target).closest('.widget-inside').get(0));
1419414194
containerId = widgetIdToContainerId(widgetId);
14195-
_context3.next = 13;
14196-
return (0, _effects.put)((0, _actions.submitForm)(_event));
14195+
14196+
// Don't care about other widgets.
14197+
14198+
if ((0, _lodash.startsWith)(widgetId, carbonWidgetIdPrefix)) {
14199+
_context3.next = 13;
14200+
break;
14201+
}
14202+
14203+
return _context3.abrupt('continue', 4);
1419714204

1419814205
case 13:
1419914206
_context3.next = 15;
14200-
return (0, _effects.put)((0, _actions.validateContainer)(containerId, _event));
14207+
return (0, _effects.put)((0, _actions.submitForm)(_event));
1420114208

1420214209
case 15:
14210+
_context3.next = 17;
14211+
return (0, _effects.put)((0, _actions.validateContainer)(containerId, _event));
14212+
14213+
case 17:
1420314214
if (!(pagenow === _constants.PAGE_NOW_CUSTOMIZE)) {
14204-
_context3.next = 27;
14215+
_context3.next = 29;
1420514216
break;
1420614217
}
1420714218

1420814219
_event.preventDefault();
1420914220

1421014221
// This little delay allows us to get correct results in the selector for invalid fields
1421114222
// since we don't know when the validation is completed.
14212-
_context3.next = 19;
14223+
_context3.next = 21;
1421314224
return (0, _effects.call)(_reduxSaga.delay, 250);
1421414225

14215-
case 19:
14216-
_context3.next = 21;
14226+
case 21:
14227+
_context3.next = 23;
1421714228
return (0, _effects.select)(_selectors2.hasInvalidFields);
1421814229

14219-
case 21:
14230+
case 23:
1422014231
if (_context3.sent) {
14221-
_context3.next = 27;
14232+
_context3.next = 29;
1422214233
break;
1422314234
}
1422414235

14225-
_context3.next = 24;
14236+
_context3.next = 26;
1422614237
return (0, _effects.call)(wp.customize.Widgets.getWidgetFormControlForWidget, containerId);
1422714238

14228-
case 24:
14239+
case 26:
1422914240
_widget = _context3.sent;
14230-
_context3.next = 27;
14241+
_context3.next = 29;
1423114242
return (0, _effects.call)([_widget, _widget.updateWidget], { disable_form: true });
1423214243

14233-
case 27:
14244+
case 29:
1423414245
_context3.next = 4;
1423514246
break;
1423614247

14237-
case 29:
14248+
case 31:
1423814249
case 'end':
1423914250
return _context3.stop();
1424014251
}
@@ -15454,7 +15465,7 @@ function patchTagBoxAPI(tagBox, method) {
1545415465
}
1545515466

1545615467
/**
15457-
* Get select option's level based on it's className
15468+
* Get select option's level based on its className
1545815469
*
1545915470
* @param {Object} option
1546015471
* @return {Number}
@@ -15933,7 +15944,7 @@ function prepareValueForField(fieldId, attachment) {
1593315944
}
1593415945

1593515946
/**
15936-
* Set a field's value depending on it's value_type property
15947+
* Set a field's value depending on its value_type property
1593715948
*
1593815949
* @param {String} fieldId
1593915950
* @param {Object} attachment

assets/dist/carbon.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)