corrade-http-templates – Diff between revs 21 and 55
?pathlinks?
Rev 21 | Rev 55 | |||
---|---|---|---|---|
Line 3... | Line 3... | |||
3 | |
3 | |
|
4 | <head> |
4 | <head> |
|
5 | <meta charset="utf-8"> |
5 | <meta charset="utf-8"> |
|
6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
|
7 | <title>Corrade Inventory Browser</title> |
- | ||
8 | <link rel="stylesheet" href="css/jquery-ui.css" /> |
7 | <title>Corrade Inventory Browser</title> |
|
9 | <link rel="stylesheet" href="js/jstree/themes/default/style.min.css" /> |
- | ||
- | 8 | <link rel="stylesheet" href="js/jstree/themes/default/style.min.css" /> |
||
10 | |
9 | <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css" /> |
|
11 | <script src="js/jquery-1.12.4.js"></script> |
10 | <script src="https://code.jquery.com/jquery-1.12.4.js"></script> |
|
12 | <script src="js/jquery-ui.js"></script> |
11 | <script src="http://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> |
|
13 | <script src="js/jstree/jstree.min.js"></script> |
12 | <script src="js/jstree/jstree.min.js"></script> |
|
14 | <script src="js/json-to-table.js"></script> |
13 | <script src="js/json-to-table.js"></script> |
|
15 | <script src="js/jquery.base64.js"></script> |
14 | <script src="js/jquery.base64.js"></script> |
|
Line 69... | Line 68... | |||
69 | |
68 | |
|
70 | // Give inventory items menu for anything but folders. |
69 | // Give inventory items menu for anything but folders. |
|
71 | // They could be supported too but would require first |
70 | // They could be supported too but would require first |
|
72 | // counting the number of items inside the folder and |
71 | // counting the number of items inside the folder and |
|
73 | // only accepting to send if the number is below max. |
72 | // only accepting to send if the number is below max. |
|
74 | if (node.data.type != "folder") { |
73 | if (node.data.type.localeCompare("folder") == 0) { |
|
75 | $.extend(items, { |
74 | $.extend(items, { |
|
76 | giveItem: { |
75 | giveItem: { |
|
77 | label: "Give", |
76 | label: "Give", |
|
78 | action: function(obj) { |
77 | action: function(obj) { |
|
Line 115... | Line 114... | |||
115 | } |
114 | } |
|
116 | }); |
115 | }); |
|
117 | } |
116 | } |
|
Line 118... | Line 117... | |||
118 | |
117 | |
|
- | 118 | // The "download" menu item for textures. |
||
119 | // The "download" menu item for textures. |
119 | if (node.data.type.localeCompare("texture") == 0 || |
|
120 | if (node.data.type == "texture" || node.data.type == "snapshot") { |
120 | node.data.type.localeCompare("snapshot") == 0) { |
|
121 | $.extend(items, { |
121 | $.extend(items, { |
|
122 | downloadItem: { |
122 | downloadItem: { |
|
123 | label: "Download", |
123 | label: "Download", |
|
124 | "action": function(obj) { |
124 | "action": function(obj) { |
|
Line 146... | Line 146... | |||
146 | } |
146 | } |
|
147 | }); |
147 | }); |
|
148 | } |
148 | } |
|
Line 149... | Line 149... | |||
149 | |
149 | |
|
150 | // The "download" menu item for notecards. |
150 | // The "download" menu item for notecards. |
|
151 | if (node.data.type == "notecard") { |
151 | if (node.data.type.localeCompare("notecard") == 0) { |
|
152 | $.extend(items, { |
152 | $.extend(items, { |
|
153 | downloadItem: { |
153 | downloadItem: { |
|
154 | label: "Download", |
154 | label: "Download", |
|
155 | "action": function(obj) { |
155 | "action": function(obj) { |
|
Line 177... | Line 177... | |||
177 | } |
177 | } |
|
178 | }); |
178 | }); |
|
179 | } |
179 | } |
|
Line 180... | Line 180... | |||
180 | |
180 | |
|
181 | // The "download" menu item for sounds. |
181 | // The "download" menu item for sounds. |
|
182 | if (node.data.type == "sound") { |
182 | if (node.data.type.localeCompare("sound") == 0) { |
|
183 | $.extend(items, { |
183 | $.extend(items, { |
|
184 | downloadItem: { |
184 | downloadItem: { |
|
185 | label: "Download", |
185 | label: "Download", |
|
186 | "action": function(obj) { |
186 | "action": function(obj) { |