partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4b7b175a287c664ff6705066827062d7c2a0b301
parent 47f4dfa1cb3e483507cedcec4a274ef2020b4352
Author: Timo A. Hummel <timo@netraver.de>
Date:   Thu, 26 May 2011 01:33:06 +0200

Fixed most javascript warnings from jslint

Diffstat:
Mfrontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryComboBox.js | 6+++---
Mfrontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryEditor.js | 10+++++-----
Mfrontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryWidget.js | 14++++----------
Mfrontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerDetails.js | 4++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerList.js | 8++++----
Mfrontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerWindow.js | 4++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerListGrid.js | 8++++----
Mfrontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerManagerDetails.js | 4++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerManagerWindow.js | 4++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerAddPartForm.js | 23+++++++++++------------
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerListGrid.js | 6+++---
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerPartDetail.js | 2+-
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerTree.js | 2+-
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerWindow.js | 6+++---
Mfrontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationListGrid.js | 8++++----
Mfrontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationManagerDetails.js | 4++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationManagerWindow.js | 4++--
Mfrontend/js/org.jerrymouse.components/Statusbar.js | 6+++---
Mfrontend/js/org.jerrymouse.components/statusbar/ConnectionButton.js | 4++--
Mfrontend/js/org.jerrymouse.components/statusbar/TimeDisplay.js | 6+++---
Mfrontend/js/org.jerrymouse.gui.login/login.js | 4++--
Mfrontend/js/org.jerrymouse.gui.widgets/LanguageChooser.js | 4++--
Mfrontend/js/org.jerrymouse.gui.widgets/contexthelp.js | 46+++++-----------------------------------------
Mfrontend/js/org.jerrymouse.gui.widgets/menuitem.js | 2+-
Mfrontend/js/org.jerrymouse.lang/ArbitraryStorableObject.js | 2+-
Mfrontend/js/org.jerrymouse.lang/Datatype.js | 2+-
Mfrontend/js/org.jerrymouse.lang/HashedString.js | 2+-
Mfrontend/js/org.jerrymouse.lang/Map.js | 2+-
Mfrontend/js/org.jerrymouse.lang/String.js | 2+-
Mfrontend/js/org.jerrymouse.lang/Vector.js | 2+-
Mfrontend/js/org.jerrymouse.service/ServiceCall.js | 8++++----
Mfrontend/js/org.jerrymouse.service/ServiceCallDataProxy.js | 3+--
Mfrontend/js/org.jerrymouse.util.locale/locale.js | 14+++++++-------
33 files changed, 91 insertions(+), 135 deletions(-)

diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryComboBox.js b/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryComboBox.js @@ -15,7 +15,7 @@ de.RaumZeitLabor.PartDB2.CategoryComboBox = Ext.extend(Ext.form.ComboBox, { this.treeDivId = Ext.id(); - this.tpl = '<tpl for="."><div id="'+this.treeDivId+'" style="overflow: auto;"></div></tpl>', + this.tpl = '<tpl for="."><div id="'+this.treeDivId+'" style="overflow: auto;"></div></tpl>'; this.store = new Ext.data.SimpleStore({fields:[],data:[[]]}); @@ -46,7 +46,7 @@ de.RaumZeitLabor.PartDB2.CategoryComboBox = Ext.extend(Ext.form.ComboBox, { this.disabledNode.enable(); } - var node = obj.getRootNode().findChild("id", this.categoryId, true); + node = obj.getRootNode().findChild("id", this.categoryId, true); if (node) { this.disabledNode = node; @@ -77,7 +77,7 @@ de.RaumZeitLabor.PartDB2.CategoryComboBox = Ext.extend(Ext.form.ComboBox, { this.disabledNode.enable(); } - var node = this.tree.getRootNode().findChild("id", this.categoryId, true); + node = this.tree.getRootNode().findChild("id", this.categoryId, true); if (node) { this.disabledNode = node; diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryEditor.js b/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryEditor.js @@ -9,7 +9,7 @@ de.RaumZeitLabor.PartDB2.CategoryEditor = Ext.extend(Ext.form.FormPanel, { this.categoryComboBox = new de.RaumZeitLabor.PartDB2.CategoryComboBox({ fieldLabel: '$[de.RaumZeitLabor.PartDB2.CategoryEditor.parentCategory]', name: 'parent', - anchor: '100%', + anchor: '100%' }); Ext.apply(this, { @@ -47,7 +47,7 @@ de.RaumZeitLabor.PartDB2.CategoryEditor = Ext.extend(Ext.form.FormPanel, { this.categoryComboBox.categoryId = id; }, createCategory: function () { - this.getForm().setValues({name: "", description: "", parent: 0}) + this.getForm().setValues({name: "", description: "", parent: 0}); this.setCategoryId(null); var node = Ext.getCmp("parts-tree").getSelectionModel().getSelectedNode(); @@ -70,14 +70,14 @@ de.RaumZeitLabor.PartDB2.CategoryEditor = Ext.extend(Ext.form.FormPanel, { "getCategory"); call.setParameter("id", this.categoryId); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.CategoryEditor.loadCategory]'); - call.setHandler(this.onCategoryLoaded.createDelegate(this)) + call.setHandler(this.onCategoryLoaded.createDelegate(this)); call.doCall(); }, saveCategory: function () { var sCall; - if (this.categoryId == null) { + if (this.categoryId === null) { sCall = "addCategory"; } else { sCall = "saveCategory"; @@ -93,7 +93,7 @@ de.RaumZeitLabor.PartDB2.CategoryEditor = Ext.extend(Ext.form.FormPanel, { call.setParameter("id", this.categoryId); call.setParameters(parameters); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.CategoryEditor.saveCategory]'); - call.setHandler(this.onCategorySaved.createDelegate(this)) + call.setHandler(this.onCategorySaved.createDelegate(this)); call.doCall(); }, onCategorySaved: function (response) { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryWidget.js b/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryWidget.js @@ -18,11 +18,8 @@ de.RaumZeitLabor.PartDB2.CategoryEditor.CategoryWidget = Ext.extend(Ext.tree.Tre rootVisible : true }); - de.RaumZeitLabor.PartDB2.PartsManagerTree.superclass.initComponent - .call(this); + de.RaumZeitLabor.PartDB2.PartsManagerTree.superclass.initComponent.call(this); - /*this.getSelectionModel().on("selectionchange", - this.onSelectionChange.createDelegate(this));*/ this.loadTree(); }, @@ -30,10 +27,8 @@ de.RaumZeitLabor.PartDB2.CategoryEditor.CategoryWidget = Ext.extend(Ext.tree.Tre var call = new org.jerrymouse.service.Call( "de.RaumZeitLabor.PartDB2.Category.CategoryManagerService", "getAllCategories"); - call - .setLoadMessage('$[de.RaumZeitLabor.PartDB2.CategoryEditor.loadCategories]'); - call.setHandler(this.onCategoriesLoaded - .createDelegate(this)) + call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.CategoryEditor.loadCategories]'); + call.setHandler(this.onCategoriesLoaded.createDelegate(this)); call.doCall(); }, onCategoriesLoaded: function (result) { @@ -54,8 +49,7 @@ de.RaumZeitLabor.PartDB2.CategoryEditor.CategoryWidget = Ext.extend(Ext.tree.Tre }); for ( var i = 0; i < data.children.length; i++) { - node.appendChild(this - .buildCategoryTree(data.children[i])); + node.appendChild(this.buildCategoryTree(data.children[i])); } return node; diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerDetails.js b/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerDetails.js @@ -44,7 +44,7 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerDetails = Ext.extend(Ext.form.FormPanel "getFootprint"); call.setParameter("id", this.footprintId); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.FootPrintManager.loadFootprint]'); - call.setHandler(this.onFootprintLoaded.createDelegate(this)) + call.setHandler(this.onFootprintLoaded.createDelegate(this)); call.doCall(); }, saveFootprint: function () { @@ -54,7 +54,7 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerDetails = Ext.extend(Ext.form.FormPanel call.setParameter("id", this.footprintId); call.setParameters(this.getForm().getValues()); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.FootPrintManager.saveFootprint]'); - call.setHandler(this.onFootprintSaved.createDelegate(this)) + call.setHandler(this.onFootprintSaved.createDelegate(this)); call.doCall(); }, onFootprintSaved: function (response) { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerList.js b/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerList.js @@ -55,7 +55,7 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerList = Ext.extend(Ext.grid.GridPanel, { columns: [ {header: '$[de.RaumZeitLabor.PartDB2.FootPrintManager.footprint]', dataIndex: 'footprint', id: 'footprint'} - ], + ] }), tbar: { @@ -114,7 +114,7 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerList = Ext.extend(Ext.grid.GridPanel, { Ext.getCmp("footprint-details").editFootprint(record.get("id")); }, onFootprintSelectionChange: function (sm) { - if (sm.getCount() == 0) { + if (sm.getCount() === 0) { Ext.getCmp("footprint-delete-button").disable(); } }, @@ -134,7 +134,7 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerList = Ext.extend(Ext.grid.GridPanel, { "deleteFootprint"); call.setParameter("id", record.get("id")); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.FootPrintManager.deleteFootprint]'); - call.setHandler(this.onFootprintDeleted.createDelegate(this)) + call.setHandler(this.onFootprintDeleted.createDelegate(this)); call.doCall(); } }.createDelegate(this)); @@ -147,7 +147,7 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerList = Ext.extend(Ext.grid.GridPanel, { "addFootprint"); call.setParameter("footprint", text); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.FootPrintManager.addFootprint]'); - call.setHandler(this.onFootprintAdded.createDelegate(this)) + call.setHandler(this.onFootprintAdded.createDelegate(this)); call.doCall(); } }.createDelegate(this)); diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerWindow.js b/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerWindow.js @@ -43,5 +43,4 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerWindow = Ext.extend(org.jerrymouse.gui. de.RaumZeitLabor.PartDB2.FootPrintManagerWindow.handler = function () { var footPrintManager = new de.RaumZeitLabor.PartDB2.FootPrintManagerWindow(); footPrintManager.show(); -} - +};+ \ No newline at end of file diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerListGrid.js b/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerListGrid.js @@ -54,7 +54,7 @@ de.RaumZeitLabor.PartDB2.ManufacturerListGrid = Ext.extend(Ext.grid.GridPanel, { columns: [ {header: '$[de.RaumZeitLabor.PartDB2.ManufacturerManager.name]', dataIndex: 'name', id: 'name'} - ], + ] }), tbar: { @@ -113,7 +113,7 @@ de.RaumZeitLabor.PartDB2.ManufacturerListGrid = Ext.extend(Ext.grid.GridPanel, { Ext.getCmp("manufacturer-details").editManufacturer(record.get("id")); }, onManufacturerSelectionChange: function (sm) { - if (sm.getCount() == 0) { + if (sm.getCount() === 0) { Ext.getCmp("manufacturer-delete-button").disable(); } }, @@ -133,7 +133,7 @@ de.RaumZeitLabor.PartDB2.ManufacturerListGrid = Ext.extend(Ext.grid.GridPanel, { "deleteManufacturer"); call.setParameter("id", record.get("id")); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.ManufacturerManager.deleteManufacturer]'); - call.setHandler(this.onManufacturerDeleted.createDelegate(this)) + call.setHandler(this.onManufacturerDeleted.createDelegate(this)); call.doCall(); } }.createDelegate(this)); @@ -149,7 +149,7 @@ de.RaumZeitLabor.PartDB2.ManufacturerListGrid = Ext.extend(Ext.grid.GridPanel, { "addManufacturer"); call.setParameter("name", text); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.ManufacturerManager.addManufacturer]'); - call.setHandler(this.onManufacturerAdded.createDelegate(this)) + call.setHandler(this.onManufacturerAdded.createDelegate(this)); call.doCall(); } }.createDelegate(this)); diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerManagerDetails.js b/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerManagerDetails.js @@ -41,7 +41,7 @@ de.RaumZeitLabor.PartDB2.ManufacturerManagerDetails = Ext.extend(Ext.form.FormPa "getManufacturer"); call.setParameter("id", this.storageLocationId); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.ManufacturerManager.loadManufacturer]'); - call.setHandler(this.onManufacturerLoaded.createDelegate(this)) + call.setHandler(this.onManufacturerLoaded.createDelegate(this)); call.doCall(); }, saveManufacturer: function () { @@ -51,7 +51,7 @@ de.RaumZeitLabor.PartDB2.ManufacturerManagerDetails = Ext.extend(Ext.form.FormPa call.setParameter("id", this.storageLocationId); call.setParameters(this.getForm().getValues()); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.ManufacturerManager.saveManufacturer]'); - call.setHandler(this.onManufacturerSaved.createDelegate(this)) + call.setHandler(this.onManufacturerSaved.createDelegate(this)); call.doCall(); }, onManufacturerSaved: function (response) { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerManagerWindow.js b/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerManagerWindow.js @@ -33,5 +33,4 @@ de.RaumZeitLabor.PartDB2.ManufacturerManagerWindow = Ext.extend(org.jerrymouse.g de.RaumZeitLabor.PartDB2.ManufacturerManagerWindow.handler = function () { var manufacturerManager = new de.RaumZeitLabor.PartDB2.ManufacturerManagerWindow(); manufacturerManager.show(); -} - +};+ \ No newline at end of file diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerAddPartForm.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerAddPartForm.js @@ -34,16 +34,16 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel anchor: '100%', style: 'margin-bottom: 8px;', validator: function (value) { - if (value == "") { + if (value === "") { return "Es muß eine Kategorie ausgewählt werden"; } return true; - }.createDelegate(this), + }.createDelegate(this) }); this.commentField = new Ext.form.TextArea({ fieldLabel: 'Kommentar', - anchor: '100%', + anchor: '100%' }); this.partQuantityDisplay = new Ext.form.DisplayField({ @@ -79,7 +79,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel valueField: "id", fieldLabel: "Lagerort", validator: function (value) { - if (value == "") { + if (value === "") { return "Ein Lagerort muß ausgewählt oder eingegeben werden"; } @@ -198,8 +198,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel this.buttons = [ this.addButton, - this.cancelButton, - + this.cancelButton ]; this.addEvents("cancelEntry", "partLoaded", "partSaved"); @@ -239,10 +238,10 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel "addOrUpdatePart"); if (this.mode == "edit") { - call.setParameter("part", this.partId) + call.setParameter("part", this.partId); } - call.setParameter("category", this.categoryComboBox.parentId) + call.setParameter("category", this.categoryComboBox.parentId); call.setParameter("name", this.partName.getValue()); call.setParameter("quantity", this.partQuantity.getValue()); call.setParameter("minstock", this.partMinStock.getValue()); @@ -252,7 +251,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel call.setParameter("footprint", this.footprintCombo.getValue()); call.setParameter("comment", this.commentField.getValue()); - call.setHandler(this.onPartAdded.createDelegate(this)) + call.setHandler(this.onPartAdded.createDelegate(this)); call.doCall(); } }, @@ -263,7 +262,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel return this.partStorageLocation.store.getAt(idx).get("id"); } - var idx = this.partStorageLocation.store.findExact("name", this.partStorageLocation.getValue()); + idx = this.partStorageLocation.store.findExact("name", this.partStorageLocation.getValue()); if (idx !== -1) { return this.partStorageLocation.store.getAt(idx).get("id"); @@ -278,7 +277,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel return this.manufacturerCombo.store.getAt(idx).get("id"); } - var idx = this.manufacturerCombo.store.findExact("name", this.manufacturerCombo.getValue()); + idx = this.manufacturerCombo.store.findExact("name", this.manufacturerCombo.getValue()); if (idx !== -1) { return this.manufacturerCombo.store.getAt(idx).get("id"); @@ -362,7 +361,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel this.manufacturerCombo.setRawValue(""); this.commentField.setRawValue(""); - if (this.keepStorageLocation.getValue() !== true || force == true) + if (this.keepStorageLocation.getValue() !== true || force === true) { this.partStorageLocation.setRawValue(""); } diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerListGrid.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerListGrid.js @@ -11,8 +11,8 @@ de.RaumZeitLabor.PartDB2.PartsManagerListGrid = Ext.extend(Ext.grid.GridPanel, { columns: [ {header: 'Name', dataIndex: 'name', width: 300}, {header: 'Lagerort', dataIndex: 'storagelocation', width: 100}, - {header: 'Stück', dataIndex: 'stockLevel', width: 100}, - ], + {header: 'Stück', dataIndex: 'stockLevel', width: 100} + ] }); var pageSize = 15; @@ -146,7 +146,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerListGrid = Ext.extend(Ext.grid.GridPanel, { this.limitCategory = category; }, onSelectionChange: function () { - if (this.getSelectionModel().getCount() == 0) { + if (this.getSelectionModel().getCount() === 0) { this.editPartButton.disable(); this.deletePartButton.disable(); } else { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerPartDetail.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerPartDetail.js @@ -105,7 +105,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerPartDetail = Ext.extend(Ext.TabPanel, { "getPart"); call.setParameter("part", id); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.CategoryEditor.loadCategories]'); - call.setHandler(this.onPartLoaded.createDelegate(this)) + call.setHandler(this.onPartLoaded.createDelegate(this)); call.doCall(); }, onPartLoaded: function (response) { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerTree.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerTree.js @@ -100,7 +100,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerTree = Ext.extend(Ext.tree.TreePanel, { "de.RaumZeitLabor.PartDB2.Category.CategoryManagerService", "getAllCategories"); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.CategoryEditor.loadCategories]'); - call.setHandler(this.onCategoriesLoaded.createDelegate(this)) + call.setHandler(this.onCategoriesLoaded.createDelegate(this)); call.doCall(); }, onCategoriesLoaded: function (result) { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerWindow.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerWindow.js @@ -23,7 +23,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerWindow = Ext.extend(org.jerrymouse.gui.widg this.partsList.getSelectionModel().on("rowselect", this.onPartSelect.createDelegate(this)); this.partsList.getSelectionModel().on("selectionchange", function (sm) { - if (sm.getCount() == 0) { + if (sm.getCount() === 0) { this.partsDetail.hide(); } else { this.partsDetail.show(); @@ -81,5 +81,4 @@ de.RaumZeitLabor.PartDB2.PartsManagerWindow = Ext.extend(org.jerrymouse.gui.widg de.RaumZeitLabor.PartDB2.PartsManagerWindow.handler = function () { var partsManager = new de.RaumZeitLabor.PartDB2.PartsManagerWindow({id: 'parts-manager-window'}); partsManager.show(); -} - +};+ \ No newline at end of file diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationListGrid.js b/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationListGrid.js @@ -54,7 +54,7 @@ de.RaumZeitLabor.PartDB2.StorageLocationListGrid = Ext.extend(Ext.grid.GridPanel columns: [ {header: '$[de.RaumZeitLabor.PartDB2.StorageLocationManager.name]', dataIndex: 'name', id: 'name'} - ], + ] }), tbar: { @@ -113,7 +113,7 @@ de.RaumZeitLabor.PartDB2.StorageLocationListGrid = Ext.extend(Ext.grid.GridPanel Ext.getCmp("storagelocation-details").editStorageLocation(record.get("id")); }, onStorageLocationSelectionChange: function (sm) { - if (sm.getCount() == 0) { + if (sm.getCount() === 0) { Ext.getCmp("storagelocation-delete-button").disable(); } }, @@ -133,7 +133,7 @@ de.RaumZeitLabor.PartDB2.StorageLocationListGrid = Ext.extend(Ext.grid.GridPanel "deleteStorageLocation"); call.setParameter("id", record.get("id")); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.StorageLocationManager.deleteStorageLocation]'); - call.setHandler(this.onStorageLocationDeleted.createDelegate(this)) + call.setHandler(this.onStorageLocationDeleted.createDelegate(this)); call.doCall(); } }.createDelegate(this)); @@ -149,7 +149,7 @@ de.RaumZeitLabor.PartDB2.StorageLocationListGrid = Ext.extend(Ext.grid.GridPanel "addStorageLocation"); call.setParameter("name", text); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.StorageLocationManager.addStorageLocation]'); - call.setHandler(this.onStorageLocationAdded.createDelegate(this)) + call.setHandler(this.onStorageLocationAdded.createDelegate(this)); call.doCall(); } }.createDelegate(this)); diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationManagerDetails.js b/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationManagerDetails.js @@ -41,7 +41,7 @@ de.RaumZeitLabor.PartDB2.StorageLocationManagerDetails = Ext.extend(Ext.form.For "getStorageLocation"); call.setParameter("id", this.storageLocationId); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.StorageLocationManager.loadStorageLocation]'); - call.setHandler(this.onStorageLocationLoaded.createDelegate(this)) + call.setHandler(this.onStorageLocationLoaded.createDelegate(this)); call.doCall(); }, saveStorageLocation: function () { @@ -51,7 +51,7 @@ de.RaumZeitLabor.PartDB2.StorageLocationManagerDetails = Ext.extend(Ext.form.For call.setParameter("id", this.storageLocationId); call.setParameters(this.getForm().getValues()); call.setLoadMessage('$[de.RaumZeitLabor.PartDB2.StorageLocationManager.saveStorageLocation]'); - call.setHandler(this.onStorageLocationSaved.createDelegate(this)) + call.setHandler(this.onStorageLocationSaved.createDelegate(this)); call.doCall(); }, onStorageLocationSaved: function (response) { diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationManagerWindow.js b/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationManagerWindow.js @@ -33,5 +33,4 @@ de.RaumZeitLabor.PartDB2.StorageLocationManagerWindow = Ext.extend(org.jerrymous de.RaumZeitLabor.PartDB2.StorageLocationManagerWindow.handler = function () { var storageLocationManager = new de.RaumZeitLabor.PartDB2.StorageLocationManagerWindow(); storageLocationManager.show(); -} - +};+ \ No newline at end of file diff --git a/frontend/js/org.jerrymouse.components/Statusbar.js b/frontend/js/org.jerrymouse.components/Statusbar.js @@ -68,7 +68,7 @@ org.jerrymouse.components.Statusbar = Ext.extend(Ext.ux.StatusBar, { obj.setText(obj.text); }, startLoad: function (message) { - if (message != null) { + if (message !== null) { this.showBusy({text: message, iconCls: "x-status-busy"}); } else { this.showBusy(); @@ -83,4 +83,4 @@ org.jerrymouse.components.Statusbar = Ext.extend(Ext.ux.StatusBar, { }); -Ext.reg('org.jerrymouse.components.Statusbar', org.jerrymouse.components.Statusbar)- \ No newline at end of file +Ext.reg('org.jerrymouse.components.Statusbar', org.jerrymouse.components.Statusbar);+ \ No newline at end of file diff --git a/frontend/js/org.jerrymouse.components/statusbar/ConnectionButton.js b/frontend/js/org.jerrymouse.components/statusbar/ConnectionButton.js @@ -41,4 +41,4 @@ org.jerrymouse.components.statusbar.ConnectionButton = Ext.extend(Ext.Button, { } }); -Ext.reg('org.jerrymouse.components.statusbar.ConnectionButton', org.jerrymouse.components.statusbar.ConnectionButton)- \ No newline at end of file +Ext.reg('org.jerrymouse.components.statusbar.ConnectionButton', org.jerrymouse.components.statusbar.ConnectionButton);+ \ No newline at end of file diff --git a/frontend/js/org.jerrymouse.components/statusbar/TimeDisplay.js b/frontend/js/org.jerrymouse.components/statusbar/TimeDisplay.js @@ -25,7 +25,7 @@ org.jerrymouse.components.statusbar.TimeDisplay = function (t) { this.el = s; org.jerrymouse.components.statusbar.TimeDisplay.superclass.constructor.call(this, s); -} +}; Ext.extend(org.jerrymouse.components.statusbar.TimeDisplay, Ext.Toolbar.TextItem, { el: null, @@ -44,4 +44,4 @@ Ext.extend(org.jerrymouse.components.statusbar.TimeDisplay, Ext.Toolbar.TextItem } }); -Ext.reg('org.jerrymouse.components.statusbar.TimeDisplay', org.jerrymouse.components.statusbar.TimeDisplay)- \ No newline at end of file +Ext.reg('org.jerrymouse.components.statusbar.TimeDisplay', org.jerrymouse.components.statusbar.TimeDisplay);+ \ No newline at end of file diff --git a/frontend/js/org.jerrymouse.gui.login/login.js b/frontend/js/org.jerrymouse.gui.login/login.js @@ -72,7 +72,7 @@ org.jerrymouse.gui.login.dialog = Ext.extend(org.jerrymouse.gui.widgets.window, icon: 'resources/silkicons/cancel.png' }, '->', { xtype: 'org.jerrymouse.gui.widgets.LanguageChooser', - helpId: 'org.jerrymouse.gui.login.languagechooser', + helpId: 'org.jerrymouse.gui.login.languagechooser' }] }); @@ -90,7 +90,7 @@ org.jerrymouse.gui.login.dialog = Ext.extend(org.jerrymouse.gui.widgets.window, call.setParameter("password", md5(this.passwordField.getValue())); call.setLoadMessage('$[org.jerrymouse.gui.login.login_loading_message]'); call.setAnonymous(true); - call.setHandler(this.onLogin.createDelegate(this)) + call.setHandler(this.onLogin.createDelegate(this)); call.doCall(); }, onLogin: function (obj) { diff --git a/frontend/js/org.jerrymouse.gui.widgets/LanguageChooser.js b/frontend/js/org.jerrymouse.gui.widgets/LanguageChooser.js @@ -53,4 +53,4 @@ org.jerrymouse.gui.widgets.LanguageChooser = Ext.extend(Ext.Button, { }); -Ext.reg('org.jerrymouse.gui.widgets.LanguageChooser', org.jerrymouse.gui.widgets.LanguageChooser)- \ No newline at end of file +Ext.reg('org.jerrymouse.gui.widgets.LanguageChooser', org.jerrymouse.gui.widgets.LanguageChooser);+ \ No newline at end of file diff --git a/frontend/js/org.jerrymouse.gui.widgets/contexthelp.js b/frontend/js/org.jerrymouse.gui.widgets/contexthelp.js @@ -18,7 +18,7 @@ Ext.ns("org.jerrymouse.gui.contexthelp"); org.jerrymouse.gui.contexthelp.handler = function () { Ext.setContextHelp(); -} +}; Ext.setContextHelp = function () { this.contextHelp = true; @@ -37,15 +37,15 @@ Ext.setContextHelp = function () { }.createDelegate(layer)); layer.show(); -} +}; Ext.unsetContextHelp = function () { this.contextHelp = false; -} +}; Ext.isContextHelp = function () { return this.contextHelp; -} +}; Ext.displayHelpForCoordinates = function (xy) { var point = new Ext.lib.Point(xy[0], xy[1]); @@ -87,43 +87,7 @@ Ext.displayHelpForCoordinates = function (xy) { } return true; }); -} - -function str_replace(search, replace, subject) { - // Replaces all occurrences of search in haystack with replace - // - // version: 903.421 - // discuss at: http://phpjs.org/functions/str_replace - // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) - // + improved by: Gabriel Paderni - // + improved by: Philip Peterson - // + improved by: Simon Willison (http://simonwillison.net) - // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) - // + bugfixed by: Anton Ongson - // + input by: Onno Marsman - // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) - // + tweaked by: Onno Marsman - // + input by: Brett Zamir - // + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) - // * example 1: str_replace(' ', '.', 'Kevin van Zonneveld'); - // * returns 1: 'Kevin.van.Zonneveld' - // * example 2: str_replace(['{name}', 'l'], ['hello', 'm'], '{name}, lars'); - // * returns 2: 'hemmo, mars' - var s = subject; - var ra = r instanceof Array, sa = s instanceof Array; - var f = [].concat(search); - var r = [].concat(replace); - var i = (s = [].concat(s)).length; - var j = 0; - - while (j = 0, i--) { - if (s[i]) { - while (s[i] = (s[i]+'').split(f[j]).join(ra ? r[j] || "" : r[0]), ++j in f){}; - } - } - - return sa ? s : s[0]; -} +}; diff --git a/frontend/js/org.jerrymouse.gui.widgets/menuitem.js b/frontend/js/org.jerrymouse.gui.widgets/menuitem.js @@ -49,6 +49,6 @@ Ext.override(Ext.menu.Item, { }, onLocaleChange: function (obj) { - obj.setText(obj.text) + obj.setText(obj.text); } }); \ No newline at end of file diff --git a/frontend/js/org.jerrymouse.lang/ArbitraryStorableObject.js b/frontend/js/org.jerrymouse.lang/ArbitraryStorableObject.js @@ -20,7 +20,7 @@ org.jerrymouse.lang.ArbitraryStorableObject = function (type) { this.attributes = new org.jerrymouse.lang.Map(); this.refLists = new org.jerrymouse.lang.Map(); this.objLists = new org.jerrymouse.lang.Map(); -} +}; Ext.extend(org.jerrymouse.lang.ArbitraryStorableObject, org.jerrymouse.lang.Object, { revision: null, diff --git a/frontend/js/org.jerrymouse.lang/Datatype.js b/frontend/js/org.jerrymouse.lang/Datatype.js @@ -16,7 +16,7 @@ Ext.ns("org.jerrymouse.lang"); org.jerrymouse.lang.Datatype = function () { -} +}; Ext.extend(org.jerrymouse.lang.Datatype, org.jerrymouse.lang.Object, { setValue: function (value) { diff --git a/frontend/js/org.jerrymouse.lang/HashedString.js b/frontend/js/org.jerrymouse.lang/HashedString.js @@ -16,7 +16,7 @@ Ext.ns("org.jerrymouse.lang"); org.jerrymouse.lang.HashedString = function (string) { this.value = SHA1(string); -} +}; Ext.extend(org.jerrymouse.lang.HashedString, org.jerrymouse.lang.String, { getClassType: function () { diff --git a/frontend/js/org.jerrymouse.lang/Map.js b/frontend/js/org.jerrymouse.lang/Map.js @@ -16,7 +16,7 @@ Ext.ns("org.jerrymouse.lang"); org.jerrymouse.lang.Map = function () { this.data = {}; -} +}; Ext.extend(org.jerrymouse.lang.Map, org.jerrymouse.lang.Object, { data: null, diff --git a/frontend/js/org.jerrymouse.lang/String.js b/frontend/js/org.jerrymouse.lang/String.js @@ -16,7 +16,7 @@ Ext.ns("org.jerrymouse.lang"); org.jerrymouse.lang.String = function (string) { this.value = string; -} +}; Ext.extend(org.jerrymouse.lang.String, org.jerrymouse.lang.Datatype, { value: "", diff --git a/frontend/js/org.jerrymouse.lang/Vector.js b/frontend/js/org.jerrymouse.lang/Vector.js @@ -16,7 +16,7 @@ Ext.ns("org.jerrymouse.lang"); org.jerrymouse.lang.Vector = function () { this.data = []; -} +}; Ext.extend(org.jerrymouse.lang.Vector, org.jerrymouse.lang.Object, { data: null, diff --git a/frontend/js/org.jerrymouse.service/ServiceCall.js b/frontend/js/org.jerrymouse.service/ServiceCall.js @@ -18,7 +18,7 @@ org.jerrymouse.service.Call = function (service, call) { this.setService(service); this.setCall(call); this.parameters = {}; -} +}; Ext.extend(org.jerrymouse.service.Call, Ext.util.Observable, { service: null, @@ -73,10 +73,10 @@ Ext.extend(org.jerrymouse.service.Call, Ext.util.Observable, { params: mp }); }, - onSuccess: function (response) { + onSuccess: function (responseObj) { Ext.getCmp("jm-statusbar").endLoad(); - var response = Ext.decode(response.responseText); + var response = Ext.decode(responseObj.responseText); /* Check the status */ @@ -103,7 +103,7 @@ Ext.extend(org.jerrymouse.service.Call, Ext.util.Observable, { displayError: function (obj) { var errorMsg; - if (obj.message == "") { + if (obj.message === "") { errorMsg = obj.exception; } else { errorMsg = obj.message; diff --git a/frontend/js/org.jerrymouse.service/ServiceCallDataProxy.js b/frontend/js/org.jerrymouse.service/ServiceCallDataProxy.js @@ -102,8 +102,7 @@ Ext.extend(ServiceCallDataProxy, Ext.data.DataProxy, { return; } callback.call(scope, result, arg, true); - }.createDelegate(this) - ); + }.createDelegate(this)); this.call.doCall(); } diff --git a/frontend/js/org.jerrymouse.util.locale/locale.js b/frontend/js/org.jerrymouse.util.locale/locale.js @@ -20,19 +20,19 @@ Ext.setLocale = function (locale) { item.onLocaleChange(item); } }); -} +}; Ext.getLocale = function () { return Ext.jm_locale; -} +}; Ext.getLocaleFlag = function () { return locales[Ext.jm_locale].flag; -} +}; Ext.getDateFormat = function () { return locales[Ext.jm_locale].dateformat; -} +}; Ext.replaceLocaleTags = function (string) { var regexp = /\$\[(.+?)\]/g; @@ -45,8 +45,8 @@ Ext.replaceLocaleTags = function (string) { } return workingCopy; -} +}; Ext.replaceString = function (search, replace, subject) { return subject.split(search).join(replace); -}- \ No newline at end of file +};+ \ No newline at end of file