Hormold

VK Change (#1355833025)

Dec 18th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 20.12 KB | None | 0 0
  1. Файл - audioplayer.js:
  2. 150.  -       var volume = browser.mobile ? 80 : parseInt(getCookie('audio_vol'));
  3. 151.  +       var volume = parseInt(getCookie('audio_vol'));
  4. 217.  -     if (window.Pads && Pads.audioSearchCleared && (pl = cur.nextPlaylist) && pl[aid]) {
  5. 218.  -       _a.lastSong = pl[aid];
  6. 219.  -     } else if ((pl = padAudioPlaylist()) && pl[aid]) {
  7. 220.  +     if ((pl = padAudioPlaylist()) && pl[aid]) {
  8. 542.  -             if (ge('audio_vol' + aid) && browser.mobile) {
  9. 543.  -               hide('audio_vol' + aid);
  10. 544.  -             }
  11. 609.  -     if (cur.module == 'search' && nav.objLoc['c[section]'] == 'audio' && !nav.objLoc['c[q]']) params.top = 1;
  12. 610.  -     if (cur.module == 'audio' && nav.objLoc['act'] == 'popular' && !nav.objLoc['q']) params.top_audio = 1;
  13. 611.  +     if (nav.objLoc[0] == 'search' && nav.objLoc['c[section]'] == 'audio' && !nav.objLoc['c[q]']) params.top = 1;
  14. 612.  +     if (nav.objLoc[0] == 'audio' && nav.objLoc['act'] == 'popular' && !nav.objLoc['q']) params.top_audio = 1;
  15. 615.  -     if ((cur.module == 'groups' || cur.module == 'public' || cur.module == 'audio') && cur.oid == ids[0] && cur.oid < 0) params.group = 1;
  16. 616.  -     if ((cur.module == 'audio' || cur.module == 'feed') && nav.objLoc['q'] || cur.module == 'search' && nav.objLoc['c[q]']) params.search = 1;
  17. 617.  -     if (cur.module == 'audio' && nav.objLoc['album_id'] && cur.album_id) params.album = 1;
  18. 618.  -     if (cur.module == 'audio' && cur.club) params.club = cur.club;
  19. 619.  -     if (!params.search && cur.module == 'feed') params.feed = 1;
  20. 620.  +     if ((cur.module == 'groups' || cur.module == 'public' || nav.objLoc[0] == 'audio') && cur.oid == ids[0] && cur.oid < 0) params.group = 1;
  21. 621.  +     if ((nav.objLoc[0] == 'audio' || nav.objLoc[0] == 'feed') && nav.objLoc['q'] || nav.objLoc[0] == 'search' && nav.objLoc['c[q]']) params.search = 1;
  22. 622.  +     if (nav.objLoc[0] == 'audio' && nav.objLoc['album_id'] && cur.album_id) params.album = 1;
  23. 623.  +     if (nav.objLoc[0] == 'audio' && cur.club) params.club = cur.club;
  24. 624.  +     if (!params.search && nav.objLoc[0] == 'feed') params.feed = 1;
  25. 640.  -       setTimeout(ajax.post.pbind('audio', {act: 'audio_status', full_id: aid, hash: _a.addHash, top: (_a.playbackParams.top_audio || _a.playbackParams.top) ? 1 : ''}), 0);
  26. 641.  +       setTimeout(ajax.post.pbind('audio', {act: 'audio_status', full_id: aid, hash: _a.addHash}), 0);
  27. 828.  -     }
  28. 829.  -   },
  29. 830.  -   showRec: function(aid, fromPad) {
  30. 831.  -     var _a = audioPlayer;
  31. 832.  -     aid = aid || currentAudioId() ||  _a.lastSong && _a.lastSong.aid || cur.defaultTrack && cur.defaultTrack.id || window.audioPlaylist && audioPlaylist.start || '';
  32. 833.  -     if (!aid) return;
  33. 834.  -     if (fromPad) {
  34. 835.  -       _a.loadTrackRecommendations(aid);
  35. 836.  -     } else if (window.Audio) {
  36. 837.  -       Audio.loadRecommendations({update: true, audioId: aid});
  37. 856.  -     ajax.post('audio', {act: 'toggle_status', exp: (exp ? '' : 1), hash: _a.addHash, id: aid, top: (_a.playbackParams.top_audio || _a.playbackParams.top) ? 1 : ''});
  38. 857.  +     ajax.post('audio', {act: 'toggle_status', exp: (exp ? '' : 1), hash: _a.addHash, id: aid});
  39. 955.  -     if (!w.pageNode || !play_btn || cur.module == 'im') return;
  40. 956.  +     if (!w.pageNode || !play_btn || nav.objLoc[0] == 'im') return;
  41. 1043.  -   genPlaylist: function(list, copyToMain, allMy) {
  42. 1044.  +   genPlaylist: function(list, copyToMain) {
  43. 1073.  -     if (allMy) cur.nextPlaylist.my = 1;
  44. 1128.  -       } while (curId && curId != aid);
  45. 1129.  +       } while (curId != aid);
  46. 1140.  -       }
  47. 1141.  -     }
  48. 1142.  -   },
  49. 1143.  -
  50. 1144.  -   loadTrackRecommendations: function(aid) {
  51. 1145.  -     var _a = audioPlayer, ids = aid.split('_');
  52. 1146.  -     if (!ids[0] || !ids[1]) return;
  53. 1147.  -     ajax.post('/audio', {act: 'audio_recommendations', oid: ids[0], aid: ids[1]}, {
  54. 1148.  -       onDone: function(obj) {
  55. 1149.  -         if (obj && obj.all && obj.all.length) {
  56. 1150.  -           var curPlist = window.audioPlaylist;
  57. 1151.  -           _a.genPlaylist(obj.all, false);
  58. 1152.  -           if (cur.nextPlaylist)  cur.nextPlaylist.rec = 1;
  59. 1153.  -           if (window.Pads) {
  60. 1154.  -             Pads.audioSearchCleared = true;
  61. 1155.  -             if (window._pads && _pads.shown == 'mus') {
  62. 1156.  -               _a.recsLoaded = 1;
  63. 1157.  -               Pads.updateAudioPlaylist();
  64. 1158.  -             }
  65. 1159.  -           }
  66. 1160.  -         }
  67. 1161.  -       },
  68. 1162.  -       onFail: function(msg) {
  69. 1163.  -         setTimeout(showFastBox(getLang('global_error'), msg).hide, 3000);
  70. 1164.  -         return true;
  71. 1165.  -       }
  72. 1166.  -     });
  73. 1167.  -   },
  74. 1168.  -
  75. 1169.  -   showMyAudios: function(el) {
  76. 1170.  -     var _a = audioPlayer, allMy = (cur.module == 'audio' && cur.oid == vk.id && cur.audiosList && cur.audiosList.all);
  77. 1171.  -     if (allMy) {
  78. 1172.  -       _a.genPlaylist(allMy, false, true);
  79. 1173.  -       if (window.Pads) {
  80. 1174.  -         Pads.audioSearchCleared = true;
  81. 1175.  -         if (window._pads && _pads.shown == 'mus') Pads.updateAudioPlaylist();
  82. 1177.  -       re(el);
  83. 1178.  -     } else {
  84. 1179.  -       ajax.post('/audio', {act: 'load_audios_silent', id: vk.id}, {
  85. 1180.  -         cache: 1,
  86. 1181.  -         showProgress: function() {
  87. 1182.  -           ge('pad_footer_text').innerHTML = '<div class="progress" style="display: block;"></div>';
  88. 1183.  -         },
  89. 1184.  -         hideProgress: function() {
  90. 1185.  -           ge('pad_footer_text').innerHTML = '';
  91. 1186.  -         },
  92. 1187.  -         onDone: function(data, opts) {
  93. 1188.  -           var obj = eval('('+data+')');
  94. 1189.  -           if (!obj || !obj.all) return;
  95. 1190.  -           _a.genPlaylist(obj.all, false, true);
  96. 1191.  -           if (window.Pads) {
  97. 1192.  -             Pads.audioSearchCleared = true;
  98. 1193.  -             if (window._pads && _pads.shown == 'mus') Pads.updateAudioPlaylist();
  99. 1194.  -           }
  100. 1195.  -           re(el);
  101. 1196.  -         }
  102. 1197.  -       });
  103. 1436.  -   shuffleAudios: function(fromPad) {
  104. 1437.  -     var _a = audioPlayer, pl, aid;
  105. 1438.  -     if (fromPad && window.Pads) {
  106. 1439.  -       pl = Pads.audioSearchCleared ? cur.nextPlaylist || {} : ((!window.audioPlaylist || window.curNotifier && (padPlData = ls.get('pad_pldata')) && padPlData.source == curNotifier.instance_id) ? ls.get('pad_playlist') || window.audioPlaylist : padAudioPlaylist());
  107. 1440.  -       aid = ((_a = window.audioPlayer) && _a.isPlaylistGlobal()) ? ls.get('audio_id') || currentAudioId() : currentAudioId();
  108. 1441.  -     } else {
  109. 1442.  -       pl = window.audioPlaylist;
  110. 1443.  -       aid = currentAudioId();
  111. 1444.  -     }
  112. 1445.  +   shuffleAudios: function() {
  113. 1446.  +     var _a = audioPlayer, pl = window.audioPlaylist, aid = currentAudioId();
  114. 1459.  -     if (cur.module != 'audio' && !pl) {
  115. 1460.  +     if (nav.objLoc[0] != 'audio' && !pl) {
  116. 1472.  -     if (cur.module == 'audio' && window.Audio) {
  117. 1473.  +     if (nav.objLoc[0] == 'audio' && window.Audio) {
  118. 1525.  -       _a.genPlaylist(res, true, pl && pl.my);
  119. 1526.  +       _a.genPlaylist(res, true);
  120. 1546.  -       var volume = browser.mobile ? 80 : parseInt(getCookie('audio_vol'));
  121. 1547.  +       var volume = parseInt(getCookie('audio_vol'));
  122. 1575.  -       shuffle: _a.shuffleAudios.pbind(!!obj.padPlaylist),
  123. 1576.  -       rec: _a.showRec.pbind(false, !!obj.padPlaylist),
  124. 1577.  +       shuffle: _a.shuffleAudios,
  125. 1590.  -       rec: 'audio_show_recommendations',
  126. 1593.  -     each(['prev', 'next', 'play', 'add', 'repeat', 'rec', 'status', 'shuffle', 'volumeArea'], function(){
  127. 1594.  +     each(['prev', 'next', 'play', 'add', 'repeat', 'status', 'shuffle', 'volumeArea'], function(){
  128. 1605.  -     each(['prev', 'next', 'play', 'add', 'repeat', 'rec', 'status', 'shuffle', 'volumeArea', 'progressArea'], function(){
  129. 1606.  +     each(['prev', 'next', 'play', 'add', 'repeat', 'status', 'shuffle', 'volumeArea', 'progressArea'], function(){
  130. 1652.  -       shuffle: _a.shuffleAudios.pbind(!!obj.padPlaylist),
  131. 1653.  -       rec: _a.showRec.pbind(false, !!obj.padPlaylist),
  132. 1666.  -       rec: 'audio_show_recommendations',
  133. 1669.  -     each(['prev', 'next', 'play', 'add', 'repeat', 'rec', 'status', 'shuffle', 'volumeArea'], function(){
  134. 1670.  +     each(['prev', 'next', 'play', 'add', 'repeat', 'status', 'shuffle', 'volumeArea'], function(){
  135. 1681.  -     each(['prev', 'next', 'play', 'add', 'repeat', 'rec', 'status', 'shuffle', 'volumeArea', 'progressArea'], function(){
  136. 1682.  +     each(['prev', 'next', 'play', 'add', 'repeat', 'status', 'shuffle', 'volumeArea', 'progressArea'], function(){
  137. ------
  138. Файл - audio.js:
  139. 55.  -         rec: ge('ac_rec'),
  140. 59.  -     }
  141. 60.  -     if (browser.mobile) {
  142. 61.  -       hide('ac_vol');
  143. 62.  -       setStyle('ac_duration', {margin: 0});
  144. 216.  -             audioPlayer.genPlaylist(cur.audiosList[cur.curList], false, cur.curList == 'all' && cur.oid == vk.id);
  145. 217.  +             audioPlayer.genPlaylist(cur.audiosList[cur.curList], false);
  146. 402.  -     var aid = currentAudioId(), clubList = (cur.curSection && cur.curSection.substr(0, 4) == 'club');
  147. 403.  +     var aid = currentAudioId(), clubList = (cur.curSection.substr(0, 4) == 'club');
  148. 639.  -       delete nav.objLoc.audio_id;
  149. 750.  -       audioPlayer.genPlaylist(cur.audiosList[cur.curList], false, cur.curList == 'all' && cur.oid == vk.id);
  150. 751.  +       audioPlayer.genPlaylist(cur.audiosList[cur.curList], false);
  151. 797.  -       audioPlayer.genPlaylist(cur.audiosList[cur.curList], false, index == 'all' && cur.oid == vk.id);
  152. 798.  +       audioPlayer.genPlaylist(cur.audiosList[cur.curList], false);
  153. 866.  -       if (cur.curSection && cur.curSection.substr(0, 4) == 'club') {
  154. 867.  +       if (cur.curSection.substr(0, 4) == 'club') {
  155. 919.  -         setStyle(anim.parentNode.parentNode, {paddingLeft: '2px'});
  156. 934.  -     if ((cur.module == 'audio' || cur.module == 'feed') && nav.objLoc['q'] || cur.module == 'search' && nav.objLoc['c[q]']) query.search = 1;
  157. 935.  +     if ((nav.objLoc[0] == 'audio' || nav.objLoc[0] == 'feed') && nav.objLoc['q'] || nav.objLoc[0] == 'search' && nav.objLoc['c[q]']) query.search = 1;
  158. 1077.  -     delete nav.objLoc.audio_id;
  159. 1151.  -       Audio.loadRecommendations({update: 'remix'});
  160. 1152.  +       Audio.loadRecommendations('remix');
  161. 1176.  -   loadRecommendations: function(opts) {
  162. 1177.  +   loadRecommendations: function(update) {
  163. 1179.  -     opts = opts || {};
  164. 1180.  -     var update = opts.update, audioId = opts.audioId;
  165. 1186.  -     }
  166. 1187.  -     if (audioId) {
  167. 1188.  -       cur.recsAudioId = audioId;
  168. 1189.  -     } else if (update === true) {
  169. 1190.  -       delete cur.recsAudioId;
  170. 1208.  -     cur.lastSection = cur.curSection;
  171. 1243.  -     }
  172. 1244.  -     if (opts.tt) {
  173. 1245.  -       opts.tt.hide();
  174. 1259.  -     }
  175. 1260.  -     if (cur.recsAudioId) {
  176. 1261.  -       query.audio_id = cur.recsAudioId;
  177. 1285.  -           if (query.audio_id) {
  178. 1286.  -             cur.nextPlaylist.rec = 1;
  179. 1287.  -           }
  180. 1298.  -         cur.preloadJSON = preload_json ? eval('('+preload_json+')') : false;
  181. 1299.  +         cur.preloadJSON = eval('('+preload_json+')');
  182. 1311.  -         if (cur.recsCount && !query.audio_id) {
  183. 1312.  +         if (cur.recsCount) {
  184. 1333.  -         if (query.audio_id) {
  185. 1334.  -           extend(nav.objLoc, {audio_id: query.audio_id});
  186. 1335.  -         } else {
  187. 1336.  -           delete nav.objLoc.audio_id;
  188. 1337.  -         }
  189. 1341.  -       },
  190. 1342.  -       onFail: function(msg) {
  191. 1343.  -         delete cur.loadingRecs;
  192. 1344.  -         cur.curSection = cur.lastSection;
  193. 1345.  -         removeClass(ge('recommendations'), 'selected');
  194. 1346.  -         setTimeout(showFastBox(getLang('global_error'), msg).hide, 3000);
  195. 1347.  -         return true;
  196. 1503.  -         delete nav.objLoc.audio_id;
  197. 1679.  -     if (cur.curSection && cur.curSection.substr(0, 4) == 'club') {
  198. 1680.  +     if (cur.curSection.substr(0, 4) == 'club') {
  199. 1857.  -   showAudioClaimWarning: function(aid, claim_id, title, reason) {
  200. 1858.  +   showAudioClaimWarning: function(aid, claim_id, title) {
  201. 1861.  -         Audio.showAudioClaimWarning(aid, claim_id, title, reason);
  202. 1862.  +         Audio.showAudioClaimWarning(aid, claim_id, title);
  203. 1865.  -     }
  204. 1866.  -     var claimText, claimTitle;
  205. 1867.  -     if (reason == 'crap') {
  206. 1868.  -       claimText = getLang(claim_id >= 0 ? 'audio_crap_warning_text' : 'audio_crap_warning') || getLang(claim_id > 0 ? 'audio_claim_warning_objection' : (claim_id == 0 ? 'audio_claim_warning_text' : 'audio_claim_warning'));
  207. 1869.  -       claimTitle = getLang('audio_crap_warning_title') || getLang('audio_claim_warning_title');
  208. 1870.  -     } else {
  209. 1871.  -       claimText = (claim_id > 0) ? getLang('audio_claim_warning_objection') : (claim_id == 0 ? getLang('audio_claim_warning_text') : getLang('audio_claim_warning'));
  210. 1872.  -       claimTitle = getLang('audio_claim_warning_title');
  211. 1874.  +     var claimText = (claim_id > 0) ? getLang('audio_claim_warning_objection') : (claim_id == 0 ? getLang('audio_claim_warning_text') : getLang('audio_claim_warning'));
  212. 1878.  -     cur.claimWarning = showFastBox(claimTitle, claimText);
  213. 1879.  +     cur.claimWarning = showFastBox(getLang('audio_claim_warning_title'), claimText);
  214. ------
  215. Файл - wkview.js:
  216. 24.  -   if (!wkcur.previousLayer) {
  217. 25.  -     wkcur.previousLayer = isVisible(layerWrap) || (isVisible(ge('mv_layer_wrap')) && !mvcur.minimized);
  218. 26.  -   }
  219. 27.  -   layers.fullhide && layers.fullhide(true);
  220. 28.  -
  221. 633.  -   } else if (doUpdAds) {
  222. 634.  +   } else
  223. 635.  +   if (doUpdAds) {
  224. 856.  -     if (wkcur.previousLayer) {
  225. 857.  -       nav.go(wkcur.prevLoc);
  226. 858.  -     } else {
  227. 859.  -       nav.setLoc(wkcur.prevLoc);
  228. 860.  -     }
  229. 861.  -     if (wkcur.previousLayer && wkcur.prevLoc.z) {
  230. 862.  -       zNav({z: wkcur.prevLoc.z});
  231. 863.  -     }
  232. 864.  +     nav.setLoc(wkcur.prevLoc);
  233. 1066.  -     postEl = postEl || ge('reply_fakebox' + post) || ge('reply_box' + post) || ge('replies' + post) || ge('feedback_row_wall' + post) || (wkcur.hl_reply && (ge('post' + wkcur.hl_reply) || ge('feedback_row_wall_reply' + wkcur.hl_reply))) || ge('feed_rows');
  234. 1067.  +     postEl = postEl || ge('reply_fakebox' + post) || ge('reply_box' + post) || ge('replies' + post);
  235. 1421.  -   re(cur.lSTL);
  236. 1432.  -   cur.lSTL = wkcur.lSTL;
  237. 1433.  -
  238. 1438.  -   onBodyResize();
  239. 1439.  -
  240. 1440.  -   if (!cur.wallInited) {
  241. 1441.  -     Wall.initWallOptions(wkcur.wall_opts);
  242. 1442.  -   }
  243. 1443.  -
  244. 1444.  -   if (cur.options === undefined) {
  245. 1445.  -     cur.options = {reply_names: {}};
  246. 1446.  -   } else if (cur.options.reply_names === undefined) {
  247. 1447.  -     cur.options.reply_names = {};
  248. 1448.  -   }
  249. 1449.  -   extend(cur.options.reply_names, wkcur.reply_names);
  250. 1454.  -     re(wkcur.lSTL, cur.lSTL);
  251. 1494.  -     onDone: function(rows, newOffset, needMore, names) {
  252. 1495.  +     onDone: function(rows, newOffset, needMore) {
  253. 1507.  -       if (names) {
  254. 1508.  -         extend(cur.options.reply_names, names);
  255. 1509.  -       }
  256. ------
  257. Файл - wkview.css:
  258. 141.  -   padding: 17px 4px 0px;
  259. 142.  +   padding: 15px 4px 0px;
  260. 671.  - }
  261. 672.  - div#wl_post_body_wrap .published_by_quote .wall_text,
  262. 673.  - div#wl_post_body_wrap .published_by_quote .wall_post_text,
  263. 674.  - div#wl_post_body_wrap .published_by_quote .post_media {
  264. 675.  -   width: 592px;
  265. 676.  - }
  266. 677.  - div#wl_post_body_wrap .audio .title_wrap {
  267. 678.  -   width: 485px;
  268. ------
  269. Файл - page_fixed.css:
  270. 146.  - .wall_fixed .wall_module .wall_album_photos .page_post_sized_thumbs {
  271. 147.  -   margin: 0;
  272. 148.  - }
  273. ------
  274. Файл - privacy.css:
  275. 110.  -   padding: 0px 11px 15px 11px;
  276. 111.  +   padding: 0px 10px 15px 10px;
  277. 144.  -   width: 253px;
  278. 145.  +   width: 256px;
  279. ------
  280. Файл - notifier.js:
  281. 1200.  -     audioObj.src = '/' + filename + ext;
  282. 1201.  +     audioObj.src = filename + ext;
  283. 1236.  -             swfObj.loadAudio('/' + filename + ext);
  284. 1237.  +             swfObj.loadAudio(filename + ext);
  285. 2617.  -     ajax.post('al_im.php', extend({act: 'a_state_fc', hash: curFastChat.options.state_hash || ''}, data), {
  286. 2618.  +     ajax.post('al_im.php', extend({act: 'a_state_fc'}, data), {
  287. 3381.  -       if (topDomain.length > 6 || indexOf('info,name,aero,arpa,coop,museum,mobi,travel,xxx,asia,biz,com,net,org,gov,mil,edu,int,tel,ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,bd,be,bf,bg,bh,bi,bj,bm,bn,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,ck,cl,cm,cn,co,cr,cu,cv,cx,cy,cz,de,dj,dk,dm,do,dz,ec,ee,eg,eh,er,es,et,eu,fi,fj,fk,fm,fo,fr,ga,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gu,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,il,im,in,io,iq,ir,is,it,je,jm,jo,jp,ke,kg,kh,ki,km,kn,kp,kr,kw,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mm,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,mz,na,nc,ne,nf,ng,ni,nl,no,np,nr,nu,nz,om,pa,pe,pf,pg,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,ru,rs,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tr,tt,tv,tw,tz,ua,ug,uk,um,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,ye,yt,yu,za,zm,zw,��,cat,pro,local'.split(','), topDomain) == -1) return full;
  288. 3382.  +       if (topDomain.length > 5 || indexOf('aero,asia,biz,com,coop,edu,gov,info,int,jobs,mil,mobi,name,net,org,pro,tel,travel,xxx,ru,ua,su,��,fi,fr,uk,cn,gr,ie,nl,au,co,gd,im,cc,si,ly,gl,be,eu,tv,to,me,io'.split(','), topDomain) == -1) return full;
  289. ------
  290. Файл - docs.js:
  291. 219.  -   var thumb = item[8];
  292. 220.  -   if (thumb) {
  293. 221.  -     ext = '<a class="docs_item_thumb fl_l" href="'+url+'" ext="'+ext+'" onmouseover="Docs.showFileTT(this, '+oid+', '+id+')" onclick="return Docs.downloadItem('+oid+', '+id+');"><img class="docs_item_thumb_img" src="'+thumb+'"></a>';
  294. 222.  -   } else {
  295. 223.  -     ext = '<a class="docs_item_icon" href="'+url+'" ext="'+ext+'" onclick="return Docs.downloadItem('+oid+', '+id+');">'+ext+'</a>';
  296. 224.  -   }
  297. 444.  -   var icon = geByClass1('docs_item_icon', item) || geByClass1('docs_item_thumb', item);
  298. 445.  +   var icon = geByClass('docs_item_icon', item)[0];
  299. 447.  -   var ext = trim(icon.getAttribute('ext'));
  300. 448.  +   var ext = trim(icon.innerHTML);
  301. 455.  - },
  302. 456.  -
  303. 457.  - showFileTT: function(obj, oid, did) {
  304. 458.  -   var item = ge('docs_file_'+oid+'_'+did);
  305. 459.  -   if (!item) return false;
  306. 460.  -   var icon = geByClass1('docs_item_icon', item) || geByClass1('docs_item_thumb', item);
  307. 461.  -   var href = icon.href;
  308. 462.  -   var ext = trim(icon.getAttribute('ext'));
  309. 463.  -   if (ext == 'gif') {
  310. 464.  -     var img = new vkImage();
  311. 465.  -     img.src = href;
  312. 466.  -     img.onload = function() {
  313. 467.  -       var el = obj.parentNode;
  314. 468.  -       if (cur.prevTT && cur.prevTT != el && cur.prevTT.tt) {
  315. 469.  -         cur.prevTT.tt.hide();
  316. 470.  -       }
  317. 471.  -       clearTimeout(el.hidetimer);
  318. 472.  -       el.hidetimer = false;
  319. 473.  -       cur.prevTT = el;
  320. 474.  -       showTooltip(el, {
  321. 475.  -         content: '<div class="docs_tt_preview"><img style="max-width: 300px; max-height: 350px;" src="'+href+'" align="center"/></div>',
  322. 476.  -         shift: [0,-6,-4],
  323. 477.  -         slide: 15,
  324. 478.  -         className: 'wall_tt docs_tt',
  325. 479.  -         hasover: false,
  326. 480.  -         nohideover: true,
  327. 481.  -         showdt: 0
  328. 482.  -       });
  329. 483.  -     }
  330. 484.  -     stManager.add(['tooltips.js', 'tooltips.css']);
  331. 485.  -   }
  332. 486.  -
  333. ------
  334. Файл - docs.css:
  335. 167.  -   background: #E1E7ED url('/images/icons/darr.gif') 8px 7px no-repeat;
  336. 168.  -   width: 30px;
  337. 169.  +   background: #E1E7ED url('/images/icons/darr.gif') 6px 7px no-repeat;
  338. 170.  +   width: 27px;
  339. 175.  -   padding: 3px 0px 0px 20px;
  340. 176.  +   padding: 3px 0px 0px 17px;
  341. 178.  -   display: block;
  342. 179.  - }
  343. 180.  - .docs_item_thumb {
  344. 182.  -   width: 50px;
  345. 183.  -   height: 38px;
  346. 184.  -   overflow: hidden;
  347. 185.  -   -webkit-border-radius: 3px;
  348. 186.  -   -moz-border-radius: 3px;
  349. 187.  -   border-radius: 3px;
  350. 188.  - }
  351. 189.  - .docs_item_thumb_img {
  352. 190.  -   max-width: 50px;
  353. 191.  -   *width: 50px;
  354. 192.  -   -webkit-border-radius: 3px;
  355. 193.  -   -moz-border-radius: 3px;
  356. 194.  -   border-radius: 3px;
  357. 202.  -   padding: 2px 60px 0px 60px;
  358. 203.  +   padding: 2px 54px 0px 54px;
  359. 555.  - }
  360. 556.  - .docs_tt_preview {
  361. 557.  -   padding: 5px;
  362. 558.  -   background: white;
  363. 559.  -   border: 1px solid #96AABE;
  364. 560.  -   color: #2C587D;
  365. 561.  - }
  366. 562.  - .wall_tt.docs_tt .toup .top_pointer, .wall_tt.docs_tt .toup1 .bottom_pointer {
  367. 563.  -   margin-left: 21px;
  368. ------
  369. Файл - upload.js:
  370. 95.  -     if (vars.https_resp) {
  371. 96.  -       check_vars.https_resp = vars.https_resp;
  372. 97.  -     }
  373. ------
Advertisement
Add Comment
Please, Sign In to add comment