Commit 0df09c494da6a0d3c47fb58ead4ba3c15995ca69

Authored by andryeyev
1 parent 3eaa9da4

+ fix по стилю меню и jquery по OrderControl.js

Showing 2 changed files with 5 additions and 4 deletions   Show diff stats
css/admin.css
... ... @@ -64,7 +64,8 @@ p{margin:0px;}
64 64 /*
65 65 ==== adminMenu ====
66 66 */
67   -div.adminMenu {
  67 +div.adminMenu {
  68 + width: 190px;
68 69 }
69 70  
70 71 div.adminMenu ul {
... ...
js/OrderContol.js
... ... @@ -61,7 +61,7 @@
61 61 {
62 62 if ($('#lines').length > 0)
63 63 {
64   - StartCount = document.getElementById('lines').lastChild.id;
  64 + StartCount = $('#lines').children().last().attr('id');
65 65  
66 66 if (empty(StartCount)) {
67 67 StartCount='line1';
... ... @@ -109,7 +109,7 @@
109 109 RemoveDiv(div);
110 110  
111 111 // åñëè óäàëèëè âñå ñòðîêè äîáàâëÿåì íîâóþ
112   - var StartCount= document.getElementById('lines').lastChild.id;
  112 + var StartCount= $('#lines').children().last().attr('id');
113 113 if (empty(StartCount)) {
114 114 c=0;
115 115 AddRow();
... ... @@ -130,7 +130,7 @@
130 130 //RemoveDiv(div);
131 131  
132 132 // åñëè óäàëèëè âñå ñòðîêè äîáàâëÿåì íîâóþ
133   - var StartCount= document.getElementById('lines').lastChild.id;
  133 + var StartCount= $('#lines').children().last().attr('id');
134 134 if (empty(StartCount)) {
135 135 c=0;
136 136 AddRow();
... ...