mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
92c30d9960 SuiteCRM 7.13.2 Release e3d6036790 Fix Surveys text labels ac66701d90 Add new modules to unit tests a3ca5cc324 Update goggle/apiclient to 2.13.0 9c346b259f Fix #9900 - Conditions doesn't recognize some of the characters set f6cc372db3 Fix #9926 - Add missing check on product image upload dc68a7164a Fix #9914 - Update dashboard.scss for dashlet options overflow 70f684abde Fix #9909 - Default empty item when creating a new Dropdown field 63fac08ea5 Fix #9883 - Security Groups do not work with modules whose name exceeds 36 characters. e3605783b5 Fix #9882 - opcache install module copy action 40a646c7f4 Fix #9871 - Javascript message error when bulk updating all user records 1a9d821ee2 Fix #9873 - Plesk php.ini disable_functions = opcache_get_status 0c6e039eb6 Fix #9835 - Case Updates save bug c1d90382b3 Fix #4646 - Hard coded messages in Surveys module 7efb6a7dd8 Fix salesagility#9750 - Receive related parameters of type dynamicenum in workflow formulas bd8f86e70a Closing count bracket before condition ec8a5e6aee Fix #9665 - Set unique id for "Reset module" button in studio 5783ac3acc Fix #9954 - Fix Campaigns parenthesis 20270e7639 FIX #9344 Error in Browsers console after adding tabs to Quickcreate: selectTabOnError git-subtree-dir: public/legacy git-subtree-split: 92c30d9960dd8da3146fcf0b09d41854026ee77f
23 lines
726 B
JavaScript
23 lines
726 B
JavaScript
var Survey = (function ($) {
|
|
var bindToggle = function (event) {
|
|
event.preventDefault();
|
|
|
|
var clickedElement = $(event.target);
|
|
var resultTable = $('#' + clickedElement.data('question-id') + 'List');
|
|
|
|
resultTable.slideToggle(500, function () {
|
|
clickedElement.text(resultTable.is(':visible') ? SUGAR.language.translate('Surveys', 'LBL_HIDE_RESPONSE') : SUGAR.language.translate('Surveys', 'LBL_SHOW_RESPONSE'));
|
|
});
|
|
};
|
|
|
|
var showHide = function (elements) {
|
|
$(elements).each(function (index, element) {
|
|
$(element).on('click', bindToggle);
|
|
});
|
|
};
|
|
|
|
var result = {};
|
|
result.showHide = showHide;
|
|
|
|
return result;
|
|
})(jQuery);
|