diff --git a/framework/base/src/org/ofbiz/base/util/ObjectType.java b/framework/base/src/org/ofbiz/base/util/ObjectType.java index cd0cb5d762..0a8666a62c 100644 --- a/framework/base/src/org/ofbiz/base/util/ObjectType.java +++ b/framework/base/src/org/ofbiz/base/util/ObjectType.java @@ -765,6 +765,7 @@ public class ObjectType { // These types would flood the log if (value instanceof Boolean) return false; if (value instanceof Integer) return false; + if (value instanceof Long) return false; if (value instanceof java.math.BigDecimal) return false; if (value instanceof java.sql.Timestamp) return false; diff --git a/framework/images/webapp/images/htmledit/add_column_after.gif b/framework/images/webapp/images/htmledit/add_column_after.gif deleted file mode 100644 index f34b5e4161..0000000000 Binary files a/framework/images/webapp/images/htmledit/add_column_after.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/add_column_before.gif b/framework/images/webapp/images/htmledit/add_column_before.gif deleted file mode 100644 index f1cc540885..0000000000 Binary files a/framework/images/webapp/images/htmledit/add_column_before.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/add_row_above.gif b/framework/images/webapp/images/htmledit/add_row_above.gif deleted file mode 100644 index cc09234da8..0000000000 Binary files a/framework/images/webapp/images/htmledit/add_row_above.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/add_row_below.gif b/framework/images/webapp/images/htmledit/add_row_below.gif deleted file mode 100644 index af9647a70b..0000000000 Binary files a/framework/images/webapp/images/htmledit/add_row_below.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/back.gif b/framework/images/webapp/images/htmledit/back.gif deleted file mode 100644 index 0e6f97d00b..0000000000 Binary files a/framework/images/webapp/images/htmledit/back.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/bold.gif b/framework/images/webapp/images/htmledit/bold.gif deleted file mode 100644 index 36e3c18196..0000000000 Binary files a/framework/images/webapp/images/htmledit/bold.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/bullet.gif b/framework/images/webapp/images/htmledit/bullet.gif deleted file mode 100644 index dfeaac9d7c..0000000000 Binary files a/framework/images/webapp/images/htmledit/bullet.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/cal.gif b/framework/images/webapp/images/htmledit/cal.gif deleted file mode 100644 index 8526cf5d19..0000000000 Binary files a/framework/images/webapp/images/htmledit/cal.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/center.gif b/framework/images/webapp/images/htmledit/center.gif deleted file mode 100644 index 0837321581..0000000000 Binary files a/framework/images/webapp/images/htmledit/center.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/clean.gif b/framework/images/webapp/images/htmledit/clean.gif deleted file mode 100644 index fcb6d923bb..0000000000 Binary files a/framework/images/webapp/images/htmledit/clean.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/color.gif b/framework/images/webapp/images/htmledit/color.gif deleted file mode 100644 index bdf2a885c0..0000000000 Binary files a/framework/images/webapp/images/htmledit/color.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/compressed.gif b/framework/images/webapp/images/htmledit/compressed.gif deleted file mode 100644 index 1a604cbbab..0000000000 Binary files a/framework/images/webapp/images/htmledit/compressed.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/delete_column.gif b/framework/images/webapp/images/htmledit/delete_column.gif deleted file mode 100644 index d36c933ef8..0000000000 Binary files a/framework/images/webapp/images/htmledit/delete_column.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/delete_row.gif b/framework/images/webapp/images/htmledit/delete_row.gif deleted file mode 100644 index d210a8bf2f..0000000000 Binary files a/framework/images/webapp/images/htmledit/delete_row.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/dir.gif b/framework/images/webapp/images/htmledit/dir.gif deleted file mode 100644 index 3ad2482817..0000000000 Binary files a/framework/images/webapp/images/htmledit/dir.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/doc.gif b/framework/images/webapp/images/htmledit/doc.gif deleted file mode 100644 index d8fcf17655..0000000000 Binary files a/framework/images/webapp/images/htmledit/doc.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/generic.gif b/framework/images/webapp/images/htmledit/generic.gif deleted file mode 100644 index 1212f30518..0000000000 Binary files a/framework/images/webapp/images/htmledit/generic.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/hilite.gif b/framework/images/webapp/images/htmledit/hilite.gif deleted file mode 100644 index 246bb4b7d8..0000000000 Binary files a/framework/images/webapp/images/htmledit/hilite.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/html.gif b/framework/images/webapp/images/htmledit/html.gif deleted file mode 100644 index d93b8ec62d..0000000000 Binary files a/framework/images/webapp/images/htmledit/html.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/image.gif b/framework/images/webapp/images/htmledit/image.gif deleted file mode 100644 index 4390f260bc..0000000000 Binary files a/framework/images/webapp/images/htmledit/image.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/indent.gif b/framework/images/webapp/images/htmledit/indent.gif deleted file mode 100644 index 1b978aa643..0000000000 Binary files a/framework/images/webapp/images/htmledit/indent.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/italic.gif b/framework/images/webapp/images/htmledit/italic.gif deleted file mode 100644 index 5775163479..0000000000 Binary files a/framework/images/webapp/images/htmledit/italic.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/justify.gif b/framework/images/webapp/images/htmledit/justify.gif deleted file mode 100644 index 86052ec1e5..0000000000 Binary files a/framework/images/webapp/images/htmledit/justify.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/left.gif b/framework/images/webapp/images/htmledit/left.gif deleted file mode 100644 index dea96ee2d2..0000000000 Binary files a/framework/images/webapp/images/htmledit/left.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/link.gif b/framework/images/webapp/images/htmledit/link.gif deleted file mode 100644 index 8e6cf4592b..0000000000 Binary files a/framework/images/webapp/images/htmledit/link.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/number.gif b/framework/images/webapp/images/htmledit/number.gif deleted file mode 100644 index 82e3630173..0000000000 Binary files a/framework/images/webapp/images/htmledit/number.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/outdent.gif b/framework/images/webapp/images/htmledit/outdent.gif deleted file mode 100644 index 7f3c24ed08..0000000000 Binary files a/framework/images/webapp/images/htmledit/outdent.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/pdf.gif b/framework/images/webapp/images/htmledit/pdf.gif deleted file mode 100644 index 7add95a1c1..0000000000 Binary files a/framework/images/webapp/images/htmledit/pdf.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/ppt.gif b/framework/images/webapp/images/htmledit/ppt.gif deleted file mode 100644 index fa1d615226..0000000000 Binary files a/framework/images/webapp/images/htmledit/ppt.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/redo.gif b/framework/images/webapp/images/htmledit/redo.gif deleted file mode 100644 index 49c4376355..0000000000 Binary files a/framework/images/webapp/images/htmledit/redo.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/right.gif b/framework/images/webapp/images/htmledit/right.gif deleted file mode 100644 index f7e3044f80..0000000000 Binary files a/framework/images/webapp/images/htmledit/right.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/rtf.gif b/framework/images/webapp/images/htmledit/rtf.gif deleted file mode 100644 index f0c590a46c..0000000000 Binary files a/framework/images/webapp/images/htmledit/rtf.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/rule.gif b/framework/images/webapp/images/htmledit/rule.gif deleted file mode 100644 index a84cbfb411..0000000000 Binary files a/framework/images/webapp/images/htmledit/rule.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/spellcheck.gif b/framework/images/webapp/images/htmledit/spellcheck.gif deleted file mode 100644 index 6727c12efe..0000000000 Binary files a/framework/images/webapp/images/htmledit/spellcheck.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/table.gif b/framework/images/webapp/images/htmledit/table.gif deleted file mode 100644 index 98ee58ceb3..0000000000 Binary files a/framework/images/webapp/images/htmledit/table.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/table_in_cell.gif b/framework/images/webapp/images/htmledit/table_in_cell.gif deleted file mode 100644 index aceebba166..0000000000 Binary files a/framework/images/webapp/images/htmledit/table_in_cell.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/text.gif b/framework/images/webapp/images/htmledit/text.gif deleted file mode 100644 index 9cbdb3d343..0000000000 Binary files a/framework/images/webapp/images/htmledit/text.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/underline.gif b/framework/images/webapp/images/htmledit/underline.gif deleted file mode 100644 index 209f90e4d8..0000000000 Binary files a/framework/images/webapp/images/htmledit/underline.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/undo.gif b/framework/images/webapp/images/htmledit/undo.gif deleted file mode 100644 index 911c096af7..0000000000 Binary files a/framework/images/webapp/images/htmledit/undo.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/unknown.gif b/framework/images/webapp/images/htmledit/unknown.gif deleted file mode 100644 index 1212f30518..0000000000 Binary files a/framework/images/webapp/images/htmledit/unknown.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/web.gif b/framework/images/webapp/images/htmledit/web.gif deleted file mode 100644 index bae40594e9..0000000000 Binary files a/framework/images/webapp/images/htmledit/web.gif and /dev/null differ diff --git a/framework/images/webapp/images/htmledit/whizzywig.js b/framework/images/webapp/images/htmledit/whizzywig.js index d2e11593dc..a27a0078ca 100644 --- a/framework/images/webapp/images/htmledit/whizzywig.js +++ b/framework/images/webapp/images/htmledit/whizzywig.js @@ -1,59 +1,67 @@ -var whizzywig_version = 'Whizzywig v55i'; //IE color palette bug; idTa!=TA?x HTML + hidden; row/col bug; link form bugs;Enter =
; fix user but bug; -//Copyright � 2005-2007 John Goodman - john.goodman(at)unverse.net *date 070324 +var whizzywig_version='Whizzywig v59'; //briefer whereami, xC(); paNode=>pa; hilite in FF; whizzybrowse; +//Copyright © 2005-2009 John Goodman - www.unverse.net *date 091104 //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -var buttonPath; //path to toolbar button images; unset or "textbuttons" means don't use images -var buttonStrip=[]; //object containing button strip information (optional) +//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +var btn=[]; //object containing button strip information + btn._w=16; btn._h=16; btn._f="/images/htmledit/WhizzywigToolbar.png"; //set to path to toolbar image +var buttonPath; //path to custom toolbar button images; "textbuttons" means don't use images; default tries btn[_f] +var buttonExt; //extension (e.g. .png) for toolbar button images; default '.gif' var cssFile; //url of CSS stylesheet to attach to edit area var imageBrowse; //path to page for image browser var linkBrowse; //path to page for link browser -var idTa; //id of the textarea to whizzywig (param to makeWhizzyWig) -var gentleClean = "true"; //true: cleanUp preserves spans, inline styles and classes; false: deletes same; ask: asks. +var idTa; //id of the textarea (param to makeWhizzyWig) //OTHER GLOBALS -var oW, sel, rng, papa, trail, ppw; //Whizzy contentWindow, current sel, range, parent, DOM path, popwindow; -var sels = ''; -var buts = ''; -var vals = new Array(); -var opts = new Array(); -var dobut = new Array(); -var whizzies = new Array(); +var oW, sel, rng, papa, trail, ppw, wn=window; //Whizzy contentWindow, current sel, range, parent, DOM path, popwindow; +var sels=''; +var buts=''; +var vals=new Array(); +var opts=new Array(); +var dobut=new Array(); +var whizzies=new Array(); function makeWhizzyWig(txtArea, controls){ // make a WhizzyWig from the textarea - idTa = txtArea; + idTa=txtArea; whizzies[whizzies.length]=idTa; - if (!document.designMode) {// (Safari ???) + if (!document.designMode) { if (idTa.nodeName=="TEXTAREA") tagButs(); alert("Whizzywig "+t("editor not available for your browser")); return; } - var taContent = o(idTa).defaultValue ? o(idTa).defaultValue : o(idTa).innerHTML ? o(idTa).innerHTML: ''; //anything in the textarea? - if (!o(idTa).rows < 5) o(idTa).rows='15';//IE won't use % from style - taWidth = o(idTa).style.width ? o(idTa).style.width : o(idTa).cols + "ex"; //grab the width and... - taHeight = o(idTa).style.height ? o(idTa).style.height : o(idTa).rows + "em"; //...height from the textarea + var taContent=o(idTa).defaultValue ? o(idTa).defaultValue : o(idTa).innerHTML ? o(idTa).innerHTML: ''; //anything in the textarea? + //this line is commented as it is not allowing bigger textarea than rows + //if (!o(idTa).rows < 5) o(idTa).rows='15';//IE won't use % from style + taWidth=o(idTa).style.width ? o(idTa).style.width : o(idTa).cols + "ex"; //grab the width and... + taHeight=o(idTa).style.height ? o(idTa).style.height : o(idTa).rows + "em"; //...height from the textarea if (o(idTa).nodeName=="TEXTAREA"){ - o(idTa).style.color = '#060'; - o(idTa).style.zIndex = '2'; + o(idTa).style.color='#060'; + o(idTa).style.zIndex='2'; } else w(''); h(idTa); var frm=o(idTa).parentNode; while (frm.nodeName != 'FORM') frm=frm.parentNode;//if not form, keep trying addEvt(frm,"submit",syncTextarea); w(''); - var dsels = 'fontname fontsize formatblock'; - var dbuts = ' bold italic underline | left center right | number bullet indent outdent | undo redo | color hilite rule | link image table | word clean html spellcheck '; - var tbuts = ' tstart add_row_above add_row_below delete_row | add_column_before add_column_after delete_column | table_in_cell'; - var t_end = ''; //table controls end, if needed - controls = controls ? controls.toLowerCase() : "all"; - if (controls=="all") controls = dsels +' newline '+ dbuts + tbuts; + var dsels='formatblock'; + if (!navigator.userAgent.match('AppleWebKit')){dsels+=' fontname fontsize'} //Font u/s on Chrome/Safari + var dbuts=' bold italic underline | left center right justify | number bullet indent outdent | undo redo | color hilite rule | link image table | clean html spellcheck '; + btns=dbuts.split(' '); + for (var i=0, pos=0; i < btns.length; i++) { + if(btns[i] && btns[i]!='|') {btn[btns[i]]=btn._w*pos++}; + } + var tbuts=' tstart add_row_above add_row_below delete_row | add_column_before add_column_after delete_column | table_in_cell'; + var t_end=''; //table controls end, if needed + controls=controls ? controls.toLowerCase() : "all"; + if (controls == "all") controls=dsels +' newline '+ buts + dbuts + tbuts; else controls += tbuts; w('