|
@@ -325,6 +325,11 @@ var initMoes = function() {
|
|
var submit = moe.find('[submit]'); // REQUIRED
|
|
var submit = moe.find('[submit]'); // REQUIRED
|
|
var cancel = moe.find('[cancel]')[0]; // OPTIONAL
|
|
var cancel = moe.find('[cancel]')[0]; // OPTIONAL
|
|
|
|
|
|
|
|
+ let moeRefreshContainer = moe.closest('[moe-refresh-container][id]');
|
|
|
|
+ if(!target && moeRefreshContainer.length) {
|
|
|
|
+ target = '#' + moeRefreshContainer.attr('id');
|
|
|
|
+ }
|
|
|
|
+
|
|
// ajax load - OPTIONAL
|
|
// ajax load - OPTIONAL
|
|
var moeParent = $(form).closest('[moe-parent][url]');
|
|
var moeParent = $(form).closest('[moe-parent][url]');
|
|
|
|
|