details: http://code.openbravo.com/erp/devel/pi/rev/8b660ee052d1 changeset: 4609:8b660ee052d1 user: Stefan Hühner <stefan.huehner <at> openbravo.com> date: Fri Aug 14 14:30:04 2009 +0200 summary: [NumberFormat] delete two unused js-method introduced in commit 794612123584
diffstat: web/js/utils.js | 35 ----------------------------------- 1 files changed, 0 insertions(+), 35 deletions(-) diffs (45 lines): diff -r f75fd0483bc3 -r 8b660ee052d1 web/js/utils.js --- a/web/js/utils.js Fri Aug 14 14:06:13 2009 +0200 +++ b/web/js/utils.js Fri Aug 14 14:30:04 2009 +0200 @@ -4623,41 +4623,6 @@ setSelectionRange(input, pos, pos); } -function selectString (input, string) { - var match = new RegExp(string, "i").exec(input.value); - if (match) { - setSelectionRange (input, match.index, match.index + match -[0].length); - } -} - -function replaceSelection (input, replaceString) { - if (input.setSelectionRange) { - var selectionStart = input.selectionStart; - var selectionEnd = input.selectionEnd; - input.value = input.value.substring(0, selectionStart) - + replaceString - + input.value.substring(selectionEnd); - if (selectionStart != selectionEnd) // has there been a selection - setSelectionRange(input, selectionStart, selectionStart + replaceString.length); - else // set caret - setCaretToPos(input, selectionStart + replaceString.length); - } - else if (document.selection) { - var range = document.selection.createRange(); - if (range.parentElement() == input) { - var isCollapsed = range.text == ''; - range.text = replaceString; - if (!isCollapsed) { // there has been a selection - // it appears range.select() should select the newly - // inserted text but that fails with IE - range.moveStart('character', -replaceString.length); - range.select(); - } - } - } -} - /** * Function that manage the numeric dot write in the input * @param {Object} obj The input ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits