|
|
@ -302,15 +302,19 @@ Resources.prototype.initUI = function() { |
|
|
|
packList.className = "res-list"; |
|
|
|
packList.className = "res-list"; |
|
|
|
packList.id = "res-packlist"; |
|
|
|
packList.id = "res-packlist"; |
|
|
|
this.packsView.respackList = packList; |
|
|
|
this.packsView.respackList = packList; |
|
|
|
var remoteHeader = document.createElement("div"); |
|
|
|
if(!this.core.settings.defaults.disableRemoteResources) { |
|
|
|
remoteHeader.textContent = "Remote respacks"; |
|
|
|
var remoteHeader = document.createElement("div"); |
|
|
|
remoteHeader.className = "res-header"; |
|
|
|
remoteHeader.textContent = "Remote respacks"; |
|
|
|
var remoteList = document.createElement("div"); |
|
|
|
remoteHeader.className = "res-header"; |
|
|
|
remoteList.className = "res-list"; |
|
|
|
var remoteList = document.createElement("div"); |
|
|
|
remoteList.id = "res-remotelist"; |
|
|
|
remoteList.className = "res-list"; |
|
|
|
this.appendSimpleListItem("Click to load the list", remoteList, |
|
|
|
remoteList.id = "res-remotelist"; |
|
|
|
function() {that.loadRemotes();}); |
|
|
|
this.appendSimpleListItem("Click to load the list", remoteList, |
|
|
|
this.packsView.remoteList = remoteList; |
|
|
|
function() {that.loadRemotes();}); |
|
|
|
|
|
|
|
this.packsView.remoteList = remoteList; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
packList.className += " noremotes"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var buttons = document.createElement("div"); |
|
|
|
var buttons = document.createElement("div"); |
|
|
|
buttons.className = "res-buttons"; |
|
|
|
buttons.className = "res-buttons"; |
|
|
@ -368,8 +372,10 @@ Resources.prototype.initUI = function() { |
|
|
|
|
|
|
|
|
|
|
|
packsContainer.appendChild(packHeader); |
|
|
|
packsContainer.appendChild(packHeader); |
|
|
|
packsContainer.appendChild(packList); |
|
|
|
packsContainer.appendChild(packList); |
|
|
|
packsContainer.appendChild(remoteHeader); |
|
|
|
if(!this.core.settings.defaults.disableRemoteResources) { |
|
|
|
packsContainer.appendChild(remoteList); |
|
|
|
packsContainer.appendChild(remoteHeader); |
|
|
|
|
|
|
|
packsContainer.appendChild(remoteList); |
|
|
|
|
|
|
|
} |
|
|
|
packsContainer.appendChild(buttons); |
|
|
|
packsContainer.appendChild(buttons); |
|
|
|
packsContainer.appendChild(progressContainer); |
|
|
|
packsContainer.appendChild(progressContainer); |
|
|
|
|
|
|
|
|
|
|
|