Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
cf1ee673
Commit
cf1ee673
authored
7 years ago
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if rating is NaN
parent
9c8d5049
master
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ui_menu.js
js/ui_menu.js
+3
-0
No files found.
js/ui_menu.js
View file @
cf1ee673
...
@@ -180,6 +180,9 @@ function save_rating_init(){
...
@@ -180,6 +180,9 @@ function save_rating_init(){
url
:
"store_rating.php?model="
+
SETTINGS
.
path
,
url
:
"store_rating.php?model="
+
SETTINGS
.
path
,
complete
:
function
(
response
){
complete
:
function
(
response
){
var
value
=
parseInt
(
response
.
responseText
);
var
value
=
parseInt
(
response
.
responseText
);
if
(
isNaN
(
value
)){
value
=
5
;
}
$
(
"#model_rating"
).
val
(
value
);
$
(
"#model_rating"
).
val
(
value
);
// bind onchange
// bind onchange
$
(
"#model_rating"
).
on
(
'change'
,
function
(){
$
(
"#model_rating"
).
on
(
'change'
,
function
(){
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment