Fix capitalization (fixes #1652, fixes #1649)

This commit is contained in:
Audrius Butkevicius
2015-04-18 11:23:21 +01:00
parent a624c302ab
commit 497f85a236
3 changed files with 11 additions and 11 deletions

View File

@@ -49,22 +49,22 @@ syncthing.config(function ($httpProvider, $translateProvider, LocaleServiceProvi
// @TODO: extract global level functions into seperate service(s)
function deviceCompare(a, b) {
if (typeof a.Name !== 'undefined' && typeof b.Name !== 'undefined') {
if (a.Name < b.Name)
if (typeof a.name !== 'undefined' && typeof b.name !== 'undefined') {
if (a.name < b.name)
return -1;
return a.Name > b.Name;
return a.name > b.bame;
}
if (a.DeviceID < b.DeviceID) {
if (a.deviceID < b.deviceID) {
return -1;
}
return a.DeviceID > b.DeviceID;
return a.deviceID > b.deviceID;
}
function folderCompare(a, b) {
if (a.ID < b.ID) {
if (a.id < b.id) {
return -1;
}
return a.ID > b.ID;
return a.id > b.id;
}
function folderMap(l) {