Carsten Rosenberg
110f02f449
[FIX] upload.js - eslint
5 years ago
Alexander Moisseev
44ed289c48
[WebUI] Notify user if uploaded data was not learned
#2684
5 years ago
Alexander Moisseev
62d381fdf8
[WebUI] Remove redundant condition
as "success" function is called only when .status is true
5 years ago
Christian Moelders
fb18e071e5
Closes: #2684
The successful upload of a text in the learning section
is answered with HTTP status code 204, that is:
The server has successfully processed the request and
does not return any content.
For this reason must be used.
5 years ago
Alexander Moisseev
7515ed4a16
[WebUI] Fix upload buttons disabling
5 years ago
Alexander Moisseev
264c8b3d07
[Minor] Enforce consistent key-value spacing
5 years ago
Alexander Moisseev
458642949a
[Minor] Initialize variables at declaration
5 years ago
Alexander Moisseev
88354ed542
[Minor] Refactor upload.js module to use query function
5 years ago
Alexander Moisseev
bc8a4c950f
[Minor] Add "errorMessage" parameter to query function
5 years ago
Alexander Moisseev
ab72e30124
[Minor] Use consistent brace style for blocks (1tbs)
5 years ago
Alexander Moisseev
b816237c36
[Minor] Do not shadow variables
5 years ago
Alexander Moisseev
ebfc92f349
[WebUI] Enable strict mode,
rename `interface` oblect as it is a reserved keyword,
declare $span and $tbody variables
5 years ago
Alexander Moisseev
04f05e07c0
[WebUI] Use type-safe equality operators
5 years ago
Alexander Moisseev
d3c4028f4d
[Minor] JS: Remove redundant quotes
around object literal property names
5 years ago
Alexander Moisseev
61308eaca2
[Minor] JS: Add space before parentheses
of anonymous functions
5 years ago
Alexander Moisseev
8a63c6b787
[Minor] JS: Add spaces at comments start
5 years ago
Alexander Moisseev
1a9489fdd5
[Minor] JS: Add missed semicolons
5 years ago
Alexander Moisseev
494f11642b
[Minor] JS: Use consistent indentation
5 years ago
Alexander Moisseev
ba2a5ba57c
[Minor] JS: Use double quotes wherever possible
5 years ago
Andrew Lewis
5bc4c06dd6
[Fix] Fix some typos
6 years ago
Vsevolod Stakhov
e5fbc287dc
[WebUI] Use modern protocol for checking messages
7 years ago
Alexander Moisseev
ce88ad8519
[WebUI] Unbreak WebUI
7 years ago
Vsevolod Stakhov
f0615c9cb4
[WebUI] Finish interface rework
7 years ago