details: https://code.openbravo.com/erp/devel/pi/rev/60405aa9fe81
changeset: 13678:60405aa9fe81
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Thu Sep 08 16:11:47 2011 +0200
summary: Modified jscheck to run jslint with all files in one shot
- Modified the test-compression.js file (not part of the running application)
diffstat:
modules/org.openbravo.client.kernel/jslint/jscheck
| 2 +-
modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js
| 19351 +++++++++-
2 files changed, 18907 insertions(+), 446 deletions(-)
diffs (truncated from 19365 to 300 lines):
diff -r 3ac8149413e1 -r 60405aa9fe81
modules/org.openbravo.client.kernel/jslint/jscheck
--- a/modules/org.openbravo.client.kernel/jslint/jscheck Wed Sep 07
18:20:50 2011 +0200
+++ b/modules/org.openbravo.client.kernel/jslint/jscheck Thu Sep 08
16:11:47 2011 +0200
@@ -4,4 +4,4 @@
-and ! -path '*qunit*' -and ! -path '*docs*' \
-and ! -path '*LAB*' -and ! -path '*benchmark*' \
-and ! -path '*smartclient*' \
--and ! -path '*scopeleaks*' | xargs -n1
./modules/org.openbravo.client.kernel/jslint/jslint || exit 1
+-and ! -path '*scopeleaks*' | xargs
./modules/org.openbravo.client.kernel/jslint/jslint || exit 1
diff -r 3ac8149413e1 -r 60405aa9fe81
modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js
---
a/modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js
Wed Sep 07 18:20:50 2011 +0200
+++
b/modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js
Thu Sep 08 16:11:47 2011 +0200
@@ -1,446 +1,18907 @@
-/************************************************************************************************************
-Context menu
-Copyright (C) 2006 DTHMLGoodies.com, Alf Magne Kalleland
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-Dhtmlgoodies.com., hereby disclaims all copyright interest in this script
-written by Alf Magne Kalleland.
-
-Alf Magne Kalleland, 2006
-Owner of DHTMLgoodies.com
-
-
-************************************************************************************************************/
-
-DHTMLGoodies_menuModel = function()
-{
- var menuItems;
- this.menuItems = new Array();
-
-
-}
-
-/************************************************************************************************************
-* DHTML menu model class
-*
-* Created: October, 30th,
2006
-* @class Purpose of class: Saves menu item data
-*
-*
-* Demos of this class: demo-menu-strip.html
-*
-* Update log:
-*
-************************************************************************************************************/
-
-
-/**
-* @constructor
-* @class Purpose of class: Organize menu items for different menu widgets.
demos of menus: (<a href="../../demos/demo-menu-strip.html"
target="_blank">Demo</a>)
-* @version 1.0
-* @author Alf Magne Kalleland(www.dhtmlgoodies.com)
-*/
-
-
-DHTMLGoodies_menuModel.prototype = {
- // {{{ addItem()
- /**
- * Add separator (special type of menu item)
- *
- * @param int id of menu item
- * @param string itemText = text of menu item
- * @param string itemIcon = file name of menu icon(in front of menu text.
Path will be imagePath for the DHTMLSuite + file name)
- * @param string url = Url of menu item
- * @param int parent id of menu item
- * @param String jsFunction Name of javascript function to execute. It
will replace the url param. The function with this name will be called and the
element triggering the action will be
- * sent as argument. Name of the element
which triggered the menu action may also be sent as a second argument. That
depends on the widget. The context menu is an example where
- * the element triggering the context menu
is sent as second argument to this function.
- *
- * @public
- */
- addItem : function(id,itemText,itemIcon,url,parentId,jsFunction)
- {
- this.menuItems[id] = new Array();
- this.menuItems[id]['id'] = id;
- this.menuItems[id]['itemText'] = itemText;
- this.menuItems[id]['itemIcon'] = itemIcon;
- this.menuItems[id]['url'] = url;
- this.menuItems[id]['parentId'] = parentId;
- this.menuItems[id]['separator'] = false;
- this.menuItems[id]['jsFunction'] = jsFunction;
-
- }
- ,
- // {{{ addSeparator()
- /**
- * Add separator (special type of menu item)
- *
- * @param int id of menu item
- * @param int parent id of menu item
- * @public
- */
- addSeparator : function(id,parentId)
- {
- this.menuItems[id] = new Array();
- this.menuItems[id]['parentId'] = parentId;
- this.menuItems[id]['separator'] = true;
- }
- ,
- // {{{ init()
- /**
- * Initilizes the menu model. This method should be called when all items
has been added to the model.
- *
- *
- * @public
- */
- init : function()
- {
- this.__getDepths();
-
- }
- // }}}
- ,
- // {{{ __getDepths()
- /**
- * Create variable for the depth of each menu item.
- *
- *
- * @private
- */
- getItems : function()
- {
- return this.menuItems;
- }
-
- ,
- // {{{ __getDepths()
- /**
- * Create variable for the depth of each menu item.
- *
- *
- * @private
- */
- __getDepths : function()
- {
- for(var no in this.menuItems){
- this.menuItems[no]['depth'] = 1;
- if(this.menuItems[no]['parentId']){
- this.menuItems[no]['depth'] =
this.menuItems[this.menuItems[no]['parentId']]['depth']+1;
- }
- }
- }
- ,
- // {{{ __hasSubs()
- /**
- * Does a menu item have sub elements ?
- *
- *
- * @private
- */
- // }}}
- __hasSubs : function(id)
- {
- for(var no in this.menuItems){ // Looping through menu items
- if(this.menuItems[no]['parentId']==id)return true;
- }
- return false;
- }
-
-
-}
-
-
-
-var referenceToDHTMLSuiteContextMenu;
-
-
-DHTMLGoodies_contextMenu = function()
-{
- var menuModels;
- var menuItems;
- var menuObject; // Reference to context menu div
- var layoutCSS;
- var menuUls; // Array of <ul> elements
- var width; // Width of context menu
- var srcElement; // Reference to the element which
triggered the context menu, i.e. the element which caused the context menu to
be displayed.
- var indexCurrentlyDisplayedMenuModel; // Index of currently displayed
menu model.
- var imagePath;
-
- this.menuModels = new Array();
- this.menuObject = false;
- this.menuUls = new Array();
- this.width = 100;
- this.srcElement = false;
- this.indexCurrentlyDisplayedMenuModel = false;
- this.imagePath = 'images/';
-
-
-}
-
-DHTMLGoodies_contextMenu.prototype =
-{
-
- setWidth : function(newWidth)
- {
- this.width = newWidth;
- }
- // }}}
- ,
- // {{{ setLayoutCss()
- /**
- * Add menu items
- *
- * @param String cssFileName Name of css file
- *
- * @public
- */
- setLayoutCss : function(cssFileName)
- {
- this.layoutCSS = cssFileName;
- }
- // }}}
- ,
- // {{{ attachToElement()
- /**
- * Add menu items
- *
- * @param Object HTML Element = Reference to html element
- * @param String elementId = String id of element(optional). An
alternative to HTML Element
- *
- * @public
- */
- attachToElement : function(element,elementId,menuModel)
- {
- window.refToThisContextMenu = this;
- if(!element && elementId)element =
document.getElementById(elementId);
- if(!element.id){
- element.id = 'context_menu' + Math.random();
- element.id = element.id.replace('.','');
- }
- this.menuModels[element.id] = menuModel;
- element.oncontextmenu = this.__displayContextMenu;
- //element.onmousedown = function() {
window.refToThisContextMenu.__setReference(window.refToThisContextMenu); };
- document.documentElement.onclick = this.__hideContextMenu;
-
- }
- // }}}
- ,
- // {{{ __setReference()
- /**
- * Creates a reference to current context menu object. (Note: This method
should be deprecated as only one context menu object is needed)
- *
- * @param Object context menu object = Reference to context menu object
- *
- * @private
- */
- __setReference : function(obj)
- {
- referenceToDHTMLSuiteContextMenu = obj;
- }
- ,
- // {{{ __displayContextMenu()
- /**
- * Displays the context menu
- *
- * @param Event e
- *
- * @private
- */
- __displayContextMenu : function(e)
- {
- if(document.all)e = event;
- var ref = referenceToDHTMLSuiteContextMenu;
- ref.srcElement = ref.getSrcElement(e);
-
- if(!ref.indexCurrentlyDisplayedMenuModel ||
ref.indexCurrentlyDisplayedMenuModel!=this.id){
-
- if(ref.indexCurrentlyDisplayedMenuModel){
- ref.menuObject.innerHTML = '';
- }else{
- ref.__createDivs();
- }
- ref.menuItems = ref.menuModels[this.id].getItems();
- ref.__createMenuItems();
- }
- ref.indexCurrentlyDisplayedMenuModel=this.id;
-
- ref.menuObject.style.left = (e.clientX +
Math.max(document.body.scrollLeft,document.documentElement.scrollLeft)) + 'px';
- ref.menuObject.style.top = (e.clientY +
Math.max(document.body.scrollTop,document.documentElement.scrollTop)) + 'px';
- ref.menuObject.style.display='block';
- return false;
-
- }
- // }}}
- ,
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits