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 #16409 from totten/master-altpkgs-ui
[civicrm-core.git]
/
js
/
jquery
/
jquery.crmEditable.js
diff --git
a/js/jquery/jquery.crmEditable.js
b/js/jquery/jquery.crmEditable.js
index f6920f744b943d59823b33d0820dfacdbc2ca96e..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;
@@
-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);
});