Hormold

VK Change (#1355661294)

Dec 16th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 22.28 KB | None | 0 0
  1. Файл - im.css:
  2. 806.  -   margin-right: 2px;
  3. 807.  +   margin-right: 4px;
  4. 928.  -   padding: 6px 0 0 5px;
  5. 929.  +   padding: 6px 0 0 3px;
  6. 1020.  -   padding: 4px 20px 4px 20px;
  7. 1021.  +   padding: 5px 20px 4px 20px;
  8. 1023.  -   height: 15px;
  9. 1024.  -   line-height: 15px;
  10. 1025.  +   height: 14px;
  11. 1026.  +   line-height: 1.27em;
  12. 1028.  - }
  13. 1029.  - #im_filter::-webkit-input-placeholder {
  14. 1030.  -   padding: 0 2px;
  15. 1031.  - }
  16. 1032.  - #im_filter:moz-input-placeholder {
  17. 1033.  -   padding: 0 2px;
  18. 1034.  - }
  19. 1035.  - #im_filter_out .input_back_content {
  20. 1036.  -   height: 15px;
  21. 1037.  -   line-height: 15px;
  22. 1531.  -   width: 328px;
  23. 1532.  +   width: 330px;
  24. 1534.  -   padding: 3px 25px 3px 3px;
  25. 1535.  +   padding: 3px 23px 3px 3px;
  26. 1892.  - }
  27. 1893.  - #im_rcemoji {
  28. 1894.  -   width: 400px;
  29. 1895.  - }
  30. 1896.  - .im_rc_emojibtn {
  31. 1897.  -   display: inline-block;
  32. 1898.  -   *display: block;
  33. 1899.  -   zoom: 1;
  34. 1900.  -   padding: 3px 3px;
  35. 1901.  - }
  36. 1902.  - .im_rc_emojibtn:hover {
  37. 1903.  -   background: #D5DDE5;
  38. 1904.  -   text-decoration: none;
  39. 1905.  -   -webkit-border-radius: 2px;
  40. 1906.  -   -khtml-border-radius: 2px;
  41. 1907.  -   -moz-border-radius: 2px;
  42. 1908.  -   border-radius: 2px;
  43. 1909.  - }
  44. 1910.  - .im_rc_emojibtn:active {
  45. 1911.  -   background: #C9D2DB;
  46. 1912.  - }
  47. 1913.  - .im_rcem_cont {
  48. 1914.  -   width: 156px;
  49. 1915.  -   overflow: hidden;
  50. 1916.  -   padding: 1px 0px 0px 4px;
  51. 1917.  - }
  52. 1918.  - .im_peer_multi .im_rcem_cont {
  53. 1919.  -   width: 134px;
  54. ------
  55. Файл - feed.js:
  56. 721.  -         if (!(params.sort = intval(cur.searchSortMenu && cur.searchSortMenu.val()))) {
  57. 722.  -           delete params.sort;
  58. 723.  -         }
  59. 771.  -     var feedBar = ge('feed_bar'),
  60. 772.  -         curSection = cur.section,
  61. 773.  -         curTopTab = 'news',
  62. 774.  +     var curTopTab = 'news',
  63. 776.  -         curTab, newTab;
  64. 777.  -
  65. 778.  -     if (from >= 2 && newSection == cur.section) {
  66. 779.  -       curSection = cur.prevSection || cur.section;
  67. 780.  -     }
  68. 781.  -     if (curSection == 'search') {
  69. 782.  -       curTab = 'news';
  70. 783.  -     } else if (curSection == 'articles_search') {
  71. 784.  -       curTab = 'articles';
  72. 785.  -     } else {
  73. 786.  -       curTab = curSection || '';
  74. 787.  -     }
  75. 788.  -
  76. 789.  -     if (newSection == 'search') {
  77. 790.  -       newTab = 'news';
  78. 791.  -     } else if (newSection == 'articles_search') {
  79. 792.  -       newTab = 'articles';
  80. 793.  -     } else {
  81. 794.  -       newTab = newSection || '';
  82. 795.  -     }
  83. 796.  -     // debugLog('set section', from, curTab, newTab);
  84. 797.  +         curTabEl = geByClass1('feed_tab_' + cur.section);
  85. 802.  +       case 'photos':
  86. 803.  +       case 'recommended':
  87. 806.  -       case 'articles':
  88. 807.  -       case 'articles_search':
  89. 808.  -         curTopTab = 'custom';
  90. 809.  -         break
  91. 810.  -       case 'notifications':
  92. 811.  -         curTopTab = 'notifications';
  93. 812.  -         break;
  94. 813.  -
  95. 814.  +       case 'articles': curTopTab = 'custom'; break
  96. 815.  +       case 'notifications': curTopTab = 'notifications'; break;
  97. 818.  +       case 'articles_search':
  98. 819.  +       case 'search': curTopTab = 'search'; break;
  99. 824.  +       case 'photos':
  100. 825.  +       case 'recommended':
  101. 828.  -       case 'articles':
  102. 829.  +       case 'articles':newTopTab = 'custom'; break
  103. 830.  +       case 'notifications': newTopTab = 'notifications'; break;
  104. 831.  +       case 'owner': newTopTab = 'owner'; break;
  105. 832.  +       case 'source': newTopTab = 'source'; break;
  106. 834.  -         newTopTab = 'custom';
  107. 835.  -         break
  108. 836.  -
  109. 837.  -       case 'notifications':
  110. 838.  -         newTopTab = 'notifications';
  111. 839.  -         break;
  112. 840.  -
  113. 841.  -       case 'owner':
  114. 842.  -         newTopTab = 'owner';
  115. 843.  -         break;
  116. 844.  -
  117. 845.  -       case 'source':
  118. 846.  -         newTopTab = 'source';
  119. 847.  -         break;
  120. 848.  +       case 'search': newTopTab = 'search'; break;
  121. 850.  -
  122. 851.  -     var curTabEl = curTab && curTab != newTab && geByClass1('feed_tab_' + curTab, feedBar, 'div');
  123. 852.  -         newTabEl = newTab && geByClass1('feed_tab_' + newTab, feedBar, 'div');
  124. 853.  -
  125. 854.  -     // debugLog('replace old', curTabEl, debugEl(curTabEl));
  126. 855.  -     curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
  127. 856.  -     // debugLog('replace new', newTabEl, debugEl(newTabEl));
  128. 857.  -     newTabEl && replaceClass(newTabEl, 'summary_tab', 'summary_tab_sel');
  129. 859.  -     // debugLog(curTopTab, newTopTab, from);
  130. 875.  -
  131. 876.  -       toggle('feed_news_bar', newTopTab == 'news');
  132. 877.  -       toggle('feed_custom_bar', newTopTab == 'custom');
  133. 878.  -       toggle('feed_search_bar', newTopTab == 'news' || inArray(newSection, ['articles_search', 'articles', 'notifications']));
  134. 879.  -       toggleClass('feed_search_bar', 'fl_r', newTopTab == 'custom');
  135. 880.  -       toggleClass('feed_search_bar', 'fl_l', newTopTab != 'custom');
  136. 881.  +       toggle('feed_form_toggler', newTopTab == 'news' || newSection == 'articles' || newTopTab == 'search');
  137. 882.  +       feed.toggleSearchForm(false, newTopTab != 'search', !newSection.indexOf('articles'));
  138. 883.  +       hide('feed_custom_bar', 'feed_news_bar');
  139. 884.  +       switch (newTopTab) {
  140. 885.  +         case 'custom':
  141. 886.  +         case 'search':
  142. 887.  +           show('feed_' + newTopTab + '_bar'); break;
  143. 888.  +         default:
  144. 889.  +           show('feed_news_bar');
  145. 890.  +           if (cur.onFeedBarShow) cur.onFeedBarShow();
  146. 891.  +       }
  147. 893.  -
  148. 894.  -     toggleClass('feed_bar', 'feed_bar_extended_search', newSection == 'search');
  149. 895.  -
  150. 897.  -       var topTabEl = ge('feedtab_custom'),
  151. 898.  -           topTabLabel = geByClass1('tab_word', topTabEl),
  152. 899.  -           topTabLink = geByTag1('a', topTabEl);
  153. 900.  -
  154. 901.  -       if (newTabEl) {
  155. 902.  -         val(topTabLabel, val(geByTag1('nobr', newTabEl)));
  156. 903.  -       }
  157. 904.  -       if (topTabLink) {
  158. 905.  -         topTabLink.onmousedown = function (event) {
  159. 906.  +       val(geByClass1('tab_word', ge('feedtab_custom')), val(geByTag1('nobr', geByClass1('feed_tab_' + newSection))));
  160. 907.  +       var topLink = geByTag1('a', ge('feedtab_custom'));
  161. 908.  +       if (topLink) {
  162. 909.  +         topLink.onmousedown = function (event) {
  163. 912.  -         topTabLink.href = '/feed?section=' + newSection;
  164. 913.  +         topLink.href = '/feed?section=' + newSection;
  165. 918.  -       Feed.searchReset();
  166. 919.  +       val('feed_search', '');
  167. 921.  -
  168. 922.  +     curTabEl && replaceClass(curTabEl, 'summary_tab_sel', 'summary_tab');
  169. 929.  -
  170. 930.  +     curTabEl = geByClass1('feed_tab_' + cur.section);
  171. 931.  +     curTabEl && replaceClass(curTabEl, 'summary_tab', 'summary_tab_sel');
  172. 939.  -     toggle('feed_search_sort', newSection == 'search');
  173. 943.  -
  174. 944.  -     if (newSection == 'search' && !cur.searchSortMenu) {
  175. 945.  -       Feed.initUi();
  176. 946.  -     }
  177. 999.  -       Feed.searchUpdate();
  178. 1042.  -     Feed.applyUi();
  179. 1195.  -       Feed.searchUpdate();
  180. 1204.  -     var loadCb = inArray(cur.section, ['comments', 'photos', 'search', 'articles_search']) ? false : feed.onLocalTabLoad;
  181. 1205.  +     var loadCb = inArray(cur.section, ['comments', 'photos']) ? false : feed.onLocalTabLoad;
  182. 1210.  -     // debugLog('local tab load', content);
  183. 1295.  +   },
  184. 1296.  +   toggleSearchForm: function (fire, on, articles) {
  185. 1297.  +     if (articles === undefined) {
  186. 1298.  +       articles = cur.section == 'articles' || cur.section == 'articles_search';
  187. 1299.  +     }
  188. 1300.  +     if (on === undefined) {
  189. 1301.  +       on = !isVisible('feed_nosearch_bar');
  190. 1302.  +     }
  191. 1303.  +     if (fire && on && articles) {
  192. 1304.  +       feed.switchSection('articles');
  193. 1305.  +       return;
  194. 1306.  +     }
  195. 1307.  +     toggle('feed_nosearch_bar', on);
  196. 1308.  +     toggle('feed_search_bar', !on);
  197. 1309.  +     if (fire) {
  198. 1310.  +       if (on) {
  199. 1311.  +         show(articles ? 'feed_custom_bar' : 'feed_news_bar');
  200. 1312.  +       } else {
  201. 1313.  +         elfocus('feed_search')
  202. 1314.  +       }
  203. 1315.  +     }
  204. 1316.  +     val('feed_form_toggler', getLang(on ? 'news_switch_to_search' : (articles ? 'news_switch_to_articles' : 'feed_add_post')));
  205. 1940.  -   },
  206. 1941.  -   searchPreloadExtended: function () {
  207. 1942.  -     if (cur.feedSearchExtendedLoaded || cur.feedSearchExtendedPreloaded) {
  208. 1943.  -       return false;
  209. 1944.  -     }
  210. 1945.  -     cur.feedSearchExtendedPreloaded = true;
  211. 1946.  -     ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {cache: 1});
  212. 1947.  -   },
  213. 1948.  -   searchToggleExtended: function (enabled) {
  214. 1949.  -     if (cur.feedSearchExtendedLoaded || !enabled) {
  215. 1950.  -       toggle('feed_search_extform', enabled);
  216. 1951.  -       return;
  217. 1952.  -     }
  218. 1953.  -     ajax.post('al_feed.php', {act: 'a_get_search_extended'}, {
  219. 1954.  -       stat: ['ui_controls.css', 'ui_controls.js'],
  220. 1955.  -       progress: ge('feed_progress'),
  221. 1956.  -       cache: 1,
  222. 1957.  -       onDone: function (html, js) {
  223. 1958.  -         cur.feedSearchExtendedLoaded = true;
  224. 1959.  -         val('feed_search_extform', html);
  225. 1960.  -         show('feed_search_extform');
  226. 1961.  -         eval(js);
  227. 1962.  -       }
  228. 1963.  -     });
  229. 1964.  -   },
  230. 1965.  -   searchAppendTag: function (tag, pattern, nosubmit) {
  231. 1966.  -     if (!trim(tag) && !pattern) {
  232. 1967.  -       return;
  233. 1968.  -     }
  234. 1969.  -     var text = val('feed_search');
  235. 1970.  -     try {
  236. 1971.  -       text = text.replace(pattern || new RegExp('(^|\\s)' + tag + '(\\s|$)', 'i'), ' ');
  237. 1972.  -     } catch (e) {};
  238. 1973.  -     text += ' ' + tag + ' ';
  239. 1974.  -     text = text.replace(/\s{2,}/g, ' ').replace(/^\s+/, '');
  240. 1975.  -     val('feed_search', text);
  241. 1976.  -     if (trim(text).length && !nosubmit) {
  242. 1977.  -       Feed.switchSearch();
  243. 1978.  -     }
  244. 1979.  -     Feed.searchUpdate();
  245. 1980.  -   },
  246. 1981.  -   searchUnchooseGeoPoint: function () {
  247. 1982.  -     var map = ge('feed_searchext_map'),
  248. 1983.  -         x = ge('feed_searchext_map_delete_wrap');
  249. 1984.  -
  250. 1985.  -     removeClass(map, 'feed_searchext_map_selected');
  251. 1986.  -     setStyle(map, {background: ''});
  252. 1987.  -     x && x.tt && x.tt.hide && x.tt.hide();
  253. 1988.  -     Feed.searchAppendTag('', /near:[0-9\.,\-\+]+/);
  254. 1989.  -   },
  255. 1990.  -   searchChooseGeoPoint: function () {
  256. 1991.  -     var params = {act: 'a_choose_place_box', search: 1},
  257. 1992.  -         text = val('feed_search'),
  258. 1993.  -         currentPointMatches = text.match(/near\:(\-?\d{1,3}(?:\.\d+)?)\,(\-?\d{1,3}(?:\.\d+)?)(\+{0,4})/);
  259. 1994.  -
  260. 1995.  -     if (currentPointMatches) {
  261. 1996.  -       params.lat = floatval(currentPointMatches[1]);
  262. 1997.  -       params.lon = floatval(currentPointMatches[2]);
  263. 1998.  -       params.zoom = [8, 11, 14, 17, 20][(currentPointMatches[3] || '').length]
  264. 1999.  -     }
  265. 2000.  -     showBox('al_places.php', params);
  266. 2001.  -     cur.chooseGeoPoint = function (lat, lon, zoom) {
  267. 2002.  -       var num = 0;
  268. 2003.  -       each([8, 11, 14, 17, 20], function (k, zoomLevel) {
  269. 2004.  -         if (zoom <= zoomLevel) {
  270. 2005.  -           return false;
  271. 2006.  -         }
  272. 2007.  -         num = k;
  273. 2008.  -       });
  274. 2009.  -       boxQueue.hideLast();
  275. 2010.  -       var postfix = (new Array(num + 1)).join('+');
  276. 2011.  -       var mult = Math.pow(10, 10);
  277. 2012.  -       lat = Math.round(lat * mult) / mult;
  278. 2013.  -       lon = Math.round(lon * mult) / mult;
  279. 2014.  -
  280. 2015.  -       var map = ge('feed_searchext_map');
  281. 2016.  -       addClass(map, 'feed_searchext_map_selected');
  282. 2017.  -       setStyle(map, {
  283. 2018.  -         background: 'url(//maps.googleapis.com/maps/api/staticmap?center='+lat+','+lon+'&zoom='+zoom+'&size='+(window.devicePixelRatio >= 2 ? '260x160' : '130x80')+'&sensor=false)'
  284. 2019.  -       });
  285. 2020.  -       Feed.searchAppendTag('near:' + lat + ',' + lon + postfix, /near:[0-9\.,\-\+]+/);
  286. 2021.  -     };
  287. 2022.  -   },
  288. 2023.  -   searchChooseFilter: function (filter, item) {
  289. 2024.  -     var uiDropdown;
  290. 2025.  -     switch (filter) {
  291. 2026.  -       case 'type':
  292. 2027.  -         uiDropdown = cur.uiSearchPostType; break;
  293. 2028.  -       case 'has':
  294. 2029.  -         uiDropdown = cur.uiSearchPostAttach; break;
  295. 2030.  -       case 'likes':
  296. 2031.  -         uiDropdown = cur.uiSearchPostLikes; break;
  297. 2032.  -
  298. 2033.  -       default: return false;
  299. 2034.  -     }
  300. 2035.  -     var sel = (uiDropdown.selectedItems() || [])[0];
  301. 2036.  -
  302. 2037.  -     Feed.searchAppendTag(sel && intval(sel[0]) ? (filter + ':' + (sel[3] || sel[0])) : '', new RegExp(filter + ':' + '[\\S]+', 'g'));
  303. 2038.  -   },
  304. 2039.  -   searchExcludeOnChange: function (input, nosubmit) {
  305. 2040.  -     var exclude = trim(val(input));
  306. 2041.  -     if (!exclude) {
  307. 2042.  -       return false;
  308. 2043.  -     }
  309. 2044.  -     var words = trim(exclude).split(/[\s\,\.\/\!\@\#\$\%\^\&\*\(\)\-\=\:\~\;\'\"\|\}\{\+]+/),
  310. 2045.  -         len = words.length,
  311. 2046.  -         newTag = len > 0 && ('-' + words.join(' -')) || '';
  312. 2047.  -
  313. 2048.  -     Feed.searchAppendTag(newTag, /(?:\s|^)\-\S+/g, nosubmit);
  314. 2049.  -   },
  315. 2050.  -   searchUrlOnChange: function (fromTooltip) {
  316. 2051.  -     var urlMatches = (val('feed_searchext_link') || '').match(urlInactiveExp),
  317. 2052.  -         newTag = '';
  318. 2053.  -
  319. 2054.  -     if (urlMatches) {
  320. 2055.  -       var url = urlMatches[4] + (urlMatches[5] || ''),
  321. 2056.  -           domain = urlMatches[4],
  322. 2057.  -           newTag = radioBtns.feed_searchext_domain.val ? ('domain:' + domain) : ('url:' + url);
  323. 2058.  -     }
  324. 2059.  -     Feed.searchAppendTag(newTag, cur.feedSearchPrevLinkTag);
  325. 2060.  -     cur.feedSearchPrevLinkTag = newTag;
  326. 2061.  -
  327. 2062.  -     if (fromTooltip) {
  328. 2063.  -       elfocus('feed_searchext_link');
  329. 2064.  -     }
  330. 2065.  -   },
  331. 2066.  -   searchContentOnChange: function () {
  332. 2067.  -     var urlMatches = (val('feed_searchext_content') || '').match(urlInactiveExp),
  333. 2068.  -         domainMatches = urlMatches && urlMatches[4].match(/(^|\.|\/\/)vkontakte\.ru|vk\.com/),
  334. 2069.  -         mediaMatches = domainMatches && urlMatches[5].match(/(?:#(photo)|^\/(photo|video|album|page|audio|wall)|z=(album|photo|video)|w=(page|wall))(-?\d+_)?(\d+)(?:\?reply=(\d+))?$/),
  335. 2070.  -         newTag = '';
  336. 2071.  -
  337. 2072.  -     if (mediaMatches) {
  338. 2073.  -       var mediaType = mediaMatches[1] || mediaMatches[2] || mediaMatches[3] || mediaMatches[4],
  339. 2074.  -           mediaID = mediaMatches[5] + (mediaMatches[7] || mediaMatches[6]),
  340. 2075.  -           newTag = 'copy:' + mediaType + mediaID;
  341. 2076.  -     }
  342. 2077.  -     Feed.searchAppendTag(newTag, /copy\:\S+/);
  343. 2078.  -   },
  344. 2079.  -   searchUpdate: function () {
  345. 2080.  -     toggle('feed_query_reset', trim(val('feed_search')));
  346. 2081.  -   },
  347. 2082.  -   searchClickOutside: function (event) {
  348. 2083.  -     if (val('feed_search') || !hasClass('feed_bar', 'feed_bar_extended_search') || isChecked('feed_search_extended_checkbox')) {
  349. 2084.  -       return;
  350. 2085.  -     }
  351. 2086.  -     removeClass('feed_bar', 'feed_bar_extended_search');
  352. 2087.  -   },
  353. 2088.  -   searchReset: function () {
  354. 2089.  -     val('feed_search', '');
  355. 2090.  -     removeClass('feed_bar', 'feed_bar_extended_search');
  356. 2091.  -     each ([cur.uiSearchPostType, cur.uiSearchPostAttach, cur.uiSearchPostLikes], function () {
  357. 2092.  -       this.val(0);
  358. 2093.  -     });
  359. 2094.  -     each(['feed_searchext_exclude', 'feed_searchext_link', 'feed_searchext_content'], function (k, input) {
  360. 2095.  -       val(input, '');
  361. 2096.  -     });
  362. 2097.  -     Feed.searchUnchooseGeoPoint();
  363. 2098.  -     Feed.searchUpdate();
  364. 2099.  -     Feed.switchSection('news');
  365. 2101.  -
  366. 2127.  -         // debugLog(onBeforeReplace, options, rows.length, js);
  367. 2129.  -         if (window.tooltips) tooltips.destroyAll(ge('feed_rows'));
  368. 2130.  +         if (window.tooltips) tooltips.destroyAll();
  369. 2166.  -         hide('feed_menu_toggle', 'feed_edit_hidden', 'feed_search_sort');
  370. 2167.  +         hide('feed_menu_toggle', 'feed_edit_hidden');
  371. 2185.  -       addEvent(searchEl, 'focus', function (e) {
  372. 2186.  +       var tmp = function () {
  373. 2188.  -         removeEvent(searchEl, 'focus', arguments.callee);
  374. 2189.  -       });
  375. 2190.  +         removeEvent(searchEl, 'focus', tmp);
  376. 2191.  +       };
  377. 2192.  +       addEvent(searchEl, 'focus', tmp);
  378. 2194.  -
  379. 2195.  -     addEvent(searchEl, 'keydown focus', function (e) {
  380. 2196.  -       if (e.type == 'focus') {
  381. 2197.  -         addClass('feed_bar', 'feed_bar_extended_search');
  382. 2198.  -         return;
  383. 2199.  -       }
  384. 2200.  +     addEvent(searchEl, 'keydown', function (e) {
  385. 2213.  -       setTimeout(Feed.searchUpdate, 0);
  386. 2222.  +       fullPostHeight: 50,
  387. 2223.  +       emptyPostheight: 24,
  388. 2293.  -         toggle('feed_search_sort', cur.section == 'search');
  389. 2319.  -         feed.switchSearch(changed.q, !(changed.section || '').indexOf('articles'));
  390. 2320.  +         feed.switchSearch(changed.q, !changed.section.indexOf('articles'));
  391. 2337.  +     WallUpload.preinit();
  392. 2351.  -         removeEvent(document, 'click', Feed.searchClickOutside);
  393. 2356.  -     var _a = window.audioPlayer,
  394. 2357.  -         aid = currentAudioId();
  395. 2358.  +     var _a = window.audioPlayer, aid = currentAudioId();
  396. 2379.  -     addEvent(document, 'click', Feed.searchClickOutside);
  397. 2382.  -     cur.searchSortMenu = new DropdownMenu(cur.options.search_sorts, {
  398. 2383.  -       target: ge('feed_search_sort_dd'),
  399. 2384.  -       onSelect: function (e) {
  400. 2385.  -         feed.switchSection('search')
  401. 2386.  -       },
  402. 2387.  -       fadeSpeed: 0
  403. 2388.  -     });
  404. 2389.  -
  405. 2394.  -   },
  406. 2395.  -   applyUi: function () {
  407. 2396.  -     debugLog('apply ui');
  408. 2397.  -     if (!cur.searchSortMenu) return;
  409. 2398.  -     cur.searchSortMenu.setOptions({title: cur.search_sort[1]});
  410. 2399.  -     cur.searchSortMenu.value = cur.search_sort[0];
  411. 2400.  -     val('feed_search_sort_dd', cur.search_sort[1].replace(/\s+/g, '&nbsp;'));
  412. 2479.  -     return false;
  413. 2491.  -     this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '273px';
  414. 2492.  +     this.resultList.style.width = this.resultListShadow.style.width = resultContainer.style.width = '230px';
  415. 2512.  -             if (self.currentTerm === term) self.showSelectList(term, data);
  416. 2513.  +             if (self.currentTerm == term) self.showSelectList(term, data);
  417. 2519.  -       clearTimeout(cur.requestTimeout);
  418. 2520.  -       delete self.currentTerm;
  419. 2549.  -     return false;
  420. ------
  421. Файл - feed.css:
  422. 14.  -   padding: 8px 10px 8px;
  423. 15.  +   padding: 5px;
  424. 26.  -   padding: 6px 4px 5px 20px;
  425. 27.  -   width: 247px;
  426. 28.  +   padding: 5px 4px 4px 20px;
  427. 29.  +   width: 492px;
  428. 32.  -   background: #FFF url(/images/magglass.png) no-repeat 5px 8px;
  429. 33.  +   background: #FFF url(/images/magglass.png) no-repeat 5px 6px;
  430. 35.  - }
  431. 36.  - #feed_search::-webkit-input-placeholder {
  432. 37.  -   padding: 0 2px;
  433. 38.  - }
  434. 39.  - #feed_search:moz-input-placeholder {
  435. 40.  -   padding: 0 2px;
  436. 41.  - }
  437. 42.  -
  438. 43.  - #feed_query_reset {
  439. 44.  -   cursor: pointer;
  440. 45.  -   display: none;
  441. 46.  -   background: transparent url(/images/icons/input_clear.gif) 6px 8px no-repeat;
  442. 47.  -   padding: 1px;
  443. 48.  -   width: 22px;
  444. 49.  -   height: 25px;
  445. 50.  -   margin: 0 0 0 344px;
  446. 51.  -   opacity: 0.6;
  447. 52.  -   filter: alpha(opacity=60);
  448. 53.  -   z-index: 100;
  449. 54.  -   position: absolute;
  450. 55.  - }
  451. 56.  - #feed_query_reset:hover {
  452. 57.  -   opacity: 1;
  453. 58.  -   filter: none;
  454. 59.  - }
  455. 60.  - .feed_search_submit {
  456. 61.  -   margin: 0 10px;
  457. 62.  - }
  458. 63.  - .feed_search_extended {
  459. 64.  -   margin: 6px 5px 5px;
  460. 65.  -   white-space: nowrap;
  461. 66.  -   max-width: 122px;
  462. 67.  -   overflow: hidden;
  463. 68.  -   text-overflow: ellipsis;
  464. 70.  - #feed_search_submit_wrap {
  465. 71.  -   display: none;
  466. 72.  + #feed_search_btn {
  467. 73.  +   padding-left: 2px;
  468. 74.  +   padding-right: 4px;
  469. 75.  +   width: 80px;
  470. 77.  - #feed_search_submit {
  471. 78.  -   width: 75px;
  472. 79.  -   padding-top: 5px;
  473. 80.  -   padding-bottom: 5px;
  474. 81.  -   line-height: 13px;
  475. 82.  + #feed_news_bar {
  476. 83.  +   padding: 5px;
  477. 87.  -   padding: 4px 5px;
  478. 88.  - }
  479. 89.  - .feed_search_extform_wrap {
  480. 90.  -   display: none;
  481. 91.  - }
  482. 92.  - .feed_bar_extended_search #feed_news_bar,
  483. 93.  - .feed_bar_extended_search #feed_custom_bar {
  484. 94.  -   display: none !important;
  485. 95.  - }
  486. 96.  - .feed_bar_extended_search #feed_search_submit_wrap,
  487. 97.  - .feed_bar_extended_search .feed_search_extform_wrap {
  488. 98.  -   display: block;
  489. 99.  - }
  490. 100.  - .feed_bar_extended_search #feed_search {
  491. 101.  -   width: 342px;
  492. 102.  +   padding: 5px;
  493. 104.  -
  494. 107.  - }
  495. 108.  - #feed_search_bar #feed_search_extform .results_container {
  496. 109.  -   top: auto;
  497. 1346.  - }
  498. 1347.  -
  499. 1348.  - .feed_searchext_wrap {
  500. 1349.  -   clear: both;
  501. 1350.  - }
  502. 1351.  - #feed_search_sort {
  503. 1352.  -   display: none;
  504. 1353.  -   padding: 3px 0 0;
  505. 1354.  - }
  506. 1355.  - .feed_serachext_header {
  507. 1356.  -   color: #45688E;
  508. 1357.  -   font-weight: bold;
  509. 1358.  -   padding: 15px 0 8px;
  510. 1359.  - }
  511. 1360.  - .feed_searchext_geo_wrap {
  512. 1361.  -   height: 108px;
  513. 1362.  -   width: 130px;
  514. 1363.  - }
  515. 1364.  - .feed_searchext_map_icon {
  516. 1365.  -   background: url(/images/icons/attach_icons_2x.png?3) 0 -179px no-repeat;
  517. 1366.  -   width: 40px;
  518. 1367.  -   height: 40px;
  519. 1368.  - }
  520. 1369.  - #feed_searchext_map {
  521. 1370.  -   cursor: pointer;
  522. 1371.  -   padding: 20px 45px;
  523. 1372.  -   background: #E1E4E8;
  524. 1373.  -   position: relative;
  525. 1374.  - }
  526. 1375.  - #feed_searchext_map_delete_wrap {
  527. 1376.  -   display: none;
  528. 1377.  -   position: absolute;
  529. 1378.  -   top: 0;
  530. 1379.  -   right: 0;
  531. 1380.  -   background: #222;
  532. 1381.  -   background: rgba(0, 0, 0, 0.5);
  533. 1382.  -   -webkit-border-radius: 3px;
  534. 1383.  -   -moz-border-radius: 3px;
  535. 1384.  -   border-radius: 3px;
  536. 1385.  -   padding: 3px;
  537. 1386.  -   cursor: pointer;
  538. 1387.  -   margin-left: -13px;
  539. 1388.  - }
  540. 1389.  - .feed_searchext_map_delete {
  541. 1390.  -   background: url("/images/notifier_close.gif") no-repeat scroll 0 0 transparent;
  542. 1391.  -   opacity: 0.6;
  543. 1392.  -   filter: alpha(opacity=60);
  544. 1393.  -   width: 7px;
  545. 1394.  -   height: 7px;
  546. 1395.  - }
  547. 1396.  - #feed_searchext_map_delete_wrap:hover .feed_searchext_map_delete {
  548. 1397.  -   opacity: 0.8;
  549. 1398.  -   filter: alpha(opacity=80);
  550. 1399.  - }
  551. 1400.  - .feed_searchext_map_selected .feed_searchext_map_icon {
  552. 1401.  -   background: url('/images/map/small.png') 13px 8px no-repeat;
  553. 1402.  - }
  554. 1403.  - .feed_searchext_map_selected #feed_searchext_map_delete_wrap {
  555. 1404.  -   display: block;
  556. 1405.  - }
  557. 1406.  - .feed_searchext_param {
  558. 1407.  -   width: 140px;
  559. 1408.  -   padding: 0 15px 5px 0;
  560. 1409.  - }
  561. 1410.  - .feed_searchext_param_dropdown {
  562. 1411.  -   position: relative;
  563. 1412.  - }
  564. 1413.  - .feed_searchext_param_last_row .feed_serachext_header {
  565. 1414.  -   padding-top: 11px;
  566. 1415.  - }
  567. 1416.  -
  568. 1417.  - #feed_searchext_exclude,
  569. 1418.  - #feed_searchext_link,
  570. 1419.  - #feed_searchext_content {
  571. 1420.  -   width: 132px;
  572. 1421.  -   outline: none;
  573. ------
Advertisement
Add Comment
Please, Sign In to add comment