Commit 0df09c494da6a0d3c47fb58ead4ba3c15995ca69
1 parent
3eaa9da4
+ fix по стилю меню и jquery по OrderControl.js
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
css/admin.css
js/OrderContol.js
@@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
61 | { | 61 | { |
62 | if ($('#lines').length > 0) | 62 | if ($('#lines').length > 0) |
63 | { | 63 | { |
64 | - StartCount = document.getElementById('lines').lastChild.id; | 64 | + StartCount = $('#lines').children().last().attr('id'); |
65 | 65 | ||
66 | if (empty(StartCount)) { | 66 | if (empty(StartCount)) { |
67 | StartCount='line1'; | 67 | StartCount='line1'; |
@@ -109,7 +109,7 @@ | @@ -109,7 +109,7 @@ | ||
109 | RemoveDiv(div); | 109 | RemoveDiv(div); |
110 | 110 | ||
111 | // åñëè óäàëèëè âñå ñòðîêè äîáàâëÿåì íîâóþ | 111 | // åñëè óäàëèëè âñå ñòðîêè äîáàâëÿåì íîâóþ |
112 | - var StartCount= document.getElementById('lines').lastChild.id; | 112 | + var StartCount= $('#lines').children().last().attr('id'); |
113 | if (empty(StartCount)) { | 113 | if (empty(StartCount)) { |
114 | c=0; | 114 | c=0; |
115 | AddRow(); | 115 | AddRow(); |
@@ -130,7 +130,7 @@ | @@ -130,7 +130,7 @@ | ||
130 | //RemoveDiv(div); | 130 | //RemoveDiv(div); |
131 | 131 | ||
132 | // åñëè óäàëèëè âñå ñòðîêè äîáàâëÿåì íîâóþ | 132 | // åñëè óäàëèëè âñå ñòðîêè äîáàâëÿåì íîâóþ |
133 | - var StartCount= document.getElementById('lines').lastChild.id; | 133 | + var StartCount= $('#lines').children().last().attr('id'); |
134 | if (empty(StartCount)) { | 134 | if (empty(StartCount)) { |
135 | c=0; | 135 | c=0; |
136 | AddRow(); | 136 | AddRow(); |