221
221
p = dom_make_text_elem("h3", "Actions");
222
222
sidepanel.appendChild(p);
226
/* Publish/unpublish */
227
if (selected_files.length == 0)
231
if ("published" in file && file.published)
233
p = dom_make_link_elem("p", "Unpublish",
234
"Make it so this directory cannot be seen by anyone but you",
236
"return action_unpublish(" + repr(path) + ")");
237
sidepanel.appendChild(p);
241
p = dom_make_link_elem("p", "Publish",
242
"Make it so this directory can be seen by anyone on the web",
244
"return action_publish(" + repr(path) + ")");
245
sidepanel.appendChild(p);
249
224
if (selected_files.length <= 1)
228
/* Publish/unpublish */
229
if (selected_files.length == 0)
233
if ("published" in file && file.published)
235
p = dom_make_link_elem("p", "Unpublish",
236
"Make it so this directory cannot be seen by anyone but you",
238
"return action_unpublish(" + repr(path) + ")");
239
sidepanel.appendChild(p);
243
p = dom_make_link_elem("p", "Publish",
244
"Make it so this directory can be seen by anyone on the web",
246
"return action_publish(" + repr(path) + ")");
247
sidepanel.appendChild(p);
251
251
var handler_type = null;
252
252
if ("type" in file)
253
253
handler_type = get_handler_type(file.type);