Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the predefined alphabet bug #61

Merged
merged 2 commits into from
Aug 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ define(["base/js/namespace", "jquery", "base/js/utils"], function(
) {
var ps_obj = this;
var styles_list = await this.get_style_list();

var set_style = localStorage.getItem("selected_style");
$.each(styles_list, function(key, value) {
var style_option = $("<li/>");
Expand Down Expand Up @@ -362,7 +361,8 @@ define(["base/js/namespace", "jquery", "base/js/utils"], function(
$.each(styles.content, function(key, value) {
style_list.push(value.name.slice(0, -5));
});
return style_list;

return style_list.sort();
};

//Set the styles based on the specified predefined style
Expand Down