Skip to content

Commit 059d072

Browse files
committed
Installable
1 parent 553c566 commit 059d072

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

install.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"body": [
1010
{
1111
"type": "script",
12-
"src": "./js/sortable.js"
12+
"src": "./js/install.js"
1313
},
1414
{
1515
"type": "script",
16-
"src": "./js/install.js"
16+
"src": "./js/sortable.js"
1717
}
1818
]
1919
},
@@ -39,9 +39,6 @@
3939
"finder": "Finder"
4040
},
4141
"default": "minimal"
42-
},
43-
"": {
44-
4542
}
4643
}
4744
}

js/install.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(function(){
2+
var options = INSTALL_OPTIONS;
3+
24
Array.prototype.forEach.call(document.querySelectorAll('table'), function(table){
3-
tables.setAttribute('data-sortable');
4-
tables.add('sortable-theme-' + INSTALL_OPTIONS.theme);
5+
table.setAttribute('data-sortable');
6+
table.add('sortable-theme-' + options.theme);
57
});
68
})();

0 commit comments

Comments
 (0)