mirror of
https://github.com/Prominence/car-repair-site.git
synced 2026-01-09 03:36:46 +03:00
Adjusted to show middle name in autocomplete suggestion. Optimized task images.
This commit is contained in:
parent
fe6e34f9de
commit
a189c79edb
@ -1,6 +1,4 @@
|
|||||||
# car-repair-site
|
# car-repair-site
|
||||||
Learning purposes
|
Learning purposes
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 91 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 91 KiB |
BIN
src/main/resources/static/images/task.png
Normal file
BIN
src/main/resources/static/images/task.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 266 KiB |
@ -12,8 +12,7 @@
|
|||||||
<h2>
|
<h2>
|
||||||
<span><th:block th:text="#{home.requirements.label}"/>:</span>
|
<span><th:block th:text="#{home.requirements.label}"/>:</span>
|
||||||
</h2>
|
</h2>
|
||||||
<img src="images/java-task-1.1.jpg" alt="Requirements"/>
|
<img src="images/task.png" alt="Requirements"/>
|
||||||
<img src="images/java-task-1.2.jpg" alt="Requirements"/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -95,7 +95,12 @@
|
|||||||
transformResult: function(response) {
|
transformResult: function(response) {
|
||||||
return {
|
return {
|
||||||
suggestions: $.map($.parseJSON(response), function(item) {
|
suggestions: $.map($.parseJSON(response), function(item) {
|
||||||
return { value: item.firstName + ' ' + item.lastName, data: item.id};
|
var value = item.firstName;
|
||||||
|
if (item.middleName) {
|
||||||
|
value += (' ' + item.middleName);
|
||||||
|
}
|
||||||
|
value += (' ' + item.lastName)
|
||||||
|
return { value: value, data: item.id};
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user