From efa2530a7c385a329c3fc76f4560b28ba97c3efe Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 17 Jan 2019 08:25:14 +0100 Subject: [PATCH] Double semicolon line endings fixed by @apmuthu. --- admin/attachments.php | 2 +- fixed_assets/includes/fa_classes_db.inc | 2 +- inventory/view/view_transfer.php | 2 +- js/behaviour.js | 60 ++++++++++++------------- manufacturing/view/wo_issue_view.php | 2 +- purchasing/view/view_po.php | 2 +- reporting/rep451.php | 2 +- sales/customer_credit_invoice.php | 6 +-- sales/includes/db/customers_db.inc | 2 +- taxes/tax_groups.php | 2 +- 10 files changed, 41 insertions(+), 41 deletions(-) diff --git a/admin/attachments.php b/admin/attachments.php index 421c0406..e92276ed 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -169,7 +169,7 @@ function viewing_controls() start_row(); systypes_list_cells(_("Type:"), 'filterType', null, true); if (list_updated('filterType')) - $selected_id = -1;; + $selected_id = -1; end_row(); end_table(1); diff --git a/fixed_assets/includes/fa_classes_db.inc b/fixed_assets/includes/fa_classes_db.inc index 919f053b..37fb5ceb 100644 --- a/fixed_assets/includes/fa_classes_db.inc +++ b/fixed_assets/includes/fa_classes_db.inc @@ -21,7 +21,7 @@ function get_fixed_asset_classes() function get_fixed_asset_classname($class) { - $sql="SELECT description FROM ".TB_PREF."stock_fa_class WHERE fa_class_id = ".db_escape($class);; + $sql="SELECT description FROM ".TB_PREF."stock_fa_class WHERE fa_class_id = ".db_escape($class); $result = db_query($sql,"fixed asset class name could not be retrieved"); diff --git a/inventory/view/view_transfer.php b/inventory/view/view_transfer.php index cb27e24f..f9c77816 100644 --- a/inventory/view/view_transfer.php +++ b/inventory/view/view_transfer.php @@ -61,7 +61,7 @@ while ($item = db_fetch($transfer_items)) label_cell($item['description']); qty_cell($item['qty'], false, get_qty_dec($item['stock_id'])); label_cell($item['units']); - end_row();; + end_row(); } } diff --git a/js/behaviour.js b/js/behaviour.js index b225ca20..fa812c8b 100644 --- a/js/behaviour.js +++ b/js/behaviour.js @@ -3,12 +3,12 @@ of Simon Willison (see comments by Simon below). Small fixes by J.Dobrowolski for Front Accounting May 2008 Description: - + Uses css selectors to apply javascript behaviours to enable unobtrusive javascript in html documents. - - Usage: - + + Usage: + var myrules = { 'b.someclass' : function(element){ element.onclick = function(){ @@ -21,42 +21,42 @@ } } }; - + Behaviour.register(myrules); - + // Call Behaviour.apply() to re-apply the rules (if you // update the dom, etc). License: - + This file is entirely BSD licensed. - + More information: - + http://ripcord.co.nz/behaviour/ - -*/ + +*/ var Behaviour = { list : new Array, - + register : function(sheet){ Behaviour.list.push(sheet); }, - + start : function(){ Behaviour.addLoadEvent(function(){ Behaviour.apply(); }); }, - + apply : function(){ for (h=0;sheet=Behaviour.list[h];h++){ for (selector in sheet){ var sels = selector.split(','); for (var n = 0; n < sels.length; n++) { list = document.getElementsBySelector(sels[n]); - + if (!list){ continue; } @@ -68,10 +68,10 @@ var Behaviour = { } } }, - + addLoadEvent : function(func){ var oldonload = window.onload; - + if (typeof window.onload != 'function') { window.onload = func; } else { @@ -90,13 +90,13 @@ Behaviour.start(); document.getElementsBySelector(selector) - returns an array of element objects from the current document - matching the CSS selector. Selectors can contain element names, + matching the CSS selector. Selectors can contain element names, class names and ids and can be nested. For example: - + elements = document.getElementsBySelect('div#main p a.external') - - Will return an array of all 'a' elements with 'external' in their - class attribute that are contained inside 'p' elements that are + + Will return an array of all 'a' elements with 'external' in their + class attribute that are contained inside 'p' elements that are contained inside the 'div' element which has id="main" New in version 0.4: Support for CSS2 and CSS3 attribute selectors: @@ -104,7 +104,7 @@ Behaviour.start(); Version 0.4 - Simon Willison, March 25th 2003 -- Works in Phoenix 0.5, Mozilla 1.3, Opera 7, Internet Explorer 6, Internet Explorer 5 on Windows - -- Opera 7 fails + -- Opera 7 fails */ function getAllChildren(e) { @@ -121,7 +121,7 @@ document.getElementsBySelector = function(selector) { var tokens = selector.split(' '); var currentContext = new Array(document); for (var i = 0; i < tokens.length; i++) { - token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');; + token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,''); if (token.indexOf('#') > -1) { // Token is an ID selector var bits = token.split('#'); @@ -168,7 +168,7 @@ document.getElementsBySelector = function(selector) { continue; // Skip to next token } // Code to deal with attribute selectors -/* Original reg expression /^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ +/* Original reg expression /^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ was replaced by new RegExp() cuz compressor fault */ if (token.match(new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$'))) { var tagName = RegExp.$1; @@ -199,7 +199,7 @@ document.getElementsBySelector = function(selector) { case '=': // Equality checkFunction = function(e) { return (e.getAttribute(attrName) == attrValue); }; break; - case '~': // Match one of space seperated words + case '~': // Match one of space seperated words checkFunction = function(e) { var a=e.getAttribute(attrName); return (a && a.match(new RegExp('\\b'+attrValue+'\\b'))); }; break; case '|': // Match start with value followed by optional hyphen @@ -228,11 +228,11 @@ document.getElementsBySelector = function(selector) { // alert('Attribute Selector: '+tagName+' '+attrName+' '+attrOperator+' '+attrValue); continue; // Skip to next token } - + if (!currentContext[0]){ return; } - + // If we get here, token is JUST an element (not a class or ID selector) tagName = token; var found = new Array; @@ -248,12 +248,12 @@ document.getElementsBySelector = function(selector) { return currentContext; } -/* That revolting regular expression explained +/* That revolting regular expression explained /^(\w+)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ \---/ \---/\-------------/ \-------/ | | | | | | | The value | | ~,|,^,$,* or = - | Attribute + | Attribute Tag */ diff --git a/manufacturing/view/wo_issue_view.php b/manufacturing/view/wo_issue_view.php index ad0dfda9..cbad96a0 100644 --- a/manufacturing/view/wo_issue_view.php +++ b/manufacturing/view/wo_issue_view.php @@ -91,7 +91,7 @@ function display_wo_issue_details($issue_no) qty_cell($myrow["qty_issued"], false, get_qty_dec($myrow["stock_id"])); label_cell($myrow["units"]); amount_cell($myrow["unit_cost"]); - end_row();; + end_row(); $j++; If ($j == 12) diff --git a/purchasing/view/view_po.php b/purchasing/view/view_po.php index e84e4e33..be882644 100644 --- a/purchasing/view/view_po.php +++ b/purchasing/view/view_po.php @@ -123,7 +123,7 @@ if (db_num_rows($grns_result) > 0) label_cell(sql2date($myrow["delivery_date"])); end_row(); } - end_table();; + end_table(); } $invoice_result = get_po_invoices_credits($_GET['trans_no']); diff --git a/reporting/rep451.php b/reporting/rep451.php index 5d73ff79..88a1a69b 100644 --- a/reporting/rep451.php +++ b/reporting/rep451.php @@ -134,7 +134,7 @@ function print_fixed_assets_valuation_report() $rep->NewLine(); } $UnitCost = $trans['purchase_cost']; - $Depreciation = $trans['purchase_cost'] - $trans['material_cost'];; + $Depreciation = $trans['purchase_cost'] - $trans['material_cost']; $Balance = $trans['material_cost']; if ($detail) { diff --git a/sales/customer_credit_invoice.php b/sales/customer_credit_invoice.php index af42db4c..e482386b 100644 --- a/sales/customer_credit_invoice.php +++ b/sales/customer_credit_invoice.php @@ -87,7 +87,7 @@ function can_process() global $Refs; if (!is_date($_POST['CreditDate'])) { - display_error(_("The entered date is invalid."));; + display_error(_("The entered date is invalid.")); set_focus('CreditDate'); return false; } elseif (!is_date_in_fiscalyear($_POST['CreditDate'])) { @@ -98,14 +98,14 @@ function can_process() if ($_SESSION['Items']->trans_no==0) { if (!$Refs->is_valid($_POST['ref'], ST_CUSTCREDIT)) { - display_error(_("You must enter a reference."));; + display_error(_("You must enter a reference.")); set_focus('ref'); return false; } } if (!check_num('ChargeFreightCost', 0)) { - display_error(_("The entered shipping cost is invalid or less than zero."));; + display_error(_("The entered shipping cost is invalid or less than zero.")); set_focus('ChargeFreightCost'); return false; } diff --git a/sales/includes/db/customers_db.inc b/sales/includes/db/customers_db.inc index 675e1b73..0dfc17e2 100644 --- a/sales/includes/db/customers_db.inc +++ b/sales/includes/db/customers_db.inc @@ -55,7 +55,7 @@ function delete_customer($customer_id) begin_transaction(); delete_entity_contacts('customer', $customer_id); - $sql = "DELETE FROM ".TB_PREF."debtors_master WHERE debtor_no=".db_escape($customer_id);; + $sql = "DELETE FROM ".TB_PREF."debtors_master WHERE debtor_no=".db_escape($customer_id); db_query($sql,"cannot delete customer"); commit_transaction(); } diff --git a/taxes/tax_groups.php b/taxes/tax_groups.php index 889db60e..16873e04 100644 --- a/taxes/tax_groups.php +++ b/taxes/tax_groups.php @@ -139,7 +139,7 @@ while ($myrow = db_fetch($result)) inactive_control_cell($myrow["id"], $myrow["inactive"], 'tax_groups', 'id'); edit_button_cell("Edit".$myrow["id"], _("Edit")); delete_button_cell("Delete".$myrow["id"], _("Delete")); - end_row();; + end_row(); } inactive_control_row($th); -- 2.30.2