projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #16447 from samuelsov/lab#1319
[civicrm-core.git]
/
js
/
jquery
/
jquery.crmEditable.js
diff --git
a/js/jquery/jquery.crmEditable.js
b/js/jquery/jquery.crmEditable.js
index 624f51b971b1137666570c4e994faca42b273657..b68b27f0a24012a04ecf7d34a41526bfe4b31902 100644
(file)
--- a/
js/jquery/jquery.crmEditable.js
+++ b/
js/jquery/jquery.crmEditable.js
@@
-29,6
+29,7
@@
ret[fieldName] = $(this).text();
if (this === el) {
ret.field = fieldName;
ret[fieldName] = $(this).text();
if (this === el) {
ret.field = fieldName;
+ ret.params = $(this).data('params');
}
}
});
}
}
});
@@
-132,7
+133,7
@@
var
info = $i.crmEditableEntity(),
$el = $($i),
var
info = $i.crmEditableEntity(),
$el = $($i),
- params = {},
+ params =
info.params ||
{},
action = $i.data('action') || info.action;
if (!info.field) {
return false;
action = $i.data('action') || info.action;
if (!info.field) {
return false;
@@
-159,7
+160,7
@@
var options = optionsCache[$el.data('optionsHashKey')];
value = options && options[value] ? options[value] : '';
}
var options = optionsCache[$el.data('optionsHashKey')];
value = options && options[value] ? options[value] : '';
}
- $el.trigger('crmFormSuccess');
+ $el.trigger('crmFormSuccess'
, [value]
);
editableSettings.success.call($el[0], info.entity, info.field, value, data, settings);
})
.fail(function(data) {
editableSettings.success.call($el[0], info.entity, info.field, value, data, settings);
})
.fail(function(data) {
@@
-167,7
+168,7
@@
});
}
});
}
- CRM.loadScript(CRM.config.
resourceBase + 'packages/
jquery/plugins/jquery.jeditable.min.js').done(function() {
+ CRM.loadScript(CRM.config.
packagesBase + '
jquery/plugins/jquery.jeditable.min.js').done(function() {
$i.editable(callback, settings);
});
$i.editable(callback, settings);
});