提交 a5482376 编写于 作者: D Daniel Beck

Fix Available tab sort order and support popularity outside 0..1 range

上级 c0a4273d
...@@ -136,6 +136,7 @@ import java.util.HashSet; ...@@ -136,6 +136,7 @@ import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedHashSet; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.ServiceLoader; import java.util.ServiceLoader;
import java.util.Set; import java.util.Set;
...@@ -2240,7 +2241,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas ...@@ -2240,7 +2241,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
@Restricted(DoNotUse.class) @Restricted(DoNotUse.class)
public String unscientific(double d) { public String unscientific(double d) {
return String.format("%.4f", d); return String.format(Locale.US, "%15.4f", d);
} }
@Override @Override
......
...@@ -63,7 +63,7 @@ THE SOFTWARE. ...@@ -63,7 +63,7 @@ THE SOFTWARE.
<table id="plugins" class="sortable pane bigtable stripped-odd"> <table id="plugins" class="sortable pane bigtable stripped-odd">
<tr> <tr>
<l:isAdmin> <l:isAdmin>
<th initialSortDir="${isUpdates?null:'down'}" <th initialSortDir="${isUpdates?null:'up'}"
tooltip="${%Check to install the plugin}" tooltip="${%Check to install the plugin}"
width="32">${%Install}</th> width="32">${%Install}</th>
</l:isAdmin> </l:isAdmin>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册