diff --git a/templates/files.html b/templates/files.html index 31d27bb..e8984b4 100644 --- a/templates/files.html +++ b/templates/files.html @@ -6,6 +6,7 @@ Move selected file(s) to new storage folder Delete Selected file(s) + UnDelete Selected file(s)
@@ -28,7 +29,7 @@ {% set tmp_path=cwd | replace( "static/Bin", "" ) + "/" %} {% endif %} - In: {{tmp_path}} + {{tmp_path}}
{% endif %}
@@ -121,6 +122,12 @@
Back
+ {% else %} + {# create an even lighter-grey, unclickable back button - so folders dont jump around when you go into them #} + + + + {% endif %} {% endif %} {% if not folders and obj.type.name == "Directory" %} @@ -202,6 +209,7 @@ {% if grouping == "None" %}
{% endif %} + {% endblock main_content %} {% block script_content %} @@ -359,11 +367,19 @@ $('.figure').click( function(e) { DoSel(e, this ); return false; }); }; })(jQuery, window); +{% if entry_data|length > 0 %} + if( "{{entry_data[0].in_dir.in_path.type.name}}" == "Bin" ) { + $('#dd_del').hide() + } else { + $('#dd_undel').hide() + } +{% endif %} + $(".figure").contextMenu({ menuSelector: "#contextMenu", menuSelected: function (invokedOn, selectedMenu) { var msg = "You selected the menu item '" + selectedMenu.text() + - "' on the file id: " + $(invokedOn).parent().parent().attr('id') + "' on the file id: " + $(invokedOn).parent().parent().parent().attr('id') console.log(msg); if ( "View File" == selectedMenu.text() ) { document.location.href = $(invokedOn).parent().attr('href')