Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - tickets.js:
- 1774. - if (!cur.toggleCanceled && (words.length > 4 || words.length == 4 && origStr[origStr.length - 1] == ' ') && !cur.flood) needToggle = true;
- 1775. + if (!cur.toggleCanceled && (words.length > 4 || words.length == 4 && origStr[origStr.length - 1] == ' ')) needToggle = true;
- 1790. - }
- 1791. - if (cont) {
- 1792. - cur.faqRowsOpened = false;
- 1793. - removeClass(ge('faq_toggle_all'), 'shown');
- ------
- Файл - faq.js:
- 101. - handleTagsPos: function() {
- 102. - if (!ge('faq_tags_td')) return false;
- 103. - var st = scrollGetY(), wh = window.lastWindowHeight || 0, pos = 0,
- 104. - filt = ge('faq_tags_td'), filtPos = getXY(filt)[1], filtY = getSize(filt)[1],
- 105. - sf = ge('faq_tags'), sfPos = getXY(sf)[1], sfY = getSize(sf)[1],
- 106. - bottomPad = Math.max(0, st + wh - filtY - filtPos),
- 107. - tooBig = (filtY - sfY < 20),
- 108. - lastPos = cur.filterLastPos || 0, lastSt = cur.lastSt || 0;
- 109. - if (st > filtPos && !tooBig) {
- 110. - addClass(sf, 'fixed');
- 111. - pos = (wh > sfY) ? Math.min(0, wh - sfY - bottomPad) : Math.max(Math.min(0, lastPos + lastSt - st), wh - sfY - bottomPad);
- 112. - } else {
- 113. - removeClass(sf, 'fixed');
- 114. - pos = 0;
- 115. - }
- 116. - cur.filterLastPos = pos;
- 117. - cur.lastSt = st;
- 118. - setStyle(sf, {top: pos + 'px'});
- 119. - },
- 120. -
- 121. - selectTag: function(tag, event) {
- 122. - cur.tagsDD.addTag('#' + tag);
- 123. - scrollToTop();
- 124. - },
- 125. -
- 126. - toggleAllRows: function(el) {
- 127. - cur.faqRowsOpened = !cur.faqRowsOpened;
- 128. - each(geByClass('faq_row', ge('tickets_faq_list')), setTimeout.pbind(function(i, el) {
- 129. - var id = el.id.substr(7);
- 130. - if (id) {
- 131. - toggleClass(geByClass1('faq_inner_row', el), 'detailed', cur.faqRowsOpened);
- 132. - }
- 133. - }, 0));
- 134. - toggleClass(el, 'shown');
- 135. - },
- 136. -
- ------
- Файл - faq.css:
- 98. - background: #FFF;
- 222. - margin: 0px 75px;
- 223. - }
- 224. - #faq_content #tickets_faq_list .faq_row {
- 225. - margin: 0px;
- 226. + margin: 0 75px;
- 254. - }
- 255. - .faq_short_text {
- 256. - display: block;
- 257. - }
- 258. - .faq_full_text {
- 259. - display: none;
- 260. - }
- 261. - .faq_inner_row.detailed .faq_short_text {
- 262. - display: none;
- 263. - }
- 264. - .faq_inner_row.detailed .faq_full_text {
- 265. - display: block;
- 297. + }
- 298. + .faq_full_text {
- 299. + display: none;
- 406. - }
- 407. - #faq_content {
- 408. - background-color: #F7F7F7;
- 409. - }
- 410. - #faq_content #new_ticket {
- 411. - border-bottom: 1px solid #DAE1E8;
- 412. - }
- 413. - #faq_content #tickets_faq_list {
- 414. - background-color: #FFFFFF;
- 415. - border-top: none;
- 416. - }
- 417. - #faq_content #tickets_faq_list.no_top {
- 418. - border-right: none;
- 419. - border-top: none;
- 420. - }
- 421. - #faq_tags {
- 422. - max-width: 129px;
- 423. - padding: 10px;
- 424. - }
- 425. - #faq_search_table {
- 426. - border-collapse: collapse;
- 427. - padding: 0px;
- 428. - width: 100%;
- 429. - }
- 430. - #faq_search_table td {
- 431. - vertical-align: top;
- 432. - }
- 433. - #faq_tags_td {
- 434. - width: 149px;
- 435. - }
- 436. - #faq_rows_td {
- 437. - background-color: #FFFFFF;
- 438. - border-right: 1px solid #DAE1E8;
- 439. - }
- 440. - .faq_tags_title {
- 441. - color: #45688E;
- 442. - font-weight: bold;
- 443. - padding: 5px 0px;
- 444. - line-height: 160%;
- 445. - }
- 446. - .faq_tags_title:first-child {
- 447. - padding-top: 0px;
- 448. - }
- 449. - .faq_tags_links {
- 450. - padding-bottom: 10px;
- 451. - line-height: 160%;
- 452. - }
- 453. - .faq_tags_link {
- 454. - display: inline-block;
- 455. - padding-right: 5px;
- 456. - }
- 457. - #tickets_search .tdd_wrap {
- 458. - background: #FFF;
- 459. - }
- 460. - #faq_content #tickets_search {
- 461. - min-height: 26px;
- 462. - }
- 463. - #faq_content #tickets_search_reset {
- 464. - margin-left: -25px;
- 465. - margin-top: 2px;
- 466. - display: none !important;
- 467. - }
- 468. - #faq_content .tickets_search_progress {
- 469. - margin-left: -41px;
- 470. - height: 25px;
- 471. - }
- 472. - #faq_content .tickets_new_wrap {
- 473. - margin: 0px;
- 474. - width: 577px;
- 475. - padding: 15px 25px;
- 476. - }
- 477. - #faq_content .tickets_title_label {
- 478. - margin-left: 2px;
- 479. - }
- 480. - #faq_content .tdd_input {
- 481. - padding: 3px 4px;
- 482. - }
- 483. - .tickets_new_title .tdd_control .input_back_content {
- 484. - padding: 2px;
- 485. - }
- 486. - .faq_show_all {
- 487. - display: block;
- 488. - }
- 489. - .faq_hide_all {
- 490. - display: none;
- 491. - }
- 492. - .faq_toggle_all {
- 493. - display: block;
- 494. - padding: 6px 5px 7px;
- 495. - width: 110px;
- 496. - margin-right: -10px;
- 497. - text-align: center;
- 498. - }
- 499. - .faq_toggle_all:hover {
- 500. - background: #E1E7ED;
- 501. - text-decoration: none;
- 502. - }
- 503. - .shown .faq_hide_all {
- 504. - display: block;
- 505. - }
- 506. - .shown .faq_show_all {
- 507. - display: none;
- 509. +
- ------
Advertisement
Add Comment
Please, Sign In to add comment