commit 188395ed782e3832eb944d7ca40304752ffcc52b
parent 7d9e1bae848324144f7b6a8049c0f177413653dd
Author: Felicitus <felicitus@felicitus.org>
Date: Tue, 5 Jul 2011 06:42:22 +0200
Fixed some jslint warnings
Diffstat:
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/frontend/js/Components/Editor/Editor.js b/frontend/js/Components/Editor/Editor.js
@@ -99,7 +99,7 @@ Ext.define('PartKeepr.Editor', {
});
},
_onSave: function (record, response) {
- if (response.success == true) {
+ if (response.success === true) {
this.record = record;
this.fireEvent("itemSaved", this.record);
}
@@ -107,4 +107,4 @@ Ext.define('PartKeepr.Editor', {
_setTitle: function (title) {
this.setTitle(title);
}
-});-
\ No newline at end of file
+});
diff --git a/frontend/js/Components/Part/PartStockHistory.js b/frontend/js/Components/Part/PartStockHistory.js
@@ -119,7 +119,11 @@ Ext.define('PartKeepr.PartStockHistory', {
return false;
}
break;
+ default:
+ return true;
}
+
+ return true;
},
/**
* Called when the view is activated.
@@ -130,4 +134,4 @@ Ext.define('PartKeepr.PartStockHistory', {
this.store.load();
}
-});-
\ No newline at end of file
+});
diff --git a/frontend/js/Models/Part.js b/frontend/js/Models/Part.js
@@ -45,10 +45,10 @@ Ext.define("PartKeepr.Part", {
{ model: 'PartKeepr.PartDistributor', name: 'distributors'},
{ model: 'PartKeepr.PartManufacturer', name: 'manufacturers'},
{ model: 'PartKeepr.PartParameter', name: 'parameters'},
- { model: 'PartKeepr.PartAttachment', name: 'attachments'},
+ { model: 'PartKeepr.PartAttachment', name: 'attachments'}
],
proxy: PartKeepr.getRESTProxy("Part"),
getRecordName: function () {
return this.get("name");
}
-});-
\ No newline at end of file
+});