Reformat WebUI code

This commit is contained in:
Chocobo1
2018-12-12 12:23:56 +08:00
parent ba32525b45
commit d0886f8db0
8 changed files with 175 additions and 172 deletions

View File

@@ -56,6 +56,7 @@
line-height: 1.5em;
float: right;
}
</style>
<div id="searchResults">
@@ -201,7 +202,7 @@
var searchKeyboardEvents = new Keyboard({
defaultEventType: 'keydown',
events: {
'enter': function (e) {
'enter': function(e) {
// accept enter key as a click
new Event(e).stop();
@@ -453,7 +454,7 @@
$('searchResultsTableContainer').style.display = "block";
// sort plugins alphabetically
var allPlugins = searchPlugins.sort(function(pluginA, pluginB){
var allPlugins = searchPlugins.sort(function(pluginA, pluginB) {
var a = pluginA.fullName.toLowerCase();
var b = pluginB.fullName.toLowerCase();
if (a < b) return -1;