corrade-http-templates
/inventoryBrowser/inventoryBrowser.html |
@@ -5,11 +5,10 @@ |
<meta charset="utf-8"> |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
<title>Corrade Inventory Browser</title> |
<link rel="stylesheet" href="css/jquery-ui.css" /> |
<link rel="stylesheet" href="js/jstree/themes/default/style.min.css" /> |
|
<script src="js/jquery-1.12.4.js"></script> |
<script src="js/jquery-ui.js"></script> |
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css" /> |
<script src="https://code.jquery.com/jquery-1.12.4.js"></script> |
<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> |
<script src="js/jstree/jstree.min.js"></script> |
<script src="js/json-to-table.js"></script> |
<script src="js/jquery.base64.js"></script> |
@@ -71,7 +70,7 @@ |
// They could be supported too but would require first |
// counting the number of items inside the folder and |
// only accepting to send if the number is below max. |
if (node.data.type != "folder") { |
if (node.data.type.localeCompare("folder") == 0) { |
$.extend(items, { |
giveItem: { |
label: "Give", |
@@ -117,7 +116,8 @@ |
} |
|
// The "download" menu item for textures. |
if (node.data.type == "texture" || node.data.type == "snapshot") { |
if (node.data.type.localeCompare("texture") == 0 || |
node.data.type.localeCompare("snapshot") == 0) { |
$.extend(items, { |
downloadItem: { |
label: "Download", |
@@ -148,7 +148,7 @@ |
} |
|
// The "download" menu item for notecards. |
if (node.data.type == "notecard") { |
if (node.data.type.localeCompare("notecard") == 0) { |
$.extend(items, { |
downloadItem: { |
label: "Download", |
@@ -179,7 +179,7 @@ |
} |
|
// The "download" menu item for sounds. |
if (node.data.type == "sound") { |
if (node.data.type.localeCompare("sound") == 0) { |
$.extend(items, { |
downloadItem: { |
label: "Download", |