Hormold

VK Change (#1355409019)

Dec 13th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 21.82 KB | None | 0 0
  1. Файл - common.js:
  2. различия невозможно определить в SWF файлах.
  3. Файл - graph.js:
  4. 40.  +               0x85afd0, 0xd391bb, 0x8ecfce, 0xa8d1a9, 0xe47070, 0xf2ec96, 0xf7be5a, 0xbeaadf,
  5. 42.  -               0x6391bc, 0xc77bb1, 0x62b1bc, 0x80bb88, 0xb75454, 0xc9c255, 0xdca94f, 0x997fc4,
  6. 43.  -               0x85afd0, 0xc77bb1, 0x8ecfce, 0x80bb88, 0xe47070, 0xc9c255, 0xf7be5a, 0xbeaadf];
  7. 44.  +               0x6391bc, 0xbc6b9e, 0x62b1bc, 0x69a57a, 0xb75454, 0xd4ce68, 0xdca94f, 0x997fc4];
  8. 207.  - function drawLines(ctx, x, y, w, h, lines, stTime, enTime, xfactor, yfactor, yDelta, zoomedOut, active, smooth) {
  9. 208.  -   smooth = (!zoomedOut) && smooth;
  10. 209.  + function drawLines(ctx, x, y, w, h, lines, stTime, enTime, xfactor, yfactor, yDelta, zoomedOut, active) {
  11. 210.  +   var smooth = (!zoomedOut) && ((enTime - stTime) < (35 * 24 * 60 * 60));
  12. 412.  -   setStyle(this.graphDiv, {fontFamily: 'tahoma, arial, verdana, sans-serif, Lucida Sans', fontSize: '11px', color: '#36638e', width: this.viewWidth + 'px', clear: 'both', lineHeight: '130%'});
  13. 413.  +   setStyle(this.graphDiv, {fontFamily: 'tahoma, arial, verdana, sans-serif, Lucida Sans', fontSize: '11px', color: '#36638e', width: this.viewWidth + 'px', clear: 'both'});
  14. 455.  -   var defaultGraph = 0;
  15. 457.  -     if (!params.multiple.def) params.multiple.def = 0;
  16. 458.  +     if (!params.multiple.del) params.multiple.def = 0;
  17. 487.  -     defaultGraph = params.multiple.def;
  18. 499.  -     dragElement: null, maskDragging: false, viewClick: false, smoothLines: false,
  19. 500.  +     dragElement: null, maskDragging: false, viewClick: false,
  20. 561.  -     graph.setData((typeof(data) == 'string') ? data : (data[defaultGraph] || []), isArray(params.adjust) ? params.adjust[0] : params.adjust);
  21. 562.  +     graph.setData((typeof(data) == 'string') ? data : (data[0] || []), isArray(params.adjust) ? params.adjust[0] : params.adjust);
  22. 870.  -     if (!g.smoothLines || !tooltips) {
  23. 871.  +     if (g.rightTime - g.leftTime >= 35 * 24 * 60 * 60 || !tooltips) {
  24. 973.  -     var g = ev.currentTarget.graph, line = ev.currentTarget.line, dot = line.dotLabel.dot, pos = line.dotLabel.pos;
  25. 974.  -     if (!g.smoothLines) {
  26. 975.  -       var text = '';
  27. 976.  -       if (line.l) {
  28. 977.  -         text += langNumeric(dot.y, line.l, true);
  29. 978.  -       } else {
  30. 979.  -         text += (dot.l ? dot.l : formatValue(dot.y)) + ' ' + line.name;
  31. 980.  +     var g = ev.currentTarget.graph, line = ev.currentTarget.line;
  32. 981.  +     for (var l = 0; l < g.lines.length; l++) {
  33. 982.  +       if (g.lines[l] == line) {
  34. 983.  +         g.showDotTT(l);
  35. 984.  +         break;;
  36. 986.  -       line.dotLabel.innerHTML = text;
  37. 987.  -       var sz = getSize(line.dotLabel)[0];
  38. 988.  -       if (pos + sz + line.dot.posX > g.viewWidth) {
  39. 989.  -         line.dotLabel.innerHTML = line.name + ' ' + (dot.l ? dot.l : formatValue(dot.y));
  40. 990.  -         line.dotLabel.style.left = pos - (sz - line.dotLabel.w) + "px";
  41. 991.  -       } else
  42. 992.  -         line.dotLabel.style.left = pos + "px";
  43. 993.  -
  44. 994.  -       for (var l = 0; l < g.lines.length; l++)
  45. 995.  -         g.lines[l].dotLabel.style.zIndex = (g.lines[l] == line) ? 1000 : 200;
  46. 1024.  -     if (!this.smoothLines) {
  47. 1025.  +     if (this.rightTime - this.leftTime >= 35 * 24 * 60 * 60) {
  48. 1037.  -       text += (dot.l ? dot.l : formatValue(dot.y)) + ' &ndash; ' + line.name;
  49. 1038.  +       text += (dot.l ? dot.l : formatValue(dot.y)) + ' ' + line.name;
  50. 1112.  -       drawLines(ctx, 0, 4, this.viewWidth, 32, this.lines, this.minTime, this.maxTime, this.xfactorOut, this.yfactorOut, -this.minValue, true, null, false);
  51. 1113.  +       drawLines(ctx, 0, 4, this.viewWidth, 32, this.lines, this.minTime, this.maxTime, this.xfactorOut, this.yfactorOut, -this.minValue, true, null);
  52. 1115.  -       drawLines(ctx, 0, 4, this.viewWidth, 36, this.lines, this.minTime, this.maxTime, this.xfactorOut, this.yfactorOut, 0, true, null, false);
  53. 1116.  +       drawLines(ctx, 0, 4, this.viewWidth, 36, this.lines, this.minTime, this.maxTime, this.xfactorOut, this.yfactorOut, 0, true, null);
  54. 1143.  -     var localMax = (this.adjust ? -1e9 : 0), localMin = (this.adjust ? 1e9 : 0), outMax = 0, outMin = 0, dotsVisible = 0;
  55. 1144.  +     var localMax = (this.adjust ? -1e9 : 0), localMin = (this.adjust ? 1e9 : 0), outMax = 0, outMin = 0;
  56. 1155.  -         if (enIdx >= stIdx && (ps[enIdx].x >= this.leftTime) && (ps[stIdx].x <= this.rightTime)) {
  57. 1156.  +         if (enIdx >= stIdx && (ps[enIdx].x >= this.leftTime) && (ps[stIdx].x <= this.rightTime))
  58. 1163.  -           dotsVisible = Math.max(dotsVisible, enIdx - stIdx);
  59. 1164.  -         }
  60. 1184.  -     this.smoothLines = dotsVisible < 30 ? true : false;
  61. 1292.  -       drawLines(ctx, 0, 9, this.viewWidth, this.viewHeight - 43, this.lines, this.leftTime, this.rightTime, this.xfactorIn, this.yfactorIn, -this.localBottom, false, this.activeLine, this.smoothLines);
  62. 1293.  +       drawLines(ctx, 0, 9, this.viewWidth, this.viewHeight - 43, this.lines, this.leftTime, this.rightTime, this.xfactorIn, this.yfactorIn, -this.localBottom, false, this.activeLine);
  63. 1295.  -       drawLines(ctx, 0, 9, this.viewWidth, this.viewHeight - 34, this.lines, this.leftTime, this.rightTime, this.xfactorIn, this.yfactorIn, this.adjust ? -this.localBottom : 0, false, this.activeLine, this.smoothLines);
  64. 1296.  +       drawLines(ctx, 0, 9, this.viewWidth, this.viewHeight - 34, this.lines, this.leftTime, this.rightTime, this.xfactorIn, this.yfactorIn, this.adjust ? -this.localBottom : 0, false, this.activeLine);
  65. 1436.  -       addEventEx(this, line.dotLabel, 'mouseover', this.expandLabel);
  66. 1437.  +       //addEventEx(this, line.dotLabel, 'mouseover', this.expandLabel);
  67. 1597.  -         var colors_row = l % 4;
  68. 1598.  -         colors_row = colors_row == 1 ? 3 : colors_row;
  69. 1599.  -         line.c = colors[(colors_row * 8 + Math.floor(l / 4)) % colors.length];
  70. 1600.  +         line.c = colors[((l % 4) * 8 + Math.floor(l / 4)) % colors.length];
  71. ------
  72. Файл - qsorter.js:
  73. 87.  -     cur.qsorterOver = false;
  74. 335.  -     if (browser.mobile) return;
  75. 336.  -     var s = parent.qsorter;
  76. 337.  -     extend(s, opts);
  77. 338.  -     s.count = 0;
  78. 339.  -     s.elems = [];
  79. 340.  -     if (s.dragCont) {
  80. 341.  -       s.updateDragCont();
  81. 342.  -     }
  82. 343.  -     this.added(parent);
  83. 344.  +    var s = parent.qsorter;
  84. 345.  +    extend(s, opts);
  85. 346.  +    s.count = 0;
  86. 347.  +    s.elems = [];
  87. 348.  +    if (s.dragCont) {
  88. 349.  +      s.updateDragCont();
  89. 350.  +    }
  90. 351.  +    this.added(parent);
  91. 354.  -     if (browser.mobile) return;
  92. ------
  93. Файл - phototag.js:
  94. 1.  -   startTag: function() {
  95. 2.  +   startTag: function(toProfile) {
  96. 5.  -     if (!cur.pvFriends) {
  97. 6.  +     cur.pvTagToProfile = toProfile = (toProfile === true);
  98. 7.  +     if (!cur.pvFriends && !toProfile) {
  99. 43.  -     if (!cur.pvFriendsList) {
  100. 44.  +     if (!cur.pvFriendsList && !toProfile) {
  101. 55.  -     cur.pvTagInfo.innerHTML = '<div class="msg"><a class="fl_r" onclick="Phototag.stopTag()">' + getLang('global_done') + '</a>' + getLang('photos_select_tag_area') + '</div>';
  102. 56.  -     show(cur.pvTagInfo);
  103. 57.  +     if (!toProfile) {
  104. 58.  +       cur.pvTagInfo.innerHTML = '<div class="msg"><a class="fl_r" onclick="Phototag.stopTag()">' + getLang('global_done') + '</a>' + getLang('photos_select_tag_area') + '</div>';
  105. 59.  +       show(cur.pvTagInfo);
  106. 60.  +     }
  107. 66.  -
  108. 67.  -     if (!cur.pvTagger) return;
  109. 68.  -     var options = {
  110. 69.  -       minw: 30,
  111. 70.  -       minh: 30,
  112. 71.  -       onStart: (browser.msie || browser.mozilla) ? hide.pbind(cur.pvFriends) : fadeOut.pbind(cur.pvFriends, 200),
  113. 72.  -       onFinish: Phototag.showFriends
  114. 73.  -     }, ph = cur.pvData[cur.pvListId][cur.pvIndex];
  115. 74.  + //    stManager.add(['tagger.css', 'tagger.js'], function() {
  116. 75.  +       if (!cur.pvTagger) return;
  117. 76.  +       var options = toProfile ? {
  118. 77.  +         minw: 50,
  119. 78.  +         minh: 50
  120. 79.  +       } : {
  121. 80.  +         minw: 30,
  122. 81.  +         minh: 30,
  123. 82.  +         onStart: (browser.msie || browser.mozilla) ? hide.pbind(cur.pvFriends) : fadeOut.pbind(cur.pvFriends, 200),
  124. 83.  +         onFinish: Phototag.showFriends
  125. 84.  +       }, ph = cur.pvData[cur.pvListId][cur.pvIndex];
  126. 85.  +       if (toProfile) {
  127. 86.  +         if (ph.tagged[vk.id]) {
  128. 87.  +           var coords = clone(ph.tags[ph.tagged[vk.id]]);
  129. 88.  +           each(coords, function(i, v) {
  130. 89.  +             var wh = cur[(i % 2) ? 'pvPhHeight' : 'pvPhWidth'];
  131. 90.  +             coords[i] = positive(v * wh / 100);
  132. 91.  +           });
  133. 92.  +           options.rect = {left: coords[0], top: coords[1], width: (coords[2] - coords[0]), height: (coords[3] - coords[1])};
  134. 93.  +           Photoview.hideTag(true);
  135. 94.  +         } else {
  136. 95.  +           var l = Math.min(Math.max(Math.floor((cur.pvPhWidth - 50) / 2), 0), 20);
  137. 96.  +           var t = Math.min(Math.max(Math.floor((cur.pvPhHeight - 50) / 2), 0), 20);
  138. 97.  +           options.rect = {left: l, top: t, width: cur.pvPhWidth - l * 2, height: cur.pvPhHeight - t * 2};
  139. 98.  +         }
  140. 99.  +         cur.pvTagInfo.innerHTML = '\
  141. 100.  + <div class="fl_r button_gray"><button id="pv_prof_cancel">' + getLang('global_cancel') + '</button></div>\
  142. 101.  + <div class="fl_r button_blue"><button id="pv_prof_done">' + getLang('global_done') + '</button></div>\
  143. 102.  + <div class="progress fl_r" id="pv_prof_progress"></div>\
  144. 103.  + <div class="pv_to_profile_desc">' + getLang('photos_crop_info') + '</div>';
  145. 104.  +         show(cur.pvTagInfo);
  146. 105.  +         ge('pv_prof_cancel').onclick = Phototag.stopTag;
  147. 106.  +         ge('pv_prof_done').onclick = Photoview.toProfile;
  148. 107.  +       }
  149. 109.  -     cur.pvTagger = photoTagger(cur.pvPhoto.firstChild, extend(options, {
  150. 110.  -       zstart: 600
  151. 111.  -     }));
  152. 112.  +       cur.pvTagger = photoTagger(cur.pvPhoto.firstChild, extend(options, {
  153. 113.  +         zstart: 600
  154. 114.  +       }));
  155. 115.  + //    });
  156. ------
  157. Файл - photoview.js:
  158. 152.  +   <form method="POST" target="pv_to_profile_frame" name="pv_to_profile_form" id="pv_to_profile_form"></form>\
  159. 728.  -     if (img.width < 200 || img.height < 200) {
  160. 729.  -       ph.actions.prof = false;
  161. 730.  -     }
  162. 731.  +     if (ph.toprof === true && (img.width < 200 || img.height < 200)) ph.actions.prof = false;
  163. 738.  - ' + (ph.actions.prof ? ('<a id="pv_to_profile" onmouseover="Photoview.toProfileTag()" onmouseout="Photoview.hideTag()" onclick="showBox(\'al_page.php\', {act: \'owner_photo_edit\', photo: \'' + ph.id + '\'}, {stat: [\'owner_photo.css\', \'owner_photo.js\', \'tagger.css\', \'tagger.js\']});">' + getLang('photos_load_to_profile') + '</a>') : '') + '\
  164. 739.  + ' + (ph.actions.prof ? ('<a id="pv_to_profile" onmouseover="Photoview.toProfileTag()" onmouseout="Photoview.hideTag()" ' + (ph.toprof === true ? 'onclick="showBox(\'al_page.php\', {act: \'owner_photo_edit\', photo: \'' + ph.id + '\'}, {stat: [\'owner_photo.css\', \'owner_photo.js\', \'tagger.css\', \'tagger.js\']});"' : 'onclick="stManager.add([\'phototag.js\', \'phototag.css\', \'tagger.css\', \'tagger.js\'], function() { Phototag.startTag(true); })"') + '>' + getLang('photos_load_to_profile') + '</a>') : '') + '\
  165. 1987.  +
  166. 1988.  +   toProfile: function() {
  167. 1989.  +     var prg = ge('pv_prof_progress');
  168. 1990.  +     if (isVisible(prg)) return;
  169. 1991.  +
  170. 1992.  +     hide(ge('pv_prof_cancel').parentNode, ge('pv_prof_done').parentNode);
  171. 1993.  +     show(prg);
  172. 1994.  +     cur.pvTagInfo.appendChild(ce('div', {id: 'pv_to_profile_frame', className: 'upload_frame', innerHTML: '<iframe name="pv_to_profile_frame"></iframe>'}));
  173. 1995.  +
  174. 1996.  +     var listId = cur.pvListId, index = cur.pvIndex, ph = cur.pvData[listId][index], form = ge('pv_to_profile_form');
  175. 1997.  +     var xy = getSize(cur.pvPhoto.firstChild), rect = clone(cur.pvTagger.result());
  176. 1998.  +     each(rect, function(i) {
  177. 1999.  +       rect[i] = intval(rect[i] / xy[i % 2] * 10000);
  178. 2000.  +     });
  179. 2002.  +     form.innerHTML = '';
  180. 2003.  +     form.action = ph.toprof[0];
  181. 2004.  +     var data = extend({act: 'to_profile', crop: rect.join(','), list_id: listId, index: index, from_host: locHost, fid: ph.id}, ph.toprof);
  182. 2005.  +     for (var i in data) {
  183. 2006.  +       if (i != 0) {
  184. 2007.  +         form.appendChild(ce('input', {type: 'hidden', name: i, value: data[i]}));
  185. 2008.  +       }
  186. 2009.  +     }
  187. 2010.  +     form.submit();
  188. 2011.  +   },
  189. 2012.  +   toProfileFail: function() {
  190. 2013.  +     hide('pv_prof_progress');
  191. 2014.  +     show(ge('pv_prof_cancel').parentNode, ge('pv_prof_done').parentNode);
  192. 2015.  +   },
  193. ------
  194. Файл - video.js:
  195. 25.  -     if (browser.mobile) {
  196. 26.  -       cur.cansort = false;
  197. 27.  -     }
  198. 136.  -   },
  199. 137.  -   privateTooltip: function(obj) {
  200. 138.  -     showTooltip(obj, {
  201. 139.  -       black: 1,
  202. 140.  -       text: '<div style="padding: 2px;">'+getLang('video_is_private_tt')+'</div>',
  203. 141.  -       center: 0,
  204. 142.  -       shift: [14, 6, 0],
  205. 143.  -     });
  206. 144.  -
  207. 145.  -   },
  208. 146.  -   privateClick: function(obj, ev) {
  209. 147.  -     geByClass1('video_row_icon_edit', obj.parentNode.parentNode.parentNode).click();
  210. 148.  -     return cancelEvent(ev);
  211. 149.  -
  212. 251.  -       if (cur.sections[i][0] > 0) {
  213. 252.  -         albums.push(cur.sections[i]);
  214. 253.  +       if (i > 0) {
  215. 254.  +         albums.push([i, cur.sections[i][0]]);
  216. 325.  -     var vidCont = ge('video_row'+oid+'_'+vid);
  217. 326.  -     cur.restoreRaw[oid+'_'+vid] = vidCont.innerHTML;
  218. 327.  -     addClass(vidCont, 'video_row_loading');
  219. 328.  +     cur.restoreRaw[oid+'_'+vid] = ge('video_row'+oid+'_'+vid).innerHTML;
  220. 338.  -       for(var i in cur.sections) {
  221. 339.  -         if (cur.sections[i][0] == -1) {
  222. 340.  -           a.unshift([-1, cur.sections[i][1]]);
  223. 341.  -         }
  224. 342.  +       if (cur.sections[-1]) {
  225. 343.  +         a.unshift([-1, cur.sections[-1][0]]);
  226. 354.  -           var shown = isVisible('video_albums_more');
  227. 355.  -           html += '<a class="video_albums_show_more" onclick="Video.showAlbums(this)" style="'+(shown ? 'display: none' : '')+'">'+albumsMore+'</a><div id="video_albums_more" style="'+(shown ? 'display: block' : '')+'">';
  228. 356.  +           html += '<a class="video_albums_show_more" onclick="Video.showAlbums(this)">'+albumsMore+'</a><div id="video_albums_more">';
  229. 359.  -         for(var i in cur.sections) {
  230. 360.  -           if (cur.sections[i][0] == alb) {
  231. 361.  -             var v = cur.sections[i];
  232. 362.  -           }
  233. 363.  -         }
  234. 364.  -         var title = v[1];
  235. 365.  +         var v = cur.sections[alb];
  236. 366.  +         var title = v[0];
  237. 372.  -       }
  238. 373.  -       if (num > 3) {
  239. 374.  -         html += '</div>';
  240. 383.  -       if (cur.sections[i][0] > 0) {
  241. 384.  +       if (i > 0) {
  242. 389.  -       cur.sections.push(newList[i]);
  243. 390.  +       cur.sections[i] = newList[i];
  244. 403.  -       if (cur.cansort) {
  245. 404.  -         qsorter.update(cur.vRows, {dragEls: geByClass('video_album_candrop', cur.albumsCont)});
  246. 405.  -       }
  247. 420.  -         /*if (browser.mobile) {
  248. 421.  -           cur.vSection = 'search';
  249. 422.  -         } else {*/
  250. 423.  -           nav.change({section: 'search'});
  251. 424.  -         /*}*/
  252. 425.  +         nav.change({section: 'search'});
  253. 443.  -       if (len < 10) {
  254. 444.  +       if (len < 10 && !cur.editmode) {
  255. 666.  -         if (vk.id == cur.oid || (cur.oid < 0 && cur.isGroupAdmin)) {
  256. 667.  -           str += '<span class="divider">|</span><span><a onclick="Video.deleteAlbum(\'' + cur.vSection + '\');">' + getLang('video_delete_album') + '</a></span>';
  257. 668.  -         }
  258. 669.  +         str += '<span class="divider">|</span><span><a onclick="Video.deleteAlbum(\'' + cur.vSection + '\');">' + getLang('video_delete_album') + '</a></span>';
  259. 810.  -     }
  260. 811.  -     if (cur.cansort) {
  261. 812.  -       qsorter.added(cur.vRows);
  262. 815.  -     if (cur.vSection == 'search' && cur.vStr) { // search
  263. 816.  +
  264. 817.  +     if (cur.vSection == 'search' && cur.vStr && !cur.editmode) { // search
  265. 869.  -     if (v[3].length > 44) {
  266. 870.  -       v[3] = trim(v[3].substr(0, 42))+'..';
  267. 871.  -     }
  268. 875.  -     return cur.videoTpl(v, (v[11].substr(0, 1) != '_') ? ' video_can_edit' : '');
  269. 876.  +     return cur.videoTpl(v, v[11] ? ' video_can_edit' : '');
  270. 1101.  -       } else {
  271. 1102.  -         var tabName = '';
  272. 1103.  -         for (var i in cur.sections) {
  273. 1104.  -           if (cur.sections[i][0] == ((section == 'tagged') ? -1 :  parseInt(section.substr(6)))) {
  274. 1105.  -             tabName = cur.sections[i][1];
  275. 1106.  -           }
  276. 1107.  -
  277. 1108.  -         }
  278. 1109.  +       } else if (cur.sections[(section == 'tagged') ? -1 :  parseInt(section.substr(6))]) {
  279. 1110.  +         var tabName = cur.sections[(section == 'tagged') ? -1 :  parseInt(section.substr(6))][0];
  280. 1130.  -     if (cur.cansort) {
  281. 1131.  -       qsorter.update(cur.vRows, {dragEls: geByClass('video_album_candrop', cur.albumsCont)});
  282. 1132.  -     }
  283. 1134.  -   deleteAlbum: function(section, ev) {
  284. 1135.  +   deleteAlbum: function(section) {
  285. 1137.  -     return cancelEvent(ev);
  286. 1138.  -   },
  287. 1139.  -   editAlbum: function(aid, ev) {
  288. 1140.  -     showBox('al_video.php', {act: 'edit_album', oid: cur.oid, aid: aid, oid: cur.oid});
  289. 1141.  -     return cancelEvent(ev);
  290. 1172.  -   },
  291. 1173.  -   albumOver: function(obj) {
  292. 1174.  -     if (cur.canEditAlbums && obj.id.split('_')[2] > 0) {
  293. 1175.  -       Video.activate(geByClass1('video_album_controls', obj));
  294. 1176.  -     }
  295. 1177.  -   },
  296. 1178.  -   albumOut: function(obj) {
  297. 1179.  -     if (cur.canEditAlbums) {
  298. 1180.  -       Video.deactivate(geByClass1('video_album_controls', obj), 0);
  299. 1181.  -     }
  300. 1182.  -   },
  301. 1183.  -
  302. 1184.  -   addFromList: function(videoRaw, hash, ev) {
  303. 1185.  -     var videoCont = ge('video_cont'+videoRaw);
  304. 1186.  -     if (hasClass(videoCont, 'video_row_added')) {
  305. 1187.  -       return cancelEvent(ev);
  306. 1188.  -     }
  307. 1189.  -     videoview.addVideo(videoRaw, hash, false, false, false, 'list');
  308. 1190.  -       var videoEl = geByClass1('video_row_icon_add', videoCont);
  309. 1191.  -       if (videoEl && videoEl.tt) {
  310. 1192.  -         videoEl.tt.hide();
  311. 1193.  -       }
  312. 1194.  -     return cancelEvent(ev);
  313. 1196.  -
  314. 1198.  -     var animEl = geByClass1((hasClass(obj.parentNode, 'video_can_edit')) ? 'video_row_controls' :  'video_row_add', obj);
  315. 1199.  -     Video.activate(animEl);
  316. 1200.  +     if (hasClass(obj.parentNode, 'video_can_edit')) {
  317. 1201.  +       Video.activate(geByClass1('video_row_controls', obj));
  318. 1202.  +     }
  319. 1205.  -     var animEl = geByClass1((hasClass(obj.parentNode, 'video_can_edit')) ? 'video_row_controls' :  'video_row_add', obj);
  320. 1206.  -     Video.deactivate(animEl, 0);
  321. 1207.  +     if (hasClass(obj.parentNode, 'video_can_edit')) {
  322. 1208.  +       Video.deactivate(geByClass1('video_row_controls', obj), 0);
  323. 1209.  +     }
  324. 1211.  -   activate: function(obj, ttLng, check) {
  325. 1212.  +   activate: function(obj) {
  326. 1214.  -     if (ttLng) {
  327. 1215.  -       if (check == 1 && hasClass(obj.parentNode.parentNode.parentNode.parentNode, 'video_row_added')) {
  328. 1216.  -         return false;
  329. 1217.  -       }
  330. 1218.  -       showTooltip(obj, {
  331. 1219.  -         black: 1,
  332. 1220.  -         center: 1,
  333. 1221.  -         shift: [0,2,0],
  334. 1222.  -         text: getLang('video_'+ttLng)
  335. 1223.  -       });
  336. 1224.  -     }
  337. 1271.  -       onDone: function(text, newList) {
  338. 1272.  -         showDoneBox(text);
  339. 1273.  -         Video.updateAlbums(newList);
  340. 1274.  -         /*moveEl.innerHTML = text;
  341. 1275.  +       onDone: function(text) {
  342. 1276.  +         moveEl.innerHTML = text;
  343. 1279.  -         setTimeout(Video.albumDragOut.pbind(el), 3000);*/
  344. 1280.  +         setTimeout(Video.albumDragOut.pbind(el), 3000);
  345. ------
  346. Файл - video.css:
  347. 364.  - .video_row_controls, .video_album_controls, .video_row_add {
  348. 365.  + .video_row_controls {
  349. 381.  -   display: block;
  350. 382.  - }
  351. 383.  - .video_albums_can_edit .video_album_controls {
  352. 393.  -   opacity: 0.8;
  353. 394.  -   filter: alpha(opacity=80);
  354. 395.  - }
  355. 396.  - .video_row_icon_add {
  356. 397.  -   padding: 6px 3px 6px 4px;
  357. 406.  - }
  358. 407.  - .video_row_icon_add .video_row_icon {
  359. 408.  -   width: 16px;
  360. 409.  -   background: url(/images/icons/audio_icons.png?2) -92px -51px no-repeat;
  361. 410.  - }
  362. 411.  - .video_row_added .video_row_icon_add .video_row_icon {
  363. 412.  -   background: url(/images/icons/audio_icons.png?2) -184px -51px no-repeat;
  364. 509.  -   color: #000000;
  365. 580.  -   margin: 0px 10px 15px 0px;
  366. 714.  - }
  367. 715.  - .video_album_text {
  368. 716.  -   overflow: hidden;
  369. 717.  -   text-overflow: ellipsis;
  370. 718.  -   width: 154px;
  371. 719.  -   height: 12px;
  372. 720.  - }
  373. 721.  - .video_is_private {
  374. 722.  -   display: inline-block;
  375. 723.  -   *display: block;
  376. 724.  -   zoom: 1;
  377. 725.  -   background: url(/images/icons/photo_icons.png?2) 0 -34px no-repeat;
  378. 726.  -   width: 10px;
  379. 727.  -   height: 12px;
  380. 728.  -   margin-left: 4px;
  381. 729.  -   margin-bottom: -2px;
  382. ------
  383. Файл - page.js:
  384. различия невозможно определить в SWF файлах.
  385. Файл - profile.js:
  386. 167.  +   newPhoto: function(params) {
  387. 168.  +     Profile.hideOther(-1);
  388. 169.  +     if (cur.viewAsBox) return cur.viewAsBox();
  389. 170.  +
  390. 171.  +     showBox('/al_profile.php', extend(params || {}, {act: 'new_photo', flash: browser.flash}), {params: {
  391. 172.  +       bodyStyle: 'padding: 0px; position: relative;'
  392. 173.  +     }});
  393. 174.  +   },
  394. 180.  -       params: {bodyStyle: 'padding: 16px 7px'},
  395. 181.  +       params: {
  396. 182.  +         onHide: newph ? Profile.newPhoto : false,
  397. 183.  +         bodyStyle: 'padding: 16px 7px'
  398. 184.  +       },
  399. 687.  -     var audioId = (_a && _a.player && _a.player.paused && !_a.player.paused()) ? aid : '', top = (_a && (_a.playbackParams.top_audio || _a.playbackParams.top)) ? 1 : '';
  400. 688.  -     ajax.post('al_audio.php', {act: 'toggle_status', hash: hash, exp: exp, id: audioId, top: top}, {onDone: function(text) {
  401. 689.  +     var audioId = (_a && _a.player && _a.player.paused && !_a.player.paused()) ? aid : '';
  402. 690.  +     ajax.post('al_audio.php', {act: 'toggle_status', hash: hash, exp: exp, id: audioId}, {onDone: function(text) {
  403. ------
  404. Файл - walledit.js:
  405. 144.  -       var dcont = geByClass1('rel_date', acts);
  406. 145.  -       if (postponeDate && html && dcont) {
  407. 146.  -         dcont.innerHTML = html;
  408. 147.  +       if (postponeDate && html) {
  409. 148.  +         geByClass1('rel_date', acts).innerHTML = html;
  410. ------
Advertisement
Add Comment
Please, Sign In to add comment