Skip to content

Commit cb7fa18

Browse files
Fixing an intermittent issue that happened when using spacebar to switch checked/unchecked on Chrome.
1 parent ba43f9b commit cb7fa18

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

apexplugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "IG Simple Checkbox",
3-
"version" : "18.2.2",
3+
"version" : "18.2.3",
44
"description" : "This plug-in displays a single checkbox in Interactive Grids but allows you to set 2 values (one for checked and another for unchecked). It's perfect for Y(es)/N(o) or 1/0 type checkboxes.",
55
"keywords" : ["checkbox", "ig", "simple"],
66
"homepage" : "https://github.com/rafael-trevisan/apex-plugin-ig_simple_checkbox",

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 18.2.3
4+
- Fixed an intermittent issue that happened when using spacebar to switch checked/unchecked on Chrome.
5+
36
## 18.2.2
47
- New feature [Issue #2](https://github.com/rafael-trevisan/apex-plugin-ig_simple_checkbox/issues/2)
58

dist/js/ca_trevis_apex_ig_simple_checkbox.bundle.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.

ig_simple_checkbox.sql

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ wwv_flow_api.create_plugin(
3030
,p_display_name=>'IG Simple Checkbox'
3131
,p_supported_ui_types=>'DESKTOP'
3232
,p_supported_component_types=>'APEX_APPL_PAGE_IG_COLUMNS'
33+
,p_image_prefix=>'&G_APEX_NITRO_IMAGES.'
3334
,p_javascript_file_urls=>'#PLUGIN_FILES#js/ca_trevis_apex_ig_simple_checkbox.bundle.min.js'
3435
,p_css_file_urls=>'#PLUGIN_FILES#css/ca_trevis_apex_ig_simple_checkbox.min.css'
3536
,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
@@ -118,7 +119,7 @@ wwv_flow_api.create_plugin(
118119
' or (p_param.value is null and c_unchecked_value is null)',
119120
' )',
120121
' then',
121-
' p_result.message := ''Checkbox contains invalid value!'';',
122+
' p_result.message := ''Checkbox contains invalid value ('' || p_param.value || '')'';',
122123
' end if;',
123124
'end validate_ig_simple_checkbox;',
124125
''))
@@ -129,9 +130,9 @@ wwv_flow_api.create_plugin(
129130
,p_standard_attributes=>'VISIBLE:SESSION_STATE:READONLY:SOURCE:ICON:ENCRYPT'
130131
,p_substitute_attributes=>true
131132
,p_subscribe_plugin_settings=>true
132-
,p_version_identifier=>'18.2.2'
133+
,p_version_identifier=>'18.2.3'
133134
,p_about_url=>'https://github.com/rafael-trevisan/apex-plugin-ig_simple_checkbox'
134-
,p_files_version=>7
135+
,p_files_version=>9
135136
);
136137
wwv_flow_api.create_plugin_attribute(
137138
p_id=>wwv_flow_api.id(50145107408085211199)
@@ -232,15 +233,15 @@ wwv_flow_api.g_varchar2_table(28) := '65745265636F72642863292C693D652E696E746572
232233
wwv_flow_api.g_varchar2_table(29) := '6F7245616368282862293D3E7B695B625D2E656C656D656E7449643D3D3D612626286A3D62297D292C662E73657456616C756528682C6A2C672E76616C2829297D2C6B3D28293D3E7B636F6E737420613D682E66696E642827696E7075745B747970653D';
233234
wwv_flow_api.g_varchar2_table(30) := '22636865636B626F78225D27293B612E70726F702827636865636B6564272C672E76616C28293D3D3D63292C2828293D3E7B2428272E69672D73696D706C652D636865636B626F7827292E656163682828612C62293D3E7B242862292E706172656E7473';
234235
wwv_flow_api.g_varchar2_table(31) := '2827746427292E6F666628272E696773696D706C65636865636B626F7827292E6F6E28276B6579646F776E2E696773696D706C65636865636B626F78272C2861293D3E7B69662833323D3D3D612E7768696368297B636F6E737420613D242862292E6669';
235-
wwv_flow_api.g_varchar2_table(32) := '6E642827696E7075745B747970653D22636865636B626F78225D27293B672E76616C28612E70726F702827636865636B656427293F643A63292E6368616E676528292C6A2867292C6B28297D7D297D297D2928297D3B682E617070656E6428692829292C';
236-
wwv_flow_api.g_varchar2_table(33) := '682E66696E642827696E7075745B747970653D22636865636B626F78225D27292E6F6E28276368616E6765272C2861293D3E7B636F6E737420623D2428612E63757272656E74546172676574293B672E76616C28622E70726F702827636865636B656427';
237-
wwv_flow_api.g_varchar2_table(34) := '293F633A64292E6368616E676528292C6A2862292C672E666F63757328297D292C6B28292C622E726561644F6E6C79262628672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73';
238-
wwv_flow_api.g_varchar2_table(35) := '696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865636B626F782D656E61626C65642729292C61';
239-
wwv_flow_api.g_varchar2_table(36) := '7065782E6974656D2E63726561746528612C7B73657456616C75652861297B672E76616C2861292C6B28297D2C64697361626C6528297B672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C61737328276967';
240-
wwv_flow_api.g_varchar2_table(37) := '2D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73696D706C652D636865636B626F782D656E61626C6564';
241-
wwv_flow_api.g_varchar2_table(38) := '27292C672E70726F70282764697361626C6564272C2130297D2C656E61626C6528297B622E726561644F6E6C797C7C28672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73696D';
242-
wwv_flow_api.g_varchar2_table(39) := '706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865636B626F782D656E61626C656427292C672E7072';
243-
wwv_flow_api.g_varchar2_table(40) := '6F70282764697361626C6564272C213129297D2C646973706C617956616C7565466F722861297B72657475726E20692821302C61297D7D297D7D5D293B0A';
236+
wwv_flow_api.g_varchar2_table(32) := '6E642827696E7075745B747970653D22636865636B626F78225D27293B72657475726E20672E76616C28612E70726F702827636865636B656427293F643A63292E6368616E676528292C6A2867292C6B28292C21317D72657475726E21307D297D297D29';
237+
wwv_flow_api.g_varchar2_table(33) := '28297D3B682E617070656E6428692829292C682E66696E642827696E7075745B747970653D22636865636B626F78225D27292E6F6E28276368616E6765272C2861293D3E7B636F6E737420623D2428612E63757272656E74546172676574293B672E7661';
238+
wwv_flow_api.g_varchar2_table(34) := '6C28622E70726F702827636865636B656427293F633A64292E6368616E676528292C6A2862292C672E666F63757328297D292C6B28292C622E726561644F6E6C79262628672E636C6F7365737428272E69672D73696D706C652D636865636B626F782729';
239+
wwv_flow_api.g_varchar2_table(35) := '2E72656D6F7665436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865';
240+
wwv_flow_api.g_varchar2_table(36) := '636B626F782D656E61626C65642729292C617065782E6974656D2E63726561746528612C7B73657456616C75652861297B672E76616C2861292C6B28297D2C64697361626C6528297B672E636C6F7365737428272E69672D73696D706C652D636865636B';
241+
wwv_flow_api.g_varchar2_table(37) := '626F7827292E616464436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73696D706C';
242+
wwv_flow_api.g_varchar2_table(38) := '652D636865636B626F782D656E61626C656427292C672E70726F70282764697361626C6564272C2130297D2C656E61626C6528297B622E726561644F6E6C797C7C28672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72';
243+
wwv_flow_api.g_varchar2_table(39) := '656D6F7665436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865636B';
244+
wwv_flow_api.g_varchar2_table(40) := '626F782D656E61626C656427292C672E70726F70282764697361626C6564272C213129297D2C646973706C617956616C7565466F722861297B72657475726E20692821302C61297D7D297D7D5D293B0A';
244245
null;
245246
end;
246247
/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apex-plugin-ig_simple_checkbox",
3-
"version": "18.2.2",
3+
"version": "18.2.3",
44
"description": "This plug-in displays a single checkbox in Interactive Grids but allows you to set 2 values (one for checked and another for unchecked). It's perfect for Y(es)/N(o) or 1/0 type checkboxes.",
55
"main": "item_type_plugin_ca_trevis_apex_ig_simple_checkbox.sql",
66
"scripts": {

src/js/ca_trevis_apex_ig_simple_checkbox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ const init = (itemId, options) => {
8484
item$.val(!input$.prop('checked') ? checkedValue : uncheckedValue).change();
8585
updateModel(item$);
8686
updateDisplay();
87+
return false;
8788
}
89+
return true;
8890
});
8991
});
9092
};

0 commit comments

Comments
 (0)