Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - retina.css (Старый размер - 30192 | Новый - 23992):
- 8. - background-image: url(/images/hatf_2x.gif?1);
- 9. + background-image: url(/images/hat_2x.gif);
- 16. - background-image: url(/images/hatf_vk_2x.gif?1);
- 17. + background-image: url(/images/hat_vk_2x.gif);
- 22. - background-image: url(/images/hatf_vk_rtl_2x.gif?1);
- 23. + background-image: url(/images/hat_vk_rtl_2x.gif);
- 58. - .is_2x .tdd_search .tdd_control,
- 59. - .is_2x #search_query,
- 61. - .is_2x .choose_search_cont input,
- 62. - .is_2x #exchange_search_input {
- 63. + .is_2x #search_query {
- 71. - .is_2x #search_query_reset,
- 72. - .is_2x #friends_reset_search {
- 73. + .is_2x #search_query_reset {
- 88. - .is_2x #audio_tip_arrow,
- 95. - .is_2x .page_gif_add_icon,
- 96. - .is_2x .current_audio .label,
- 97. - .is_2x .current_audio_cnt .label,
- 98. - .is_2x .video_row_icon_add .video_row_icon,
- 99. - .is_2x .docs_add_row {
- 100. - background-image: url(/images/icons/audio_icons_2x.png?4);
- 101. + .is_2x .page_gif_add_icon{
- 102. + background-image: url(/images/icons/audio_icons_2x.png);
- 104. - }
- 105. - .is_2x #head_play_btn {
- 106. - background-image: url(/images/icons/audio_iconsf_2x.png);
- 113. - .is_2x .fw_like_icon,
- 114. - .is_2x .wall_module .post_share_icon {
- 115. - background-image: url(/images/icons/like_2x.png?2);
- 116. - background-size: 10px 32px;
- 117. + .is_2x .fw_like_icon {
- 118. + background-image: url(/images/icons/like_2x.png);
- 119. + background-size: 10px 20px;
- 129. - .is_2x .im_tab_selected .im_tabx_over,
- 130. - .is_2x .summary_tab_x,
- 131. - .is_2x .tdd_x_c {
- 132. + .is_2x .im_tab_selected .im_tabx_over {
- 136. - .is_2x .audio .play_new, .is_2x #audio.new .wall_module .audio.current .play_new {
- 137. + .is_2x .audio .play_new {
- 148. - .is_2x #im_docs_preview .im_media_x,
- 149. - .is_2x #im_sdocs_preview .im_media_x,
- 153. - .is_2x .wall_module .reply_delete_button,
- 154. - .is_2x .fave_delete_link,
- 155. - .is_2x #intr_hide,
- 156. - .is_2x .wall_module .post_delete_button,
- 157. - .is_2x .top_info_wrap .hide_button,
- 158. - .is_2x .docs_delete_row {
- 159. + .is_2x .wall_module .reply_delete_button {
- 162. - }
- 163. - .is_2x .im_to_end {
- 164. - background-image: url(/images/im_toend_2x.gif);
- 165. - background-size: 15px 13px;
- 166. - }
- 167. - .is_2x #im_log_fav_btn i,
- 168. - .is_2x .im_important_toggler,
- 169. - .is_2x .im_important_icon {
- 170. - background-image: url(/images/icons/im_actions_iconset2_2x.png?8);
- 171. - background-size: 20px 300px;
- 173. -
- 184. + .is_2x .current_audio,
- 190. - .is_2x .im_attach_gift,
- 195. - .is_2x .im_attach_link,
- 209. - .is_2x .tickets_media_icon,
- 210. - .is_2x .medadd_h,
- 211. - .is_2x .group_share_club,
- 212. - .is_2x .group_ad_post_stats,
- 213. - .is_2x .group_ad_post_link,
- 214. - .is_2x .exchange_ad_post_stats,
- 215. - .is_2x .exchange_ad_post_link {
- 216. - background-image: url(/images/icons/mono_iconset_2x.png?2);
- 217. - background-size: 11px 360px;
- 218. - }
- 219. - .is_2x .ge_ad_box_fields {
- 220. - background-image: url(/images/join/adspost_2x.png);
- 221. - background-size: 160px 160px;
- 222. + .is_2x .medadd_h {
- 223. + background-image: url(/images/icons/mono_iconset_2x.png?1);
- 224. + background-size: 11px 346px;
- 227. - background: none;
- 228. - }
- 229. -
- 230. - .is_2x .feed_tab_add_icon,
- 231. - .is_2x .feed_filter_tabs_icon,
- 232. - .is_2x .feed_filter_tabs_check {
- 233. - background-image: url(/images/icons/news_iconset_2x.png?2);
- 234. - background-size: 16px 176px;
- 235. - }
- 236. - .is_2x .feed_filter_lists_row .feed_filter_tabs_icon,
- 237. - .is_2x .feed_icon_newlist {
- 242. - .is_2x .page_verified,
- 243. + .is_2x .profile_verified,
- 247. - .is_2x .search_verified,
- 248. - .is_2x .wall_post_source_icon,
- 249. - .is_2x .page_fronly {
- 250. - background-image: url(/images/profile_icons_2x.png?10);
- 251. - background-size: 13px 241px;
- 252. + .is_2x .search_verified {
- 253. + background-image: url(/images/profile_icons_2x.png);
- 254. + background-size: 13px 98px;
- 288. - .is_2x #search_query_wrap.wide #search_query_progress,
- 289. - .is_2x .docs_search_bar .docs_loading_bar {
- 290. + .is_2x #search_query_wrap.wide #search_query_progress {
- 294. - .is_2x .emoji_smile_icon_on,
- 295. - .is_2x .emoji_smile_icon,
- 296. - .is_2x .mbe_smile_icon_on,
- 297. - .is_2x .mbe_smile_icon {
- 298. + .is_2x .im_smile_icon_on,
- 299. + .is_2x .im_smile_icon {
- 315. - .is_2x .emoji_pointer {
- 316. + .is_2x #im_emoji_pointer {
- 335. - .is_2x #photo_default_check,
- 336. - .is_2x .join_fb_progress {
- 337. + .is_2x #photo_default_check {
- 348. - .is_2x .post_upload_wrap div.post_upload,
- 349. - .is_2x .im_upload_wrap div.im_upload {
- 350. + .is_2x .post_upload_wrap div.post_upload {
- 358. - .is_2x .mvs_header_text,
- 359. - .is_2x .olist_dd_over {
- 360. + .is_2x .mvs_header_text {
- 412. - .is_2x .page_pics_preview .page_media_x,
- 413. - .is_2x #im_media_preview .im_x,
- 414. - .is_2x #im_media_dpreview .im_x,
- 415. - .is_2x #im_media_mpreview .im_x,
- 416. - .is_2x .owner_photo_bubble_delete,
- 417. - .is_2x .app_delete_el {
- 418. + .is_2x .page_pics_preview .page_media_x {
- 440. - .is_2x .emoji_smile_shadow {
- 441. + .is_2x .im_emoji_smile_cont {
- 477. - .is_2x .video_module .video div.page_video_play_icon,
- 495. + .is_2x .ads_edit_tt_pointer,
- 500. - .is_2x .audio_status_tt .tail,
- 503. - .is_2x .tickets_side_tt.time .tail,
- 504. - .is_2x .apps_edit_side_tt_pointer {
- 505. + .is_2x .tickets_side_tt.time .tail {
- 542. + .is_2x .notes_checkbox,
- 557. - .is_2x .side_filter.loading,
- 558. - .is_2x .progress_inv_mini {
- 559. + .is_2x .side_filter.loading {
- 577. + }
- 578. + .is_2x .selector_container td.selector_dropdown {
- 579. + background-image: url(/images/darr_dd_out_2x.gif);
- 580. + background-size: 7px 4px;
- 592. - .is_2x .apps_featured_icon {
- 593. - background-image: url(/images/icons/apps_featured_arrow_2x.png);
- 594. - background-size: 26px 21px;
- 595. + .is_2x .apps_featured_slide {
- 596. + background-image: url(/images/pics/apps_slide_2x.png);
- 597. + background-size: 6px 15px;
- 622. - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAiCAYAAABFlhkzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARNJREFUeNrcltsJwjAUhpNapPgkCI7gBLqAuIFz6gRqB7BdQDcQBPVBxEviSWmld5P0L4IHwmlD8n1N2iTlp/NFMgo/3DMpJZvPJn26vVJ5MIMQQpTWO8mFgnMeXbrp+qaRAUnJ4OGwluMnAlXXQck/kOl4FOXFanug5FHpIiQZQEpypNRDSAqd0ZLSjkhJZSeUpLYDQvK1cSJZrgMriVZDJVF7lc1ItJ/EdrqM5tNGYvxV5CRevK1gNztu0NY1hW+CXZTp5BtQulF5wUaQg6tj9a5OS4jABq4t8EM7uNY7sH1yrRE0hdcKEPBKAQpeKkDCCwI0PCNIwYfxCm0Mr3oHIl7+jeH/++vYuuCJmn8VbwEGAGvuiUVvn8vPAAAAAElFTkSuQmCC);
- 623. - background-size: 12px 17px;
- 624. + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAARCAYAAADpPU2iAAAArUlEQVR42pWSTQrCQAyFQ4eh4mz8A6uiKAgeXg8guHbjaeYGbQYivkkTxcK3e9880oRyzv31/uyJKAEBqD8QZsxCmDJRcIUVs2Y6kFqRQiUUbo9XkQ7CTqQEbaESQDozJyVNTAGkC3NkNjLbp0ULqmnPLKUlmg3GTCgEVwDprwY9A32bYQt/KbqCEW6rjRvhzgg33qZLcC6LGp+FuqX3GaTRq44Q4UU7bAjNL2EAU9kEmwVnt3EAAAAASUVORK5CYII%3D);
- 627. - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAiCAYAAABFlhkzAAAAsUlEQVR42u2XQQ5AMBBFG4kQG0Lc/wZ6Ak7AXXCBmrEQEWGm7UwsNPnb9xqaP60x8VYKKbt+dHaY3LyseyLyTQZp7DA6lIgJEP4L7lYCKSCthADhOaS+wmMIHuGhgld4iIAE9xWQ4T4CFpwrOODYNRQ4R8DeOUfgDacIguAUAXZ85QtnCayQQPwTif9klWN6K8HZG1sgXhUqZadS1yoDR2Vkqgx9lWvLf3X8juB4gJwFG+W12jVqcG4VAAAAAElFTkSuQmCC);
- 628. + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAiCAYAAABFlhkzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARNJREFUeNrcltsJwjAUhpNapPgkCI7gBLqAuIFz6gRqB7BdQDcQBPVBxEviSWmld5P0L4IHwmlD8n1N2iTlp/NFMgo/3DMpJZvPJn26vVJ5MIMQQpTWO8mFgnMeXbrp+qaRAUnJ4OGwluMnAlXXQck/kOl4FOXFanug5FHpIiQZQEpypNRDSAqd0ZLSjkhJZSeUpLYDQvK1cSJZrgMriVZDJVF7lc1ItJ/EdrqM5tNGYvxV5CRevK1gNztu0NY1hW+CXZTp5BtQulF5wUaQg6tj9a5OS4jABq4t8EM7uNY7sH1yrRE0hdcKEPBKAQpeKkDCCwI0PCNIwYfxCm0Mr3oHIl7+jeH/++vYuuCJmn8VbwEGAGvuiUVvn8vPAAAAAElFTkSuQmCC);
- 639. - .is_2x .page_album_camera,
- 640. - .is_2x .photos_choose_album_camera,
- 693. + .is_2x #im_media_preview .im_media_x,
- 721. + }
- 722. + .is_2x .token span.x_hover,
- 723. + .is_2x .token span.x,
- 724. + {
- 725. + background-image: url('/images/blob_x.gif');
- 726. + background-size: 9px 10px;
- 738. - .is_2x .button_blue button,
- 739. - .is_2x .button_gray button {
- 740. - background-image: url(/images/button_bgf_2x.png?1);
- 741. - background-size: 1px 96px;
- 742. + .is_2x .button_blue button {
- 743. + background-image: url('/images/button_vk_2x.png');
- 744. + background-size: 1px 84px;
- 745. + }
- 746. + .is_2x .button_blue button:active {
- 747. + background: #5e80a5;
- 764. + }
- 765. + .is_2x .mail_box_content img {
- 766. + max-width: 80px;
- 796. - .is_2x .wall_module .reply_edit_button,
- 797. - .is_2x .wall_module .post_edit_button,
- 798. - .is_2x .docs_edit_row {
- 799. + .is_2x .wall_module .reply_edit_button {
- 806. - }
- 807. - .is_2x .payments_box_wide .payments_getvotes_method_img {
- 808. - background-image: url(/images/icons/payments_w_2x.png);
- 809. - background-size: 41px 164px;
- 810. - }
- 811. - .is_2x .payments_logo_cards {
- 812. - background-image: url(/images/pics/cards_2x.png);
- 813. - background-size: 222px 52px;
- 814. - }
- 815. - .is_2x .payments_logo_webmoney {
- 816. - background-image: url(/images/ps/webmoney_2x.png);
- 817. - background-size: 126px 40px;
- 818. - }
- 819. - .is_2x .payments_logo_kiwipurse {
- 820. - background-image: url(/images/ps/qiwiwallet_2x.png);
- 821. - background-size: 110px 40px;
- 822. - }
- 823. - .is_2x .payments_logo_yandexmoney {
- 824. - background-image: url(/images/ps/yandexmoney_2x.png);
- 825. - background-size: 106px 45px;
- 826. - }
- 827. - .is_2x .payments_logo_checkout {
- 828. - background-image: url(/images/ps/googlewallet_2x.png);
- 829. - background-size: 190px 40px;
- 837. + }
- 838. + .is_2x .page_fronly {
- 839. + background-image: url(/images/private_post_2x.png);
- 840. + background-size: 8px 9px;
- 845. - }
- 846. - .is_2x #status_export.checkbox_pic, .is_2x #facebook_export.checkbox_pic, .is_2x #own_status_export.checkbox_pic, .is_2x #own_facebook_export.checkbox_pic, .is_2x .checkbox_status_export, .is_2x .checkbox_facebook_export {
- 847. - background-image: url(/images/icons/wall_export_2x.gif);
- 848. - background-size: 14px 112px;
- 849. - }
- 850. - .is_2x .flist_item_action, .is_2x #flist_sel_list .flist_item_action {
- 851. - background-image: url(/images/icons/lite_acts_12x12_2x.png);
- 852. - background-size: 12px 24px;
- 853. - }
- 854. - .is_2x .wdd_add_plus {
- 855. - background-image: url(/images/pics/im_plus_2x.gif);
- 856. - background-size: 11px 11px;
- 857. - }
- 858. - .is_2x #html5_player .play_button,
- 859. - .is_2x #html5_player .pause_button,
- 860. - .is_2x #html5_player .big_play,
- 861. - .is_2x #html5_player .volume_button,
- 862. - .is_2x #html5_player .quality_button .quality_val,
- 863. - .is_2x #html5_player .quality_button #quality_label,
- 864. - .is_2x #html5_player #video_actions .add,
- 865. - .is_2x #html5_player #video_actions .rotate,
- 866. - .is_2x #html5_player #video_actions .logo,
- 867. - .is_2x #html5_player .vid_like_fg,
- 868. - .is_2x #html5_player .vid_share_fg,
- 869. - .is_2x #html5_player .vid_link_fg {
- 870. - background-image: url(/images/video/iconset_2x.png?2);
- 871. - background-size: 380px 54px;
- 872. - }
- 873. - .is_2x .wall_album_nocover,
- 874. - .is_2x .pva_no_photos,
- 875. - .is_2x #photos_albums_container .photo_row .img_link.no_photo,
- 876. - .is_2x .photos_choose_album_link.no_photo {
- 877. - background-image: url(/images/camera_big_2x.png);
- 878. - background-size: 64px 48px;
- 879. - }
- 880. -
- 881. - .is_2x .dropbox, .is_2x .dropbox.choose {
- 882. - background-image: url(/images/dropbox_arrow_2x.png);
- 883. - background-size: 63px 44px;
- 884. - }
- 885. - .is_2x .owner_photo_bubble_action_in {
- 886. - background-image: url(/images/edit_photo_icons_white_2x.png);
- 887. - background-size: 16px 88px;
- 888. - }
- 889. - .is_2x .owner_photo_bubble_action_in {
- 890. - background-image: url(/images/edit_photo_icons_white_2x.png);
- 891. - background-size: 16px 88px;
- 892. - }
- 893. - .is_2x #privacy_custom_box .minus_friends {
- 894. - background-image: url(/images/minus_2x.png);
- 895. - background-size: 16px 16px;
- 896. - }
- 897. - .is_2x #privacy_custom_box .plus_friends {
- 898. - background-image: url(/images/plus_2x.png);
- 899. - background-size: 15px 19px;
- 900. - }
- 901. - .is_2x .index_fb_logo {
- 902. - background-image: url(/images/icons/facebook_btn_icon_2x.png);
- 903. - background-size: 8px 16px;
- 904. - }
- 905. - .is_2x .index_fb_btn button {
- 906. - background-image: url(/images/fb_buttonf_2x.png);
- 907. - background-size: 1px 44px;
- 908. - }
- 909. - .is_2x .photos_choose_row_add .icon {
- 910. - background-image: url(/images/icons/check_white_2x.png);
- 911. - background-size: 14px 13px;
- 912. - }
- 913. - .is_2x .wdd_arr {
- 914. - background-image: url(/images/wide_dd_2x.png);
- 915. - background-size: 21px 24px;
- 916. - }
- 917. - .is_2x .video_share_icon {
- 918. - background-image: url(/images/icons/videoexporticons_2x.png);
- 919. - }
- 920. - .is_2x .olympics_bar_img {
- 921. - background-image: url(/images/olymp_mono_2x.png);
- 922. - background-size: 59px 28px;
- 923. - }
- 924. - .is_2x .olympics_bar_img.sochi {
- 925. - background-image: url(/images/sochi2014_2x.png);
- 926. - background-size: 50px 33px;
- 927. - }
- 928. - .is_2x .app_new_sticker {
- 929. - background-image: url(/images/icons/new_app_en_2x.png);
- 930. - background-size: 60px 60px;
- 931. - }
- 932. - .is_2x .apps_sticker_ru {
- 933. - background-image: url(/images/icons/new_app_ru_2x.png);
- 934. - }
- 935. - .is_2x .apps_sticker_ua {
- 936. - background-image: url(/images/icons/new_app_ua_2x.png);
- 937. - }
- 938. - .is_2x .audio_new_sticker {
- 939. - background-image: url(/images/icons/new_audio_en_2x.png);
- 940. - background-size: 58px 58px;
- 941. - }
- 942. - .is_2x .audio_sticker_ru {
- 943. - background-image: url(/images/icons/new_audio_ru_2x.png);
- 944. - }
- 945. - .is_2x .audio_sticker_ua {
- 946. - background-image: url(/images/icons/new_audio_ua_2x.png);
- 947. - }
- 948. - .is_2x .pv_filter_font_icon {
- 949. - background-image: url('/images/icons/switch_fonts_2x.png');
- 950. - background-size: 17px 25px;
- 951. - }
- 952. - .is_2x .checkin_big {
- 953. - background-image: url(/images/icons/checkin_big_2x.png);
- 954. - background-size: 17px 22px;
- ------
- Файл - exchange.css (Старый размер - 12283 | Новый - 0):
- 0. - #exchange_css {
- 1. - display: none;
- 2. - }
- 3. -
- 4. - #ads_page.exchange_page {
- 5. - padding: 20px;
- 6. - }
- 7. - .exchange_not_found {
- 8. - margin: 20px 20px 15px;
- 9. - padding: 20px 0;
- 10. - line-height: 200%;
- 11. - text-align: center;
- 12. - color: #777;
- 13. - }
- 14. - .exchange_not_found.table {
- 15. - margin: 0px;
- 16. - background-color: #f7f7f7;
- 17. - }
- 18. -
- 19. - .exchange_table {
- 20. - border-collapse: collapse;
- 21. - width: 100%;
- 22. - }
- 23. - .exchange_table th {
- 24. - padding: 9px 8px 11px 5px;
- 25. - background-color: #e9edf0;
- 26. - color: #587183;
- 27. - font-weight: bold;
- 28. - white-space: nowrap;
- 29. - }
- 30. - .exchange_table th:first-child {
- 31. - padding-left: 10px;
- 32. - }
- 33. - .exchange_table tr {
- 34. - border-left: 1px solid #e9edf0;
- 35. - border-right: 1px solid #e9edf0;
- 36. - }
- 37. - #exchange_comm_search_table.exchange_table tr {
- 38. - border-left: none;
- 39. - border-right: none;
- 40. - }
- 41. - .exchange_table tr.even {
- 42. - background-color: #f5f7f7;
- 43. - }
- 44. - .exchange_table tr:first-child {
- 45. - border-top: 1px solid #e9edf0;
- 46. - }
- 47. - .exchange_table tr:last-child {
- 48. - border-bottom: 1px solid #e9edf0;
- 49. - }
- 50. - #exchange_comm_search_table.exchange_table tr:first-child {
- 51. - border-top: none;
- 52. - }
- 53. - #exchange_comm_search_table.exchange_table tr:last-child {
- 54. - border-bottom: none;
- 55. - }
- 56. - .exchange_table td {
- 57. - padding: 10px 5px;
- 58. - text-align: left;
- 59. - vertical-align: top;
- 60. - line-height: 160%;
- 61. - }
- 62. - #exchange_requests_list_table.exchange_table td,
- 63. - #exchange_info_requests_table.exchange_table td {
- 64. - padding: 6px 5px;
- 65. - }
- 66. - .exchange_table td:first-child {
- 67. - padding-left: 10px !important;
- 68. - }
- 69. - .exchange_table td:last-child {
- 70. - padding-right: 10px;
- 71. - }
- 72. - .exchange_table td.not_found {
- 73. - padding: 0px !important;
- 74. - }
- 75. - .exchange_table .grey {
- 76. - color: #666666;
- 77. - display: inline-block;
- 78. - min-width: 40px;
- 79. - margin-right: 5px;
- 80. - }
- 81. - .exchange_table .green {
- 82. - color: #37702a;
- 83. - }
- 84. - .exchange_table .red {
- 85. - color: #aa3333;
- 86. - }
- 87. - th.exchange_table_col_no_sorted {
- 88. - cursor: pointer;
- 89. - }
- 90. - .is_2x th.exchange_table_col_sort {
- 91. - background-image: url(/images/wide_dd_2x.png);
- 92. - }
- 93. - .button_blue button.exchange_btn_with_arr {
- 94. - padding-left: 8px;
- 95. - padding-right: 0;
- 96. - }
- 97. - .exchange_btn_with_arr span {
- 98. - padding-right: 20px;
- 99. - background: url(/images/backlink.gif) no-repeat 105% -126px;
- 100. - }
- 101. - #exchange_box_comment {
- 102. - width: 322px;
- 103. - margin-top: 10px;
- 104. - }
- 105. - .exchange_box_send_wrap {
- 106. - margin-top: 10px;
- 107. - }
- 108. -
- 109. - #exchange_comm_search_wrap {
- 110. - background-color: #F7F7F7;
- 111. - }
- 112. - #exchange_comm_search {
- 113. - border-right: 1px solid #DAE1E8;
- 114. - position: relative;
- 115. - right: 180px;
- 116. - background-color: #FFF;
- 117. - }
- 118. - #exchange_comm_search_table {
- 119. - margin: 15px 10px;
- 120. - width: 588px;
- 121. - position: relative;
- 122. - left: 180px;
- 123. - }
- 124. - #exchange_comm_search_table td {
- 125. - line-height: 160%;
- 126. - }
- 127. - #exchange_comm_search_filters {
- 128. - padding: 0 10px 10px 10px;
- 129. - width: 160px;
- 130. - position: relative;
- 131. - left: 181px;
- 132. - }
- 133. - #exchange_comm_search_count {
- 134. - color: #9cabb8;
- 135. - }
- 136. -
- 137. - .exchange_comm_thumb {
- 138. - width: 50px;
- 139. - }
- 140. - .exchange_comm_thumb img {
- 141. - width: 50px;
- 142. - height: 50px;
- 143. - display: block;
- 144. - -moz-border-radius: 3px;
- 145. - -webkit-border-radius: 3px;
- 146. - -khtml-border-radius: 3px;
- 147. - border-radius: 3px;
- 148. - }
- 149. - .exchange_comm_name {
- 150. - display: block;
- 151. - font-weight: bold;
- 152. - width: 104px;
- 153. - white-space: nowrap;
- 154. - overflow: hidden;
- 155. - text-overflow: ellipsis;
- 156. - text-align: left;
- 157. - }
- 158. - .exchange_club_info {
- 159. - background-color: #f7f7f7;
- 160. - padding: 20px 30px;
- 161. - }
- 162. - .exchange_comm_info {
- 163. - padding-left: 10px;
- 164. - }
- 165. - .exchange_comm_title {
- 166. - font-weight: bold;
- 167. - max-width: 280px;
- 168. - white-space: nowrap;
- 169. - overflow: hidden;
- 170. - text-overflow: ellipsis;
- 171. - }
- 172. - .exchange_comm_info_row {
- 173. - color: #666;
- 174. - padding-top: 5px;
- 175. - }
- 176. - .exchange_comm_info_row .label {
- 177. - width: 80px;
- 178. - }
- 179. - .exchange_comm_label {
- 180. - color: #777;
- 181. - }
- 182. - .exchange_filter_label {
- 183. - padding: 15px 0 7px 0;
- 184. - font-weight: bold;
- 185. - color: #777;
- 186. - }
- 187. - #exchange_comm_search_filters input {
- 188. - width: 142px;
- 189. - }
- 190. - #exchange_comm_search_filters input.text {
- 191. - padding: 6px 8px 7px !important;
- 192. - }
- 193. - #exchange_tasks_list,
- 194. - #exchange_requests_list {
- 195. - padding-top: 4px;
- 196. - }
- 197. - #exchange_tasks_list_table {
- 198. - margin-top: 12px;
- 199. - }
- 200. - #exchange_requests_list_table {
- 201. - margin-top: 12px;
- 202. - }
- 203. - #exchange_tasks_list_table .title {
- 204. - width: 250px;
- 205. - overflow: hidden;
- 206. - text-overflow: ellipsis;
- 207. - }
- 208. - #exchange_tasks_list_table .actions {
- 209. - width: 130px;
- 210. - }
- 211. - .exchange_new_btn {
- 212. - margin-top: 2px;
- 213. - }
- 214. - .exchange_grey {
- 215. - color: #777;
- 216. - }
- 217. - .exchange_table_hint {
- 218. - color: #9cabb8;
- 219. - font-size: 0.91em;
- 220. - cursor: pointer;
- 221. - }
- 222. - .exchange_comm_info_row .exchange_table_hint {
- 223. - font-size: 1em;
- 224. - }
- 225. - .exchange_task_label .title {
- 226. - font-weight: bold;
- 227. - }
- 228. - .exchange_task_label a,
- 229. - .exchange_task_actions a {
- 230. - color: #45688E;
- 231. - }
- 232. - .exchange_task_label .date,
- 233. - .exchange_request_club .size {
- 234. - color: #777;
- 235. - padding: 7px 0px 0px;
- 236. - }
- 237. - .exchange_task_request {
- 238. - color: #555;
- 239. - }
- 240. - .exchange_task_actions .view {
- 241. - padding-top: 7px;
- 242. - }
- 243. - #exchange_post_requests .exchange_tabs {
- 244. - padding-top: 3px;
- 245. - }
- 246. - .exchange_subtab1 {
- 247. - float: left;
- 248. - -moz-border-radius: 2px;
- 249. - border-radius: 2px;
- 250. - cursor: pointer;
- 251. - margin-right: 5px;
- 252. - color: #2B587A;
- 253. - }
- 254. - .exchange_subtab1.hidden {
- 255. - display: none;
- 256. - }
- 257. - .exchange_subtab1:hover {
- 258. - background-color: #E1E7ED;
- 259. - }
- 260. - .exchange_subtab1.active {
- 261. - background-color: #597DA3;
- 262. - color: white;
- 263. - cursor: default;
- 264. - }
- 265. - .exchange_subtab2 {
- 266. - padding: 3px 6px 4px;
- 267. - }
- 268. - .exchange_subtab_cnt {
- 269. - display: inline-block;
- 270. - padding-left: 3px;
- 271. - font-weight: bold;
- 272. - color: #6E859E;
- 273. - }
- 274. - .exchange_subtab1.active .exchange_subtab_cnt {
- 275. - color: #d5dde3;
- 276. - }
- 277. - .is_rtl1 .exchange_subtab_cnt {
- 278. - padding-left: 0px;
- 279. - padding-right: 3px;
- 280. - }
- 281. - #exchange_requests_list_table th.title,
- 282. - #exchange_requests_list_table th.club {
- 283. - width: 180px;
- 284. - }
- 285. - #exchange_requests_list_table th.status {
- 286. - width: 90px;
- 287. - }
- 288. - .exchange_request_task .title,
- 289. - .exchange_request_club .title {
- 290. - font-weight: bold;
- 291. - max-width: 190px;
- 292. - overflow: hidden;
- 293. - text-overflow: ellipsis;
- 294. - }
- 295. - .exchange_request_task a,
- 296. - .exchange_request_club a {
- 297. - color: #45688E;
- 298. - }
- 299. - .exchange_request_status .extra_info {
- 300. - padding-top: 3px;
- 301. - }
- 302. - #exchange_info_requests_table .exchange_request_price {
- 303. - max-width: 400px;
- 304. - }
- 305. - .exchange_request_price .extra_info {
- 306. - padding-bottom: 3px;
- 307. - }
- 308. - .exchange_request_status span {
- 309. - display: inline-block;
- 310. - vertical-align: top;
- 311. - }
- 312. - .exchange_request_actions{
- 313. - white-space: nowrap;
- 314. - }
- 315. - #exchange_post_msg_wrap {
- 316. - width: 440px;
- 317. - }
- 318. - #exchange_post_msg {
- 319. - background-color: #edf1f5;
- 320. - padding: 6px 10px 10px;
- 321. - }
- 322. - #exchange_post_msg_wrap.short #exchange_post_msg {
- 323. - max-height: 150px;
- 324. - overflow: hidden;
- 325. - }
- 326. - #exchange_post_msg .wall_post_text,
- 327. - #exchange_post_msg .wpe_buttons {
- 328. - width: 420px;
- 329. - }
- 330. - #exchange_post_msg #wpe_text {
- 331. - width: 412px;
- 332. - }
- 333. - #exchange_post_msg #wpe_cont {
- 334. - margin-top: 4px;
- 335. - }
- 336. - #exchange_post_msg .fw_post_author,
- 337. - #exchange_post_msg .wpe_info {
- 338. - display: none;
- 339. - }
- 340. - .exchange_title_head {
- 341. - border-bottom: 1px solid #dee1e3;
- 342. - color: #45688E;
- 343. - margin: 1px 0 8px;
- 344. - padding: 0 0 4px;
- 345. - text-align: left;
- 346. - }
- 347. - .exchange_title_head .title {
- 348. - font-size: 1.09em;
- 349. - font-weight: bold;
- 350. - }
- 351. - #exchange_post_info_wrap {
- 352. - width: 290px;
- 353. - }
- 354. - .exchange_post_info_row {
- 355. - padding-bottom: 7px;
- 356. - }
- 357. - .exchange_post_info_row .label {
- 358. - width: 150px;
- 359. - color: #666666;
- 360. - }
- 361. - #exchange_post_wrap .exchange_post_info_row .label {
- 362. - width: 125px;
- 363. - }
- 364. - #ads_post_title_text {
- 365. - max-width: 165px;
- 366. - overflow: hidden;
- 367. - text-overflow: ellipsis;
- 368. - white-space: nowrap;
- 369. - position: relative;
- 370. - }
- 371. - .exchange_post_info_empty_row {
- 372. - padding-top: 10px;
- 373. - }
- 374. - .exchange_info_search {
- 375. - margin: 10px 0px;
- 376. - }
- 377. - #exchange_post_requests {
- 378. - padding-top: 20px;
- 379. - }
- 380. - #exchange_info_requests_table {
- 381. - margin-top: 12px;
- 382. - }
- 383. - #exchange_post_stats {
- 384. - padding-top: 20px;
- 385. - }
- 386. - #wrapper_ads_post_stats_graph {
- 387. - padding-top: 10px;
- 388. - }
- 389. - #ads_post_stats_graph .graph_menu_item {
- 390. - margin-top: -4px;
- 391. - }
- 392. - #exchange_box_error {
- 393. - margin-bottom: 10px;
- 394. - }
- 395. - #exchange_request_box_error {
- 396. - margin-bottom: 18px;
- 397. - display: none;
- 398. - }
- 399. - .exchange_request_title {
- 400. - color: #45688E;
- 401. - line-height: 1.27em;
- 402. - margin: 0px;
- 403. - padding: 26px 0px 9px;
- 404. - font-size: 1.09em;
- 405. - font-weight: bold;
- 406. - }
- 407. - .exchange_request_info {
- 408. - padding: 0 20px 22px 30px;
- 409. - }
- 410. - #exchange_request_time_from_d_datepicker_container,
- 411. - #exchange_request_time_to_d_datepicker_container {
- 412. - display: none;
- 413. - }
- 414. - .exchange_date_sep {
- 415. - width: 30px;
- 416. - height: 20px;
- 417. - line-height: 20px;
- 418. - text-align: center;
- 419. - }
- 420. - #exchange_request_comment {
- 421. - width: 282px;
- 422. - }
- 423. - .exchange_comm_title a {
- 424. - color: #45688e;
- 425. - }
- 426. - .exchange_comm_thumb_box {
- 427. - width: 75px;
- 428. - }
- 429. - .exchange_comm_thumb_box img {
- 430. - width: 75px;
- 431. - height: 75px;
- 432. - display: block;
- 433. - -moz-border-radius: 3px;
- 434. - -webkit-border-radius: 3px;
- 435. - -khtml-border-radius: 3px;
- 436. - border-radius: 3px;
- 437. - }
- 438. - #exchange_post_msg_more {
- 439. - margin-top: -3px;
- 440. - display: none;
- 441. - overflow: hidden;
- 442. - }
- 443. - #exchange_post_msg_wrap.short #exchange_post_msg_more {
- 444. - display: block;
- 445. - }
- 446. - #exchange_post_msg_more a {
- 447. - display: block;
- 448. - text-align: center;
- 449. - color: #45688E;
- 450. - padding: 10px 0px 12px;
- 451. - background: #E7ECF1;
- 452. - }
- 453. - #exchange_post_msg_more a:hover {
- 454. - text-decoration: none;
- 455. - background: #E0E6EC;
- 456. - }
- 457. - #exchange_post_msg_more .more_sh {
- 458. - background: #C1C7CA;
- 459. - height: 3px;
- 460. - overflow: hidden;
- 461. - position: relative;
- 462. - z-index: 1550;
- 463. - opacity: 0.55;
- 464. - filter: alpha(opacity=55);
- 465. - }
- 466. - #exchange_info_archive.loading {
- 467. - background: url(/images/upload.gif) no-repeat 100% 50%;
- 468. - }
- 469. - #exchange_info_archive.loading a {
- 470. - visibility: hidden;
- 471. - }
- 472. - #exchange_info_in_archive {
- 473. - color: #909090;
- 474. - padding-top: 10px;
- 475. - }
- 476. - #exchange_tasks_info {
- 477. - padding: 2px 0 20px;
- 478. - }
- 479. - a.exchange_ad_post_stats,
- 480. - a.exchange_ad_post_link {
- 481. - display: inline-block;
- 482. - margin: 3px 5px 0 0;
- 483. - padding: 0;
- 484. - width: 18px;
- 485. - height: 18px;
- 486. - background: #ebeff5 url(/images/icons/mono_iconset.gif) no-repeat 4px -204px;
- 487. - }
- 488. - a.exchange_ad_post_link {
- 489. - background-position: 4px -233px;
- 490. - }
- 491. - a.exchange_ad_post_stats:hover,
- 492. - a.exchange_ad_post_link:hover {
- 493. - background-color: #dde4ed;
- 494. - }
- 495. - #ads_post_title_input,
- 496. - #ads_post_title_link {
- 497. - position: relative;
- 498. - }
- 499. - #ads_post_title_text {
- 500. - border-bottom: 1px dashed #2B587A;
- 501. - text-decoration: none;
- 502. - display: block;
- 503. - position: absolute;
- 504. - }
- 505. - #ads_post_title {
- 506. - width: 160px;
- 507. - position: absolute;
- 508. - top: -4px;
- 509. - left: -4px;
- 510. - }
- 511. - .exchange_post_more {
- 512. - position: relative;
- 513. - top: 2px;
- 514. - font-weight: bold;
- 515. - color: #91A4B8;
- 516. - -webkit-transition: color 200ms linear;
- 517. - -moz-transition: color 200ms linear;
- 518. - -o-transition: color 200ms linear;
- 519. - transition: color 200ms linear;
- 520. - }
- 521. - .exchange_post_more:hover {
- 522. - color: #45688E;
- 523. - text-decoration: none;
- 524. - }
- 525. - .exchange_info_msg {
- 526. - background-color: #FFFFFF;
- 527. - border: 1px solid #BCC9D7;
- 528. - font-weight: normal;
- 529. - padding: 8px 11px;
- 530. - line-height: 160%;
- 531. - }
- 532. - .dark_box_cont.exchange {
- 533. - padding-top: 20px;
- 534. - }
- 535. - .dark_box_cont.exchange .dark_box_label {
- 536. - padding-top: 20px;
- 537. - }
- 538. - .wk_postbox_content.exchange #wk_content {
- 539. - width: 510px;
- 540. - }
- 541. - .wk_postbox_content.exchange #pb_title {
- 542. - padding: 5px 4px 6px !important;
- 543. - width: 448px;
- 544. - }
- 545. - .wk_postbox_content.exchange #pb_text {
- 546. - width: 446px;
- 547. - }
- 548. - .wk_postbox_content.exchange #pb_send_btn {
- 549. - margin-top: 0px;
- 550. - }
- 551. - .wk_postbox_content.exchange #pb_error {
- 552. - margin-top: 4px;
- 553. - margin-bottom: 14px;
- 554. - }
- 555. - .wk_postbox_content.exchange #wk_close_link {
- 556. - padding: 17px 26px 18px;
- 557. - }
- 558. -
- 559. - #filter_city_row {
- 560. - padding-top: 7px;
- 561. - }
- 562. - #exchange_search_input {
- 563. - padding: 5px 20px;
- 564. - width: 563px;
- 565. - background: url(/images/magglass.png) no-repeat scroll 141px 7px white;
- 566. - height: 13px;
- 567. - outline: none;
- 568. - }
- 569. - #exchange_search_input::-ms-clear {
- 570. - display: none;
- 571. - }
- 572. - #exchange_search_progress {
- 573. - background: url("/images/upload.gif") no-repeat scroll center center transparent;
- 574. - display: none;
- 575. - height: 23px;
- 576. - margin-left: -41px;
- 577. - margin-top: 1px;
- 578. - position: relative;
- 579. - width: 32px;
- 580. - z-index: 95;
- 581. - }
- 582. - #exchange_search_wrap.loading #exchange_search_input {
- 583. - background-image: none;
- 584. - }
- 585. - #exchange_search_wrap.loading #exchange_search_progress {
- 586. - display: block;
- 587. - }
- 588. - #exchange_more_results td {
- 589. - padding: 0;
- 590. - border-bottom: none;
- 591. - }
- 592. - #exchange_more_results a {
- 593. - display: block;
- 594. - padding: 10px 0px;
- 595. - margin: 0;
- 596. - text-align: center;
- 597. - }
- 598. - #exchange_more_results a:hover {
- 599. - background: #E1E7ED;
- 600. - border-color: #DAE1E8;
- 601. - text-decoration: none;
- 602. - }
- 603. -
- 604. - #exchange_button_send {
- 605. - display: block;
- 606. - padding-top: 15px;
- 607. - }
- 608. - #exchange_requests_terms {
- 609. - width: 290px;
- 610. - line-height: 160%;
- 611. - padding-top: 12px;
- 612. - }
- 613. - .exchange_hint_tt .tail_wrap {
- 614. - position: absolute;
- 615. - top: auto;
- 616. - bottom: -5px;
- 617. - left: 17px;
- 618. - z-index: 2001;
- 619. - }
- 620. - .exchange_hint_tt .tail {
- 621. - background: url(/images/ddtooltip.png) -3px -5px no-repeat;
- 622. - width: 11px;
- 623. - height: 8px;
- 624. - }
- 625. - .exchange_hint_tt .hint_wrap {
- 626. - width: 273px;
- 627. - padding: 8px 5px;
- 628. - line-height: 160%;
- 629. - color: #000000;
- 630. - }
- 631. -
- ------
- Файл - exchange.js (Старый размер - 12857 | Новый - 0):
- 0. - var Exchange = {
- 1. - initOfficesMenu: function(event) {
- 2. - if (!window.DropdownMenu || !cur.mainNavigationOfficesItems) {
- 3. - return;
- 4. - }
- 5. -
- 6. - if (cur.navigationOficesMenu) {
- 7. - return;
- 8. - }
- 9. -
- 10. - ge('ads_navigation_offices_menu').removeAttribute('onmouseover');
- 11. -
- 12. - function hideMenu() {
- 13. - cur.navigationOficesMenu.hide();
- 14. - }
- 15. -
- 16. - var realLocation = '';
- 17. - if (location.hash.indexOf('#/') != -1 || location.hash.indexOf('#!') != -1) {
- 18. - realLocation = location.hash.replace('#/', '').replace('#!', '');
- 19. - } else {
- 20. - realLocation = location.pathname + location.search;
- 21. - }
- 22. -
- 23. - var unionId;
- 24. - var unionIdReal;
- 25. - var unionIdParam = '';
- 26. - var curItems = [];
- 27. - for (var i in cur.mainNavigationOfficesItems) {
- 28. - curItems[i] = {};
- 29. - curItems[i].onClick = hideMenu;
- 30. - for (var j in cur.mainNavigationOfficesItems[i]) {
- 31. - curItems[i][j] = cur.mainNavigationOfficesItems[i][j];
- 32. - }
- 33. -
- 34. - unionId = '';
- 35. - unionIdReal = intval(curItems[i].i);
- 36. - unionIdParam = '';
- 37. - if (curItems[i].i.indexOf('default') == -1) {
- 38. - unionId = unionIdReal;
- 39. - unionIdParam = "&union_id=" + unionIdReal;
- 40. - }
- 41. -
- 42. - var link = "/exchange" + (unionIdParam ? '?' + unionIdParam : '');
- 43. - if (!unionIdReal) {
- 44. - link = "/exchange?act=no_office";
- 45. - } else if (cur.getOfficeLink) {
- 46. - link = cur.getOfficeLink(unionId);
- 47. - } else if (realLocation.match(/act=budget(&|$)/)) {
- 48. - link = "/exchange?act=budget" + unionIdParam;
- 49. - } else if (realLocation.match(/act=export_stats(&|$)/)) {
- 50. - link = "/exchange?act=export_stats" + unionIdParam;
- 51. - } else if (realLocation.match(/act=settings(&|$)/)) {
- 52. - link = "/exchange?act=settings" + unionIdParam;
- 53. - }
- 54. -
- 55. - curItems[i].h = link;
- 56. - }
- 57. -
- 58. - var options = {
- 59. - title: '<span id="ads_navigation_dd_menu_header_text">' + ge('ads_navigation_offices_menu_text').innerHTML + '</span>',
- 60. - containerClass: 'ads_navigation_dd_menu_header_wrap',
- 61. - target: ge('ads_navigation_offices_menu'),
- 62. - showHover: false,
- 63. - updateTarget: false,
- 64. - onSelect: function(e) {
- 65. - }
- 66. - };
- 67. - cur.navigationOficesMenu = new DropdownMenu(curItems, options);
- 68. - cur.destroy.push(function(){ cur.navigationOficesMenu.destroy(); });
- 69. - },
- 70. -
- 71. - initScroll: function() {
- 72. - Exchange.scrollnode = browser.msie6 ? pageNode : window;
- 73. - Exchange.deinitScroll();
- 74. - window.scrollTop = bodyNode.scrollTop = pageNode.scrollTop = htmlNode.scrollTop = 0;
- 75. - addEvent(Exchange.scrollnode, 'scroll', Exchange.scrollCheck);
- 76. - addEvent(window, 'resize', Exchange.scrollCheck);
- 77. - },
- 78. - deinitScroll: function() {
- 79. - removeEvent(Exchange.scrollnode, 'scroll', Exchange.uScroll);
- 80. - removeEvent(window, 'resize', Exchange.uScroll);
- 81. - },
- 82. - scrollCheck: function() {
- 83. - if (browser.mobile || cur.isSearchLoading || cur.disableAutoMore) return;
- 84. -
- 85. - var docEl = document.documentElement;
- 86. - var ch = window.innerHeight || docEl.clientHeight || bodyNode.clientHeight;
- 87. - var st = scrollGetY(), lnk = ge('exchange_more_results');
- 88. -
- 89. - if (!isVisible(lnk)) return;
- 90. - if (st + ch + 200 > lnk.offsetTop) {
- 91. - if (lnk.nodeName != 'A') {
- 92. - lnk = geByTag1('a', lnk);
- 93. - }
- 94. - lnk.onclick();
- 95. - }
- 96. - },
- 97. -
- 98. - initCommunitySearch: function() {
- 99. - Exchange.initScroll();
- 100. - cur.destroy.push(function(c) {
- 101. - if (c == cur) Exchange.deinitScroll();
- 102. - });
- 103. -
- 104. - placeholderSetup('exchange_search_input', {back: true});
- 105. - each(['filter_cost_to', 'filter_reach', 'filter_size'], function (i, val) {
- 106. - placeholderSetup(val);
- 107. - addEvent(val, 'change', Exchange.updateCommunitySearch);
- 108. - addEvent(val, 'keydown', function(event) {
- 109. - if (event.keyCode == KEY.ENTER) Exchange.updateCommunitySearch();
- 110. - });
- 111. - });
- 112. - },
- 113. -
- 114. - getSearchParams: function(obj) {
- 115. - var params = {
- 116. - q: trim(val(obj)), load: 1, cache: 1,
- 117. - offset: cur.searchOffset || 0,
- 118. - sort: cur.searchSortBy || '',
- 119. - cost_to: val('filter_cost_to'),
- 120. - reach: val('filter_reach'),
- 121. - size: val('filter_size'),
- 122. - category: cur.uiCategory.val(),
- 123. - country: cur.uiCountry.val(),
- 124. - city: cur.uiCity.val(),
- 125. - sex: cur.uiSex.val(),
- 126. - age: cur.uiAge.val(),
- 127. - };
- 128. - return params;
- 129. - },
- 130. - sameParams: function(params) {
- 131. - if (!cur.params) return false;
- 132. - for (var i in params) {
- 133. - if (params[i] != cur.params[i]) return false;
- 134. - }
- 135. - for (var i in cur.params) {
- 136. - if (params[i] != cur.params[i]) return false;
- 137. - }
- 138. - return true;
- 139. - },
- 140. -
- 141. - updateCommunitySearch: function(obj, delay, sort) {
- 142. - obj = obj || ge('exchange_search_input');
- 143. - delay = delay || 10;
- 144. - if (sort != undefined) {
- 145. - cur.searchSortBy = sort;
- 146. - }
- 147. - clearTimeout(cur.searchTimeout);
- 148. - cur.searchTimeout = setTimeout((function() {
- 149. - var params = Exchange.getSearchParams(obj);
- 150. - if ((!Exchange.sameParams(params) || cur.ignoreEqual)) {
- 151. - delete cur.ignoreEqual;
- 152. - cur.params = params;
- 153. - cur.searchStr = params.q;
- 154. - Exchange.searchCommunity();
- 155. - }
- 156. - scrollToTop();
- 157. - }).bind(this), delay);
- 158. - },
- 159. - searchCommunity: function() {
- 160. - var query = cur.params || Exchange.getSearchParams(ge('exchange_search_input'));
- 161. -
- 162. - ajax.post('/exchange?act=community_search&ad_id='+cur.post_id, query, {
- 163. - cache: 1,
- 164. - onDone: function(rows, showMore) {
- 165. - var more_lnk = ge('exchange_more_results');
- 166. - if (query['offset'] > 0) {
- 167. - var tbl = ge('exchange_comm_search_table').tBodies[0];
- 168. - if (rows) {
- 169. - if (!browser.msie) {
- 170. - tbl.insertAdjacentHTML('beforeEnd', rows);
- 171. - } else {
- 172. - var t = se('<table>'+rows+'</table>');
- 173. - var rows = geByTag('tr', t);
- 174. - for (i in rows) {
- 175. - if (rows[i].nodeType == 1) tbl.appendChild(rows[i]);
- 176. - }
- 177. - }
- 178. - tbl.appendChild(more_lnk);
- 179. - }
- 180. - } else {
- 181. - ge('exchange_comm_search_table').innerHTML = rows;
- 182. - cur.searchOffset = 0;
- 183. - }
- 184. - if (showMore) {
- 185. - show('exchange_more_results');
- 186. - } else {
- 187. - hide('exchange_more_results');
- 188. - }
- 189. -
- 190. - each(query, function(i, v) {
- 191. - if (v && v != 0 && i != 'load' && i != 'cache' && i != 'offset') {
- 192. - nav.objLoc[i] = v;
- 193. - } else {
- 194. - delete nav.objLoc[i];
- 195. - }
- 196. - });
- 197. - nav.setLoc(nav.objLoc);
- 198. - },
- 199. - showProgress: function() {
- 200. - addClass(ge('exchange_search_wrap'), 'loading');
- 201. - cur.isSearchLoading = true;
- 202. - },
- 203. - hideProgress: function() {
- 204. - removeClass(ge('exchange_search_wrap'), 'loading');
- 205. - cur.isSearchLoading = false;
- 206. - }
- 207. - });
- 208. - },
- 209. - clearCommunitySearch: function() {
- 210. - var field = ge('exchange_search_input');
- 211. - val(field, '');
- 212. - elfocus(field);
- 213. - Exchange.updateCommunitySearch(field);
- 214. - },
- 215. - searchCommunityShowMore: function() {
- 216. - var offset = cur.searchOffset || 0;
- 217. - offset += cur.searchPerPage;
- 218. - cur.searchOffset = offset;
- 219. - hide('exchange_more_results');
- 220. - Exchange.updateCommunitySearch();
- 221. - return false;
- 222. - },
- 223. - switchSubTab: function(el, wrap, link, evt, params) {
- 224. - if (checkEvent(evt) || hasClass(el, 'active')) return false;
- 225. - each(geByClass('exchange_subtab1', ge(wrap)), function(i, v) {
- 226. - removeClass(v, 'active');
- 227. - });
- 228. - addClass(el, 'active');
- 229. - if (params.part) {
- 230. - var obj = nav.fromStr(link), url = obj[0];
- 231. - delete obj[0];
- 232. - ajax.post(url, extend(obj, {part: 1}), {
- 233. - onDone: params.onDone.pbind(obj)
- 234. - });
- 235. - return false;
- 236. - }
- 237. - return nav.go(link, evt);
- 238. - },
- 239. - getPage: function(offset, wrap) {
- 240. - var obj = clone(nav.objLoc), url = obj[0];
- 241. - delete obj[0];
- 242. - ajax.post(url, extend(obj, {offset: offset, part: 1}), {
- 243. - onDone: function(res) {
- 244. - ge(wrap || 'exchange_requests_table_wrap').innerHTML = res;
- 245. - nav.setLoc(extend(nav.objLoc, {offset: offset}));
- 246. - }
- 247. - });
- 248. - return false;
- 249. - },
- 250. - reArrangeRows: function(className) {
- 251. - var rows = geByClass(className), k = 0;
- 252. - if (!rows.length) {
- 253. - nav.reload();
- 254. - }
- 255. - for (var j in rows) {
- 256. - toggleClass(rows[j], 'even', k++ % 2 > 0)
- 257. - }
- 258. - },
- 259. - addRequest: function(gid, ad_id, from_office) {
- 260. - return !showBox('/exchange', {act: 'a_request_box', gid: gid, ad_id: ad_id, from_office: from_office}, { params: {width: '430px', dark: true, bodyStyle: 'padding: 0px;', hideButtons: true}});
- 261. - },
- 262. - deleteRequest: function(gid, ad_id, request_id, from_office, hash, show_comment) {
- 263. - var bodyStyle = 'line-height: 160%; padding: 16px 20px;';
- 264. - if (show_comment) {
- 265. - bodyStyle += ' background-color: #F7F7F7';
- 266. - }
- 267. - var boxWidth = show_comment ? 370 : 430;
- 268. - var doDeleteRequest = function() {
- 269. - ajax.post('/exchange', {act: 'a_delete_request', gid: gid, ad_id: ad_id, request_id: request_id, from_office: from_office, comment: ge('exchange_box_comment') && val('exchange_box_comment') || '', hash: hash}, {
- 270. - progress: curBox().progress,
- 271. - onDone: function() {
- 272. - curBox().hide();
- 273. - re('exchange_request' + request_id);
- 274. - Exchange.reArrangeRows('exchange_request_row');
- 275. - },
- 276. - onFail: function(text) {
- 277. - ge('exchange_box_error').innerHTML = text;
- 278. - show('exchange_box_error');
- 279. - return true;
- 280. - }
- 281. - });
- 282. - }
- 283. - cur.doDeleteRequest = doDeleteRequest;
- 284. - var box = showFastBox({title: getLang('ads_posts_sure_delete_title'), dark: true, width: boxWidth, bodyStyle: bodyStyle, hideButtons: show_comment}, '<div id="exchange_box_error" class="error" style="display: none;"></div><div>' + getLang('ads_posts_sure_delete_text') + '</div><div id="exchange_box_comment_wrap" class="clear_fix" style="display:none;"><textarea id="exchange_box_comment" placeholder="' + getLang('ads_posts_delete_placeholder') +'" onkeypress="onCtrlEnter(event, cur.doDeleteRequest)"></textarea><div class="exchange_box_send_wrap button_blue fl_r"><button id="exchange_box_send" onclick="cur.doDeleteRequest()">' + getLang('ads_posts_delete') + '</button></div></div>', getLang('ads_posts_delete'), doDeleteRequest, getLang('global_cancel'));
- 285. - if (show_comment) {
- 286. - show('exchange_box_comment_wrap');
- 287. - placeholderSetup('exchange_box_comment', {back: true});
- 288. - autosizeSetup('exchange_box_comment', {minHeight: 45, maxHeght: 200});
- 289. - }
- 290. - return false
- 291. - },
- 292. - sendRequest: function(gid, ad_id, price, hash, from_office, btn) {
- 293. - ajax.post('/exchange', {act: 'a_save_request', ad_id: ad_id, gid: gid, price: price, from_office: from_office, hash: hash, text: val('exchange_request_comment'), time_from: val('exchange_request_time_from_d'), time_to: val('exchange_request_time_to_d'), date_from: val('exchange_request_date_from'), date_to: val('exchange_request_date_to')}, {
- 294. - showProgress: lockButton.pbind(btn),
- 295. - hideProgress: unlockButton.pbind(btn),
- 296. - onFail: function(msg) {
- 297. - ge('exchange_request_box_error').innerHTML = msg;
- 298. - show('exchange_request_box_error');
- 299. - return true;
- 300. - }
- 301. - });
- 302. - return false;
- 303. - },
- 304. - editPost: function() {
- 305. - return wall.editPost(cur.postRaw, {from: 'exchange'}, false, Exchange.showFullPost);
- 306. - },
- 307. - showFullPost: function() {
- 308. - removeClass('exchange_post_msg_wrap', 'short');
- 309. - setStyle('exchange_post_msg', {maxHeight: 'none'});
- 310. - },
- 311. - slideFullPost: function() {
- 312. - if (!ge('exchange_post_msg_wrap') && !hasClass('exchange_post_msg_wrap', 'short')) {
- 313. - return;
- 314. - }
- 315. -
- 316. - var realSize = getSize(ge('wpt' + cur.postRaw))[1];
- 317. - animate(ge('exchange_post_msg'), {maxHeight: realSize}, 200, Exchange.showFullPost);
- 318. - animate(ge('exchange_post_msg_more'), {height: 0}, 200);
- 319. - },
- 320. - archivePost: function(ad_id, status, hash, from) {
- 321. - var doArchivePost = function(ad_id, status, hash) {
- 322. - addClass('exchange_info_archive', 'loading');
- 323. - ajax.post('/exchange', {act: 'a_archive', ad_id: ad_id, status: status, from: from || '', hash: hash}, {
- 324. - onDone:function(link) {
- 325. - if (ge('exchange_info_archive')) {
- 326. - ge('exchange_info_archive').innerHTML = link;
- 327. - }
- 328. - toggle('exchange_info_actions', status != 2);
- 329. - toggle('exchange_info_in_archive', status == 2);
- 330. - },
- 331. - hideProgress: removeClass.pbind('exchange_info_archive', 'loading')
- 332. - });
- 333. - }
- 334. - if (status == 2) {
- 335. - var box = showFastBox({title: getLang('ads_posts_sure_archive_title'), dark: true, width: 430, bodyStyle: 'line-height: 160%; padding: 16px 20px;'}, getLang('ads_posts_sure_archive_text'), getLang('ads_posts_archive_btn'), function() {
- 336. - box.hide();
- 337. - doArchivePost(ad_id, status, hash, from);
- 338. - }, getLang('global_cancel'));
- 339. - } else {
- 340. - doArchivePost(ad_id, status, hash, from);
- 341. - }
- 342. - return false;
- 343. - }
- 344. - };
- 345. -
- 346. - try{stManager.done('exchange.js');}catch(e){}
- ------
Advertisement
Add Comment
Please, Sign In to add comment