diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml index 34e70c275d8e7d7647723aff9bd442ac53eab0e3..7c4ba7e7daaac041b767e520e8abb84db7a18ba8 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml @@ -196,7 +196,36 @@ function submitFormOnEnter(event, main_form_id, method_name){\n if(key_code == 13){\n var main_form = getElement(main_form_id)\n main_form.action=method_name;};\n -} +}\n +\n +var old_index=0;\n +function shiftCheck(evt) {\n + evt=(evt)?evt:event;\n + var target=(evt.target)?evt.target:evt.srcElement;\n + // remove "checkbox" part from ID\n + // This part can be reused easilly by usual left column\n + var target_index= target.id.substr(8);\n + if(!evt.shiftKey) {\n + old_index= target_index\n + check_option = target.checked;\n + return false;\n + }\n + target.checked=1;\n + var low=Math.min(target_index , old_index);\n + var high=Math.max(target_index , old_index);\n + for(var i=low;i<=high;i++) {\n + document.getElementById("checkbox" + i ).checked = check_option;\n + }\n + return true;\n + }\n +\n +var indexAllCheckBoxesAtBTInstallationOnLoad = function() {\n + // This Part is used basically for Business Template Installation.\n + var inputs = window.getElementsByTagAndClassName("input", "shift_check_support");\n + for(i=0;i<=inputs.length-1;i++) { inputs[i].id = "checkbox" + i; }\n +}\n +\n +addLoadEvent(indexAllCheckBoxesAtBTInstallationOnLoad) ]]></string> </value> </item> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 23c5f49dce2fe2fe524cf1f2e227fe5b42560b10..09c40390ccf82d46abffeb47fda1fffd5d96a0bf 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -572 \ No newline at end of file +576 \ No newline at end of file