was.wm.js – Diff between revs 4 and 7

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 4 Rev 7
Line 7... Line 7...
7 var cookie = Cookies.get('window-manager-icons'); 7 var cookie = Cookies.get('window-manager-icons');
8 if(cookie) { 8 if(cookie) {
9 states = JSON.parse(cookie); 9 states = JSON.parse(cookie);
10 } 10 }
11 $.each(nucleons, function(index, file) { 11 $.each(nucleons, function(index, file) {
12 // Skip files starting with full stop (POSIX). 12 // Only consider HTML files.
13 if (/^\./.test(file)) { 13 if (!/\.html$/.test(file)) {
14 return; 14 return;
15 } 15 }
16 $.get(path + '/' + file, function(data) { 16 $.get(path + '/' + file, function(data) {
17 data = $(data).get(0); 17 data = $(data).get(0);
18 var nucleon = data.getAttribute('data-target'); 18 var nucleon = data.getAttribute('data-target');