diff --git a/media/js/sort_lib_by_name_and_time.js b/media/js/sort_lib.js similarity index 100% rename from media/js/sort_lib_by_name_and_time.js rename to media/js/sort_lib.js diff --git a/seahub/group/templates/group/group_info.html b/seahub/group/templates/group/group_info.html index 020bc26bc0..285529ddcb 100644 --- a/seahub/group/templates/group/group_info.html +++ b/seahub/group/templates/group/group_info.html @@ -177,6 +177,6 @@ $('.lsch-encrypted').click(function() { }); {% include 'snippets/repo_decrypt_js.html' %} {% endif %} -{% include "snippets/sort_lib_by_name_and_time_js.html" %} +{% include "snippets/sort_lib_js.html" %} {% endblock %} diff --git a/seahub/share/templates/share/repos.html b/seahub/share/templates/share/repos.html index 3705259bda..e7d345df9b 100644 --- a/seahub/share/templates/share/repos.html +++ b/seahub/share/templates/share/repos.html @@ -119,6 +119,6 @@ $(document).click(function(e) { } }); {% endif %} // shared_repos -{% include "snippets/sort_lib_by_name_and_time_js.html" %} +{% include "snippets/sort_lib_js.html" %} {% endblock %} diff --git a/seahub/templates/pubrepo.html b/seahub/templates/pubrepo.html index d4fb1d59c9..380b785e47 100644 --- a/seahub/templates/pubrepo.html +++ b/seahub/templates/pubrepo.html @@ -73,6 +73,6 @@ function repoCreateSuccessCallback() { {% with post_url=repo_create_url %} {% include "snippets/repo_create_js.html" %} {% endwith %} -{% include "snippets/sort_lib_by_name_and_time_js.html" %} +{% include "snippets/sort_lib_js.html" %} {% endblock %} diff --git a/seahub/templates/snippets/myhome_extra_script.html b/seahub/templates/snippets/myhome_extra_script.html index 3afcbcdf80..6eec6cd2ce 100644 --- a/seahub/templates/snippets/myhome_extra_script.html +++ b/seahub/templates/snippets/myhome_extra_script.html @@ -120,7 +120,7 @@ function repoCreateSuccessCallback(data) { $('tr:first', my_own_repos).after(new_repo_item); } } -{% include "snippets/sort_lib_by_name_and_time_js.html" %} +{% include "snippets/sort_lib_js.html" %} $(function() { $.ajax({ url:'{% url 'my_shared_and_group_repos' %}', diff --git a/seahub/templates/snippets/sort_lib_by_name_and_time_js.html b/seahub/templates/snippets/sort_lib_js.html similarity index 85% rename from seahub/templates/snippets/sort_lib_by_name_and_time_js.html rename to seahub/templates/snippets/sort_lib_js.html index c18811f276..2bc07e03f2 100644 --- a/seahub/templates/snippets/sort_lib_by_name_and_time_js.html +++ b/seahub/templates/snippets/sort_lib_js.html @@ -1,6 +1,6 @@ $(function() { $.ajax({ - url: '{{MEDIA_URL}}js/sort_lib_by_name_and_time.js', + url: '{{MEDIA_URL}}js/sort_lib.js', dataType: 'script', cache: true, success: function() {