Hormold

VK Change (#1355328606)

Dec 12th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.01 KB | None | 0 0
  1. Файл - tickets.js:
  2. 1774.  -       if (!cur.toggleCanceled && (words.length > 4 || words.length == 4 && origStr[origStr.length - 1] == ' ') && !cur.flood) needToggle = true;
  3. 1775.  +       if (!cur.toggleCanceled && (words.length > 4 || words.length == 4 && origStr[origStr.length - 1] == ' ')) needToggle = true;
  4. 1790.  -         }
  5. 1791.  -         if (cont) {
  6. 1792.  -           cur.faqRowsOpened = false;
  7. 1793.  -           removeClass(ge('faq_toggle_all'), 'shown');
  8. ------
  9. Файл - faq.js:
  10. 101.  - handleTagsPos: function() {
  11. 102.  -   if (!ge('faq_tags_td')) return false;
  12. 103.  -   var st = scrollGetY(), wh = window.lastWindowHeight || 0, pos = 0,
  13. 104.  -       filt = ge('faq_tags_td'), filtPos = getXY(filt)[1], filtY = getSize(filt)[1],
  14. 105.  -       sf = ge('faq_tags'), sfPos = getXY(sf)[1], sfY = getSize(sf)[1],
  15. 106.  -       bottomPad = Math.max(0, st + wh - filtY - filtPos),
  16. 107.  -       tooBig = (filtY - sfY < 20),
  17. 108.  -       lastPos = cur.filterLastPos || 0, lastSt = cur.lastSt || 0;
  18. 109.  -   if  (st > filtPos && !tooBig) {
  19. 110.  -     addClass(sf, 'fixed');
  20. 111.  -     pos = (wh > sfY) ? Math.min(0, wh - sfY - bottomPad) : Math.max(Math.min(0, lastPos + lastSt - st), wh - sfY - bottomPad);
  21. 112.  -   } else {
  22. 113.  -     removeClass(sf, 'fixed');
  23. 114.  -     pos = 0;
  24. 115.  -   }
  25. 116.  -   cur.filterLastPos = pos;
  26. 117.  -   cur.lastSt = st;
  27. 118.  -   setStyle(sf, {top: pos + 'px'});
  28. 119.  - },
  29. 120.  -
  30. 121.  - selectTag: function(tag, event) {
  31. 122.  -   cur.tagsDD.addTag('#' + tag);
  32. 123.  -   scrollToTop();
  33. 124.  - },
  34. 125.  -
  35. 126.  - toggleAllRows: function(el) {
  36. 127.  -   cur.faqRowsOpened = !cur.faqRowsOpened;
  37. 128.  -   each(geByClass('faq_row', ge('tickets_faq_list')), setTimeout.pbind(function(i, el) {
  38. 129.  -     var id = el.id.substr(7);
  39. 130.  -     if (id) {
  40. 131.  -       toggleClass(geByClass1('faq_inner_row', el), 'detailed', cur.faqRowsOpened);
  41. 132.  -     }
  42. 133.  -   }, 0));
  43. 134.  -   toggleClass(el, 'shown');
  44. 135.  - },
  45. 136.  -
  46. ------
  47. Файл - faq.css:
  48. 98.  -   background: #FFF;
  49. 222.  -   margin: 0px 75px;
  50. 223.  - }
  51. 224.  - #faq_content #tickets_faq_list .faq_row {
  52. 225.  -   margin: 0px;
  53. 226.  +   margin: 0 75px;
  54. 254.  - }
  55. 255.  - .faq_short_text {
  56. 256.  -   display: block;
  57. 257.  - }
  58. 258.  - .faq_full_text {
  59. 259.  -   display: none;
  60. 260.  - }
  61. 261.  - .faq_inner_row.detailed .faq_short_text {
  62. 262.  -   display: none;
  63. 263.  - }
  64. 264.  - .faq_inner_row.detailed .faq_full_text {
  65. 265.  -   display: block;
  66. 297.  + }
  67. 298.  + .faq_full_text {
  68. 299.  +   display: none;
  69. 406.  - }
  70. 407.  - #faq_content {
  71. 408.  -   background-color: #F7F7F7;
  72. 409.  - }
  73. 410.  - #faq_content #new_ticket {
  74. 411.  -   border-bottom: 1px solid #DAE1E8;
  75. 412.  - }
  76. 413.  - #faq_content #tickets_faq_list {
  77. 414.  -   background-color: #FFFFFF;
  78. 415.  -   border-top: none;
  79. 416.  - }
  80. 417.  - #faq_content #tickets_faq_list.no_top {
  81. 418.  -   border-right: none;
  82. 419.  -   border-top: none;
  83. 420.  - }
  84. 421.  - #faq_tags {
  85. 422.  -   max-width: 129px;
  86. 423.  -   padding: 10px;
  87. 424.  - }
  88. 425.  - #faq_search_table {
  89. 426.  -   border-collapse: collapse;
  90. 427.  -   padding: 0px;
  91. 428.  -   width: 100%;
  92. 429.  - }
  93. 430.  - #faq_search_table td {
  94. 431.  -   vertical-align: top;
  95. 432.  - }
  96. 433.  - #faq_tags_td {
  97. 434.  -   width: 149px;
  98. 435.  - }
  99. 436.  - #faq_rows_td {
  100. 437.  -   background-color: #FFFFFF;
  101. 438.  -   border-right: 1px solid #DAE1E8;
  102. 439.  - }
  103. 440.  - .faq_tags_title {
  104. 441.  -   color: #45688E;
  105. 442.  -   font-weight: bold;
  106. 443.  -   padding: 5px 0px;
  107. 444.  -   line-height: 160%;
  108. 445.  - }
  109. 446.  - .faq_tags_title:first-child {
  110. 447.  -   padding-top: 0px;
  111. 448.  - }
  112. 449.  - .faq_tags_links {
  113. 450.  -   padding-bottom: 10px;
  114. 451.  -   line-height: 160%;
  115. 452.  - }
  116. 453.  - .faq_tags_link {
  117. 454.  -   display: inline-block;
  118. 455.  -   padding-right: 5px;
  119. 456.  - }
  120. 457.  - #tickets_search .tdd_wrap {
  121. 458.  -   background: #FFF;
  122. 459.  - }
  123. 460.  - #faq_content #tickets_search {
  124. 461.  -   min-height: 26px;
  125. 462.  - }
  126. 463.  - #faq_content #tickets_search_reset {
  127. 464.  -   margin-left: -25px;
  128. 465.  -   margin-top: 2px;
  129. 466.  -   display: none !important;
  130. 467.  - }
  131. 468.  - #faq_content .tickets_search_progress {
  132. 469.  -   margin-left: -41px;
  133. 470.  -   height: 25px;
  134. 471.  - }
  135. 472.  - #faq_content .tickets_new_wrap {
  136. 473.  -   margin: 0px;
  137. 474.  -   width: 577px;
  138. 475.  -   padding: 15px 25px;
  139. 476.  - }
  140. 477.  - #faq_content .tickets_title_label {
  141. 478.  -   margin-left: 2px;
  142. 479.  - }
  143. 480.  - #faq_content .tdd_input {
  144. 481.  -   padding: 3px 4px;
  145. 482.  - }
  146. 483.  - .tickets_new_title .tdd_control .input_back_content {
  147. 484.  -   padding: 2px;
  148. 485.  - }
  149. 486.  - .faq_show_all {
  150. 487.  -   display: block;
  151. 488.  - }
  152. 489.  - .faq_hide_all {
  153. 490.  -   display: none;
  154. 491.  - }
  155. 492.  - .faq_toggle_all {
  156. 493.  -   display: block;
  157. 494.  -   padding: 6px 5px 7px;
  158. 495.  -   width: 110px;
  159. 496.  -   margin-right: -10px;
  160. 497.  -   text-align: center;
  161. 498.  - }
  162. 499.  - .faq_toggle_all:hover {
  163. 500.  -   background: #E1E7ED;
  164. 501.  -   text-decoration: none;
  165. 502.  - }
  166. 503.  - .shown .faq_hide_all {
  167. 504.  -   display: block;
  168. 505.  - }
  169. 506.  - .shown .faq_show_all {
  170. 507.  -   display: none;
  171. 509.  +
  172. ------
Advertisement
Add Comment
Please, Sign In to add comment