Skip to content

Commit 74a4992

Browse files
committed
replace "alpha" with "alphabetic"
1 parent dd7f5a6 commit 74a4992

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

public/js/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var show_list;
2-
var sort_type = 'alpha';
2+
var sort_type = 'alphabetic';
33

44
$(document).ready(function () {
55
bootbox.setDefaults({locale:lang['locale-bootbox']});
@@ -76,8 +76,8 @@ $('#list-display').click(function () {
7676
loadItems();
7777
});
7878

79-
$('#list-sort-alpha').click(function() {
80-
sort_type = 'alpha';
79+
$('#list-sort-alphabetic').click(function() {
80+
sort_type = 'alphabetic';
8181
loadItems();
8282
});
8383

src/lang/en/lfm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'nav-thumbnails' => 'Thumbnails',
88
'nav-list' => 'List',
99
'nav-sort' => 'Sort',
10-
'nav-sort-alpha' => 'Sort By Alphabets',
10+
'nav-sort-alphabetic'=> 'Sort By Alphabets',
1111
'nav-sort-time' => 'Sort By Time',
1212

1313
'menu-rename' => 'Rename',

src/lang/zh-TW/lfm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'nav-thumbnails' => '縮圖顯示',
88
'nav-list' => '列表顯示',
99
'nav-sort' => '排序',
10-
'nav-sort-alpha' => '依字母排序',
10+
'nav-sort-alphabetic'=> '依字母排序',
1111
'nav-sort-time' => '依時間排序',
1212

1313
'menu-rename' => '重新命名',

src/traits/LfmHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function sortFilesAndDirectories($arr_items, $sort_type)
369369
{
370370
if ($sort_type == 'time') {
371371
$key_to_sort = 'updated';
372-
} elseif ($sort_type == 'alpha') {
372+
} elseif ($sort_type == 'alphabetic') {
373373
$key_to_sort = 'name';
374374
} else {
375375
$key_to_sort = 'updated';

src/views/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
</a>
7171
<ul class="dropdown-menu">
7272
<li>
73-
<a href="#" id="list-sort-alpha">
74-
<i class="fa fa-sort-alpha-asc"></i> {{ trans('laravel-filemanager::lfm.nav-sort-alpha') }}
73+
<a href="#" id="list-sort-alphabetic">
74+
<i class="fa fa-sort-alpha-asc"></i> {{ trans('laravel-filemanager::lfm.nav-sort-alphabetic') }}
7575
</a>
7676
</li>
7777
<li>

0 commit comments

Comments
 (0)