Commit 4e954108 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Preferences: fixed handling of workspace specific prefrences

already set values will not show up in the list of values to add
parent 7b24a199
......@@ -111,16 +111,20 @@ define([
wsList: function(path) {
var ks = [];
for(var i in this.data.user) {
if (i < 0) continue;
if (i === null) continue;
if (i === "null") continue;
i = parseInt(i);
if (isNaN(i)) continue;
if (i < 0) continue;
if (this.get(path, i, true)!==undefined)
ks.push(i);
}
for(var i in (this.data.server || {})) {
if (i < 0) continue;
if (i === null) continue;
if (i === "null") continue;
i = parseInt(i);
if (isNaN(i)) continue;
if (i < 0) continue;
if (~ks.indexOf(i)) continue;
if (this.get(path, i, false)!==undefined)
ks.push(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment