Skip to content

Commit cdba739

Browse files
committed
update sorting: disable position input
1 parent e878ce2 commit cdba739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (s *Sorting) ConfigureQorResourceBeforeInitialize(res resource.Resourcer) {
7878

7979
primaryKey := ctx.GetDB().NewScope(value).PrimaryKeyValue()
8080
url := path.Join(ctx.Request.URL.Path, fmt.Sprintf("%v", primaryKey), "sorting/update_position")
81-
return template.HTML(fmt.Sprintf("<input type=\"number\" class=\"qor-sorting__position\" value=\"%v\" data-sorting-url=\"%v\" data-position=\"%v\">", pos, url, pos))
81+
return template.HTML(fmt.Sprintf("<input type=\"number\" disabled class=\"qor-sorting__position\" value=\"%v\" data-sorting-url=\"%v\" data-position=\"%v\">", pos, url, pos))
8282
},
8383
Permission: roles.Allow(roles.Read, "sorting_mode"),
8484
})

0 commit comments

Comments
 (0)