Hormold

VK Change (#1383917413)

Nov 8th, 2013
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 103.74 KB | None | 0 0
  1. Файл - wkview.js (Старый размер - 55819 | Новый - 0):
  2. 0.  - var WkView = {
  3. 1.  -
  4. 2.  - init: function() {
  5. 3.  -   if (window.wkLayer) {
  6. 4.  -     return;
  7. 5.  -   }
  8. 6.  -   window.wkLayer = ce('div', {
  9. 7.  -     id: 'wk_layer'
  10. 8.  -   });
  11. 9.  -
  12. 10.  -   window.wkLayerWrap = ce('div', {
  13. 11.  -     id: 'wk_layer_wrap',
  14. 12.  -     className: 'scroll_fix_wrap fixed'
  15. 13.  -   });
  16. 14.  -
  17. 15.  -
  18. 16.  -   wkLayerWrap.appendChild(window.wkLayer);
  19. 17.  -
  20. 18.  -   bodyNode.appendChild(wkLayerWrap);
  21. 19.  -
  22. 20.  -   window.wkLayer.style.width = (lastWindowWidth - sbWidth() - 2) + 'px';
  23. 21.  - },
  24. 22.  -
  25. 23.  - showLayer: function() {
  26. 24.  - //  if (!wkcur.previousLayer) {
  27. 25.  - //    wkcur.previousLayer = isVisible(layerWrap) || (isVisible(ge('mv_layer_wrap')) && !mvcur.minimized);
  28. 26.  - //  }
  29. 27.  - //  layers.fullhide && layers.fullhide(true);
  30. 28.  -
  31. 29.  -   debugLog('layerqueue.hide from wkview');
  32. 30.  -   layerQueue.hide();
  33. 31.  -
  34. 32.  -   layers.wrapshow(wkLayerWrap, 0.7);
  35. 33.  -   layers.fullhide = WkView.hide;
  36. 34.  -   wkcur.showT = setTimeout(function() {
  37. 35.  -     layers.wrapshow(wkLayerWrap, 0.7);
  38. 36.  -     layers.fullhide = WkView.hide;
  39. 37.  -   }, 0);
  40. 38.  -   onBodyResize();
  41. 39.  - },
  42. 40.  - restoreLayer: function(opts) {
  43. 41.  -   WkView.showLayer();
  44. 42.  -   if (wkcur.root) {
  45. 43.  -     if (opts.myLoc) nav.setLoc(opts.myLoc);
  46. 44.  -   } else {
  47. 45.  -     WkView.setLocation();
  48. 46.  -   }
  49. 47.  -   if (opts.prevLoc) wkcur.prevLoc = opts.prevLoc;
  50. 48.  -   WkView.updateSize();
  51. 49.  - },
  52. 50.  -
  53. 51.  - wikiClick: function(obj, ev) {
  54. 52.  -   if (checkEvent(ev)) {
  55. 53.  -     return true
  56. 54.  -   }
  57. 55.  -   var el = ev.target;
  58. 56.  -   while(el && el.tagName != 'A') {
  59. 57.  -     el = el.parentNode;
  60. 58.  -   }
  61. 59.  -   if (el && el.tagName == 'A') {
  62. 60.  -     var href = el.href;
  63. 61.  -     var m = href.match(/^\/(page[^?]*)(\?.*)?$/);
  64. 62.  -     if (m) {
  65. 63.  -       var path = m[1];
  66. 64.  -       var query = (m[4]) ? q2ajx(m[4].substr(1)) : {};
  67. 65.  -     } else {
  68. 66.  -       var m = href.match(/https?:\/\/([a-zA-Z0-9\-_\.]+\.)?(vk\.com|vkontakte\.ru)\/([^?]*)(\?.*)?$/i);
  69. 67.  -       if (!m || !m[3]) {
  70. 68.  -         return true;
  71. 69.  -       }
  72. 70.  -
  73. 71.  -       var path = m[3].split('/');
  74. 72.  -       var query = (m[4]) ? q2ajx(m[4].substr(1)) : {};
  75. 73.  -     }
  76. 74.  -
  77. 75.  -     var params = {};
  78. 76.  -     switch(path[0]) {
  79. 77.  -       case 'pages':
  80. 78.  -         params['oid'] = query.oid || query.o;
  81. 79.  -         params['id'] = query['id'];
  82. 80.  -         params['p'] = query['p'];
  83. 81.  -         break;
  84. 82.  -       case 'ru':
  85. 83.  -       case 'en':
  86. 84.  -         params['p'] = path[1];
  87. 85.  -         params['global'] = path[0];
  88. 86.  -         break;
  89. 87.  -       default:
  90. 88.  -         if (path[0].match(/^page-?\d+_\d+$/)) {
  91. 89.  -           var query = path[0].substr(4).split('_');
  92. 90.  -           params['oid'] = query[0];
  93. 91.  -           params['id'] = query[1];
  94. 92.  -         } else if (path[0].match(/^note\d+_\d+$/)) {
  95. 93.  -           var query = path[0].substr(4).split('_');
  96. 94.  -           params['w'] = path[0];
  97. 95.  -         }
  98. 96.  -         break;
  99. 97.  -     }
  100. 98.  -     if (params.w || (params.oid && (params.id || params.p))) {
  101. 99.  -       showWiki(params);
  102. 100.  -       return cancelEvent(ev);
  103. 101.  -     }
  104. 102.  -   }
  105. 103.  - },
  106. 104.  -
  107. 105.  - edit: function() {
  108. 106.  -   if (!wkcur.canEdit) {
  109. 107.  -     return true;
  110. 108.  -   }
  111. 109.  -   var link = ge('wk_edit_link');
  112. 110.  -   if (!wkcur.editLang) {
  113. 111.  -     wkcur.editLang = val(link);
  114. 112.  -   }
  115. 113.  -
  116. 114.  -   val(link, '<img src="images/upload.gif" />');
  117. 115.  -
  118. 116.  -   if (wkcur.type == 'wall') {
  119. 117.  -     if (wkcur.edit) {
  120. 118.  -       Wall.cancelEdit();
  121. 119.  -     } else {
  122. 120.  -       Wall.editPost(wkcur.post, {from: 'wkview'}, function () {
  123. 121.  -         val(link, wkcur.editLang);
  124. 122.  -       });
  125. 123.  -     }
  126. 124.  -     return true;
  127. 125.  -   }
  128. 126.  -
  129. 127.  -   if (wkcur.edit) {
  130. 128.  -     if (wkcur.note) {
  131. 129.  -       showWiki({
  132. 130.  -         w: 'note' + wkcur.oid + '_' + wkcur.nid
  133. 131.  -       });
  134. 132.  -     } else {
  135. 133.  -       showWiki({
  136. 134.  -         oid: wkcur.oid,
  137. 135.  -         id: wkcur.pid,
  138. 136.  -         p: wkcur.p
  139. 137.  -       });
  140. 138.  -     }
  141. 139.  -     return true;
  142. 140.  -   }
  143. 141.  -   wkcur.edit = true;
  144. 142.  -   var params = {
  145. 143.  -     act: 'edit',
  146. 144.  -     oid: wkcur.oid,
  147. 145.  -     load: 1,
  148. 146.  -     section: 'edit'
  149. 147.  -   };
  150. 148.  -   if (wkcur.note) {
  151. 149.  -     params['nid'] = wkcur.nid;
  152. 150.  -     params['note'] = 1;
  153. 151.  -   } else {
  154. 152.  -     params['id'] = wkcur.pid;
  155. 153.  -   }
  156. 154.  -   ajax.post('wkview.php', params, {
  157. 155.  -     stat: ['pages.js','wysiwyg.js', 'wysiwyg.css'],
  158. 156.  -     onDone: function(content, js, info, options) {
  159. 157.  -       wkcur.wkContent.innerHTML = content;
  160. 158.  -       eval(js);
  161. 159.  -       addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  162. 160.  -       addEvent(window, 'resize', WkView.onResize);
  163. 161.  -       val(link, options.lang['pages_view']);
  164. 162.  -       WkView.onScroll();
  165. 163.  -       WkView.updateSize();
  166. 164.  -     },
  167. 165.  -     onFail: function() {
  168. 166.  -       val(link, wkcur.editLang);
  169. 167.  -     }
  170. 168.  -   });
  171. 169.  - },
  172. 170.  -
  173. 171.  - onScroll: function(ev, resize) {
  174. 172.  -   switch (wkcur.type) {
  175. 173.  -     case 'wall':
  176. 174.  -       return WkView.wallUpdateRepliesOnScroll(resize);
  177. 175.  -
  178. 176.  -     case 'likes':
  179. 177.  -       return WkView.likesOnScroll(resize);
  180. 178.  -
  181. 179.  -     case 'history':
  182. 180.  -       return WkView.historyOnScroll(resize);
  183. 181.  -   }
  184. 182.  -
  185. 183.  -   var y = wkLayerWrap.scrollTop;
  186. 184.  -   var panel = ge('wk_buttons_panel');
  187. 185.  -   if (!panel) return;
  188. 186.  -   var py = getXY(ge('wk_buttons_cont'), true)[1];
  189. 187.  -   if (!wkcur.bottomSize) {
  190. 188.  -     wkcur.bottomSize = getSize(panel);
  191. 189.  -   }
  192. 190.  -
  193. 191.  -   var ph = wkcur.bottomSize[1];
  194. 192.  -
  195. 193.  -   var wndHeight = window.innerHeight || document.documentElement.clientHeight;
  196. 194.  -
  197. 195.  -   if (resize && !wkcur.fixedBottom && wndHeight - ph < py + 20) {
  198. 196.  -     wkLayerWrap.scrollTop += py + 20 - (wndHeight - ph);
  199. 197.  -   } else if (wndHeight - ph < py) {
  200. 198.  -     if (!wkcur.fixedBottom || resize) {
  201. 199.  -       wkcur.fixedBottom = true;
  202. 200.  -       setStyle(panel, {
  203. 201.  -         position: 'fixed',
  204. 202.  -         top: (wndHeight - ph) + 'px'
  205. 203.  -       });
  206. 204.  -       addClass(panel, 'wk_panel_fixed');
  207. 205.  -     }
  208. 206.  -   } else {
  209. 207.  -     if (wkcur.fixedBottom || resize) {
  210. 208.  -       wkcur.fixedBottom = false;
  211. 209.  -       setStyle(panel, {
  212. 210.  -         position: 'static',
  213. 211.  -         top: '0px'
  214. 212.  -       });
  215. 213.  -       removeClass(panel, 'wk_panel_fixed');
  216. 214.  -     }
  217. 215.  -   }
  218. 216.  -
  219. 217.  -   if (resize && wkcur.fixedBottom) {
  220. 218.  -     setStyle(panel, {left: getXY(wkcur.wkContent)[0]+'px'})
  221. 219.  -   }
  222. 220.  -
  223. 221.  -   if (!wkcur.editorLayer) {
  224. 222.  -     wkCont = wkcur.wkContent;//ge('wk_content');
  225. 223.  -     wkcur.editorLayer = ge('wke_buttons_cont') || geByClass('editor_layer', wkCont)[0];
  226. 224.  -   } else {
  227. 225.  -     var pos = getXY(wkcur.editorLayer, true);
  228. 226.  -     if (pos[1] < 0) {
  229. 227.  -       if (!wkcur.fixedTop) {
  230. 228.  -         wkcur.fixedTop = true;
  231. 229.  -         addClass(wkcur.wkContent, 'wk_top_fixed');
  232. 230.  -         WkView.updateShadow();
  233. 231.  -         wkcur.editor.floatPanel = true;
  234. 232.  -       }
  235. 233.  -     } else {
  236. 234.  -       if (wkcur.fixedTop) {
  237. 235.  -         wkcur.fixedTop = false;
  238. 236.  -         removeClass(wkcur.wkContent, 'wk_top_fixed');
  239. 237.  -         wkcur.editorLayer.style.paddingTop = '0px';
  240. 238.  -         wkcur.editor.floatPanel = false;
  241. 239.  -       }
  242. 240.  -     }
  243. 241.  -   }
  244. 242.  - },
  245. 243.  -
  246. 244.  - updateShadow: function() {
  247. 245.  -   if (!wkcur.editorLayer) {
  248. 246.  -     wkCont = wkcur.wkContent;//ge('wk_content');
  249. 247.  -     wkcur.editorLayer = geByClass('editor_layer', wkCont)[0];
  250. 248.  -   }
  251. 249.  -   var toolbox = ge('wke_buttons') || geByClass('editor_toolbar', wkCont)[0];
  252. 250.  -   if (toolbox) {
  253. 251.  -     if (wkcur.fixedTop) {
  254. 252.  -       var size = getSize(toolbox);
  255. 253.  -       wkcur.editorLayer.style.paddingTop = size[1]+'px';
  256. 254.  -       ge('wk_top_toolbox_shadow').style.top = (size[1] - 1)+'px';
  257. 255.  -     }
  258. 256.  -   }
  259. 257.  - },
  260. 258.  -
  261. 259.  - saveInfo: function(autosave) {
  262. 260.  -   var params = {
  263. 261.  -     page: wkcur.p,
  264. 262.  -     hash: wkcur.hash
  265. 263.  -   }
  266. 264.  -   if (wkcur.newEditor) {
  267. 265.  -     params['Body'] = wkcur.editor.val();
  268. 266.  -     if (params['Body'] === false) {
  269. 267.  -       return false;
  270. 268.  -     }
  271. 269.  -   } else {
  272. 270.  -     params['Body'] = wkcur.editor.convertToWiki(true);
  273. 271.  -   }
  274. 272.  -   if (wkcur.note) {
  275. 273.  -     params = extend(params, {
  276. 274.  -       act: 'save',
  277. 275.  -       oid: wkcur.oid,
  278. 276.  -       nid: wkcur.nid,
  279. 277.  -       wysiwyg: 1,
  280. 278.  -       note: wkcur.note
  281. 279.  -     });
  282. 280.  -   } else {
  283. 281.  -     params = extend(params, {
  284. 282.  -       act: 'save',
  285. 283.  -       oid: wkcur.oid,
  286. 284.  -       id: wkcur.pid
  287. 285.  -     });
  288. 286.  -   }
  289. 287.  -   if (wkcur.pageTitle) {
  290. 288.  -     params['title'] = val(wkcur.pageTitle);
  291. 289.  -     /*if (!params['title']) {
  292. 290.  -       notaBene(wkcur.pageTitle);
  293. 291.  -       return false;
  294. 292.  -     }*/
  295. 293.  -   }
  296. 294.  -   if (autosave && wkcur.lockAutoSave) {
  297. 295.  -     return false;
  298. 296.  -   }
  299. 297.  -   wkcur.lockAutoSave = true;
  300. 298.  -   ajax.post(wkcur.note ? 'wkview.php' : 'al_pages.php', params, {
  301. 299.  -     onDone: function(text, data) {
  302. 300.  -       wkcur.lockAutoSave = false;
  303. 301.  -       wkcur.editor.changed = false;
  304. 302.  -       if (!autosave) {
  305. 303.  -         var saveEl = ge('pages_save_info_wysiwyg');
  306. 304.  -         saveEl.innerHTML = text;
  307. 305.  -         show(saveEl);
  308. 306.  -       }
  309. 307.  -       if (data.nid) {
  310. 308.  -         wkcur.nid = data.nid;
  311. 309.  -       }
  312. 310.  -       if (data.raw) {
  313. 311.  -         wkcur.wkRaw = data.raw;
  314. 312.  -       }
  315. 313.  -       if (data) {
  316. 314.  -         if (data.created && cur.chooseMedia) {
  317. 315.  -           nav.setLoc(extend(nav.objLoc, {w:'note'+data.raw}));
  318. 316.  -           if (!autosave) {
  319. 317.  -             WkView.hide(false, true);
  320. 318.  -           }
  321. 319.  -           cur.pbNoteAdded = data;
  322. 320.  -           cur.chooseMedia('note', data.raw, data);
  323. 321.  -           return true;
  324. 322.  -         } else {
  325. 323.  -           var title = ge('share_note_title'+data['raw']);
  326. 324.  -           if (title && !autosave) {
  327. 325.  -             title.innerHTML = data['title'];
  328. 326.  -           }
  329. 327.  -           if (data['title']) {
  330. 328.  -             val('wk_layer_title', data['title']);
  331. 329.  -           }
  332. 330.  -           if (wkcur.note && wkcur.toStatus && !autosave) {
  333. 331.  -             WkView.hide(false, true);
  334. 332.  -             if (wkcur.reloadOnSave) {
  335. 333.  -               boxRefreshCoords(boxLoader);
  336. 334.  -               show(boxLoader);
  337. 335.  -               show(boxLayerWrap);
  338. 336.  -               nav.reload({
  339. 337.  -                 onDone: function() {
  340. 338.  -                   hide(boxLoader);
  341. 339.  -                   hide(boxLayerWrap);
  342. 340.  -                 }
  343. 341.  -               });
  344. 342.  -             }
  345. 343.  -             return true;
  346. 344.  -           }
  347. 345.  -         }
  348. 346.  -       }
  349. 347.  -       if (autosave) return true;
  350. 348.  -       setTimeout(function() {
  351. 349.  -         fadeOut(saveEl, 200);
  352. 350.  -       }, 1500);
  353. 351.  -     },
  354. 352.  -     showProgress: function() {
  355. 353.  -       !autosave && lockButton(ge('wk_layer_save'));
  356. 354.  -     },
  357. 355.  -     hideProgress: function() {
  358. 356.  -       !autosave && unlockButton(ge('wk_layer_save'));
  359. 357.  -     },
  360. 358.  -     onFail: WkView.showError
  361. 359.  -   })
  362. 360.  - },
  363. 361.  -
  364. 362.  - show: function(title, html, options, script, ev) {
  365. 363.  -   // var previous = false;
  366. 364.  -   var arrowOver = window.wkcur && wkcur.arrowOver;
  367. 365.  -   if (!window.wkcur) {
  368. 366.  -     this.init();
  369. 367.  -   } else {
  370. 368.  -     if (wkcur.shown && !isVisible(wkLayerWrap)) {
  371. 369.  -       debugLog('hiding old wkview');
  372. 370.  -       WkView.hide(true, true);
  373. 371.  -     }
  374. 372.  -     each (wkcur._hide || [], function (k, hideCallback) {
  375. 373.  -       if (isFunction(hideCallback)) hideCallback();
  376. 374.  -     });
  377. 375.  -     // previous = {
  378. 376.  -     //   scrollTop: wkLayer.scrollTop,
  379. 377.  -     //   cont: wkcur.wkCont,
  380. 378.  -     //   cur: wkcur
  381. 379.  -     // };
  382. 380.  -   }
  383. 381.  -   var hlen = (window.wkcur && wkcur.historyLen) ? wkcur.historyLen : 0;
  384. 382.  -   if (!window.wkcur || !wkcur.doBack && !options.fromlist) {
  385. 383.  -     hlen += 1;
  386. 384.  -   }
  387. 385.  -
  388. 386.  -   var toQueue = options.queue;
  389. 387.  -   if (toQueue) {
  390. 388.  -     layerQueue.push();
  391. 389.  -     options.queue = false;
  392. 390.  -   }
  393. 391.  -   if ((window.wkcur || {}).shown && wkcur.root) {
  394. 392.  -     nav.setLoc(wkcur.prevLoc);
  395. 393.  -   }
  396. 394.  -
  397. 395.  -   window.wkcur = {
  398. 396.  -     historyLen: hlen,
  399. 397.  -     _hide: [],
  400. 398.  -     _show: []
  401. 399.  -   };
  402. 400.  -
  403. 401.  -   if (browser.iphone || browser.ipad) {
  404. 402.  -     cur.wkStartScroll = scrollGetY();
  405. 403.  -   }
  406. 404.  -
  407. 405.  -   if (options.edit) {
  408. 406.  -     cur._editMode = function() {
  409. 407.  -       return true;
  410. 408.  -     }
  411. 409.  -     if (!window.WkEditor) {
  412. 410.  -       stManager.add(['wk_editor.js', 'wk_editor.css'], WkView.show.pbind(title, html, options, script, ev));
  413. 411.  -       return false;
  414. 412.  -     }
  415. 413.  -   }
  416. 414.  -
  417. 415.  -   cur.cancelTooltip = true;
  418. 416.  -   if (window.tooltips) {
  419. 417.  -     tooltips.hideAll();
  420. 418.  -   }
  421. 419.  -
  422. 420.  -   if (!isVisible(wkLayerWrap)) {
  423. 421.  -     otherList = true;
  424. 422.  -     addEvent(window, 'resize', WkView.onResize);
  425. 423.  -     addEvent(wkLayerWrap, 'click', WkView.onClick);
  426. 424.  -     boxQueue.hideAll();
  427. 425.  -     WkView.showLayer();
  428. 426.  -   }
  429. 427.  -
  430. 428.  -   wkcur.noLocChange = 0; // do return location
  431. 429.  -   wkcur.noHistory = options.noLocChange;
  432. 430.  -
  433. 431.  -   wkcur.shown = true;
  434. 432.  -
  435. 433.  -   if (wkcur.edit) {
  436. 434.  -     wkcur.edit = false;
  437. 435.  -     ge('wk_edit_link').innerHTML = wkcur.editLang;
  438. 436.  -   }
  439. 437.  -   extend(wkcur, options);
  440. 438.  -
  441. 439.  -   if (wkcur.root) {
  442. 440.  -     cur.nav.push(function(ch, old, nw, opts) {
  443. 441.  -       nw = nav.toStr(nw);
  444. 442.  -       if (nw == wkcur.prevLoc) {
  445. 443.  -         WkView.hide(true);
  446. 444.  -         return false;
  447. 445.  -       }
  448. 446.  -     });
  449. 447.  -     if (!options.noLocChange && options.myLoc) nav.setLoc(options.myLoc);
  450. 448.  -   } else {
  451. 449.  -     WkView.setLocation(options.noLocChange, toQueue);
  452. 450.  -     if (options.prevLoc) wkcur.prevLoc = options.prevLoc;
  453. 451.  -   }
  454. 452.  -
  455. 453.  -   if (ev && ev.pageX && ev.pageY) {
  456. 454.  -     extend(wkcur, {oldX: ev.pageX, oldY: ev.pageY, oldT: vkNow()});
  457. 455.  -   }
  458. 456.  -
  459. 457.  -   var colorClass = wkcur.layerLight ? 'wk_light' : 'wk_dark';
  460. 458.  -
  461. 459.  -   addClass(wkLayerWrap, colorClass);
  462. 460.  -   addClass(layerBG, colorClass);
  463. 461.  -
  464. 462.  -   var content = html,
  465. 463.  -       editLink = getLang('global_edit'),
  466. 464.  -       hideLeft = wkcur.historyLen > 1 ? '' : 'display: none;';
  467. 465.  -   if (options.type == 'wall') {
  468. 466.  -     addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  469. 467.  -     addEvent(window, 'resize', WkView.onResize);
  470. 468.  -     WkView.wallBeforeInitPost(options);
  471. 469.  -   } else if (options.edit) {
  472. 470.  -     addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  473. 471.  -     addEvent(window, 'resize', WkView.onResize);
  474. 472.  -     editLink = options.lang['pages_view'];
  475. 473.  -     wkcur.editLang = getLang('global_edit');
  476. 474.  -   } else {
  477. 475.  -     if (options) {
  478. 476.  -       content = '<div class="wk_text wk_wiki_content' + (options.className ? ' '+options.className : '') + '" onclick="return WkView.wikiClick(this, event);">' + content + '</div>';
  479. 477.  -     }
  480. 478.  -   }
  481. 479.  -
  482. 480.  -   if (wkcur.wkCont) {
  483. 481.  -     wkcur.wkContent.innerHTML = content;
  484. 482.  -     ge('wk_layer_title').innerHTML = title;
  485. 483.  -   } else {
  486. 484.  -     wkLayer.innerHTML = '<div class="wk_cont">\
  487. 485.  -   <table cellspacing="0" cellpadding="0" class="wk_cont_t wk_cont_top_t">\
  488. 486.  -   <tr><td class="sidesh s1"><div class="sidesh_filler"></div></td><td>\
  489. 487.  -   <table cellspacing="0" cellpadding="0" class="wk_cont_t">\
  490. 488.  -   <tr><td>\
  491. 489.  -   <table cellspacing="0" cellpadding="0" class="wk_cont_t">\
  492. 490.  -   <tr><td colspan="3" class="bottomsh s3"><div></div></td></tr>\
  493. 491.  -   <tr><td class="sidesh s3"><div class="sidesh_filler"></div></td><td>\
  494. 492.  -   \
  495. 493.  -   <div id="wk_box" onclick="wkcur.wkClicked = true;">\
  496. 494.  -     <div id="wk_loader"></div>\
  497. 495.  -     <a id="wk_close_link" href="javascript: return false;" class="fl_r wk_close_link" onclick="return WkView.hide(false, true, event);">\
  498. 496.  -       '+getLang('global_close')+'\
  499. 497.  -     </a>\
  500. 498.  -     <div class="fl_r divide wk_edit_divide">|</div>\
  501. 499.  -     <a class="fl_r wk_edit_link" id="wk_edit_link" onclick="return WkView.edit();">\
  502. 500.  -       '+editLink+'\
  503. 501.  -     </a>\
  504. 502.  -     <div id="wk_summary" class="fl_l"><span class="summary" id="wk_layer_title">'+title+'</span></div>\
  505. 503.  -     <div id="wk_content">'+content+'</div>\
  506. 504.  -     <div class="clear"></div>\
  507. 505.  -   </div>\
  508. 506.  -   \
  509. 507.  -   </td><td class="sidesh s3"><div class="sidesh_filler"></div></td></tr>\
  510. 508.  -   <tr><td colspan="3" class="bottomsh s3"><div></div></td></tr></table>\
  511. 509.  -   </td></tr>\
  512. 510.  -   <tr><td colspan="3" class="bottomsh s2"><div></div></td></tr></table>\
  513. 511.  -   </td><td class="sidesh s1"><div class="sidesh_filler"></div></td></tr>\
  514. 512.  -   <tr><td colspan="3" class="bottomsh s1"><div></div></td></tr></table>\
  515. 513.  -   </div>\
  516. 514.  - <div id="wk_left" style="'+hideLeft+'" class="wk_left no_select"></div>\
  517. 515.  - <div id="wk_right" class="wk_close no_select"></div>\
  518. 516.  - <div id="wk_left_arrow" class="no_select"></div>\
  519. 517.  - <div id="wk_right_arrow" class="no_select"></div>\
  520. 518.  - <div class="no_select" id="wk_left_nav" style="'+hideLeft+'" '+'onmouseover="WkView.activate(wkcur.wkLeft)" onmouseout="WkView.deactivate(wkcur.wkLeft)" onmousedown="wkcur.wkClicked = true; WkView.back();" onselectstart="return cancelEvent(event);"></div>\
  521. 519.  - <div class="no_select" id="wk_right_nav" '+'onmouseover="WkView.activate(wkcur.wkRight)" onmouseout="WkView.deactivate(wkcur.wkRight)" onmousedown="if (!wkcur.noClickHide) { wkcur.wkClicked = true; WkView.hide(); }"></div>\
  522. 520.  - <div id="wk_left_arrow_bg" class="no_select" onclick="return WkView.navigate(this, event, -1);" onmouseover="WkView.activateArrow(false, event)" onmouseout="WkView.deactivateArrow(false, event)"><div class="wk_arrow_bg_inner"></div></div>\
  523. 521.  - <div id="wk_right_arrow_bg" class="no_select" onclick="return WkView.navigate(this, event, 1);" onmouseover="WkView.activateArrow(true, event)" onmouseout="WkView.deactivateArrow(true, event)"><div class="wk_arrow_bg_inner"></div></div>';
  524. 522.  -
  525. 523.  -     extend(wkcur, {
  526. 524.  -       wkCont: wkLayer.firstChild,
  527. 525.  -       wkBox: ge('wk_box'),
  528. 526.  -
  529. 527.  -       mvLoader: ge('wk_loader'),
  530. 528.  -       wkContent: ge('wk_content'),
  531. 529.  -
  532. 530.  -       wkLeftNav: ge('wk_left_nav'),
  533. 531.  -       wkRightNav: ge('wk_right_nav'),
  534. 532.  -       wkLeft: ge('wk_left'),
  535. 533.  -       wkRight: ge('wk_right'),
  536. 534.  -       wkLeftArrow: ge('wk_left_arrow'),
  537. 535.  -       wkRightArrow: ge('wk_right_arrow'),
  538. 536.  -       wkLeftArrowBg: ge('wk_left_arrow_bg'),
  539. 537.  -       wkRightArrowBg: ge('wk_right_arrow_bg')
  540. 538.  -     });
  541. 539.  -   }
  542. 540.  -   toggle('wk_summary', title);
  543. 541.  -
  544. 542.  -   if (wkcur.commonClass) {
  545. 543.  -     addClass(wkcur.wkBox, wkcur.commonClass);
  546. 544.  -   } else {
  547. 545.  -     wkcur.wkBox.className = '';
  548. 546.  -   }
  549. 547.  -
  550. 548.  -   if (wkcur.canEdit && !wkcur.toStatus && wkcur.type != 'wall') {
  551. 549.  -     addClass(wkcur.wkBox, 'wk_view_edit_link');
  552. 550.  -   } else {
  553. 551.  -     removeClass(wkcur.wkBox, 'wk_view_edit_link');
  554. 552.  -   }
  555. 553.  -
  556. 554.  -   if (browser.mobile) {
  557. 555.  -     wkcur.wkYOffset = intval(window.pageYOffset);
  558. 556.  -     wkcur.wkCont.style.paddingTop = (wkcur.wkYOffset + 10) + 'px';
  559. 557.  -     wkcur.wkRightNav.style.top = (wkcur.wkYOffset + 10) + 'px';
  560. 558.  -   }
  561. 559.  -
  562. 560.  -   if (script) {
  563. 561.  -     eval(script);
  564. 562.  -   }
  565. 563.  -   WkView.updateSize();
  566. 564.  -
  567. 565.  -   removeEvent(document, 'keydown', WkView.onKeyDown);
  568. 566.  -   addEvent(document, 'keydown', WkView.onKeyDown);
  569. 567.  -
  570. 568.  -   options.onLoaded && options.onLoaded();
  571. 569.  -
  572. 570.  -   var closeLink = ge('wk_close_link');
  573. 571.  -   if (closeLink) {
  574. 572.  -     closeLink.focus();
  575. 573.  -   }
  576. 574.  -
  577. 575.  -   WkView.updateArrows();
  578. 576.  -
  579. 577.  -   if (options.type == 'wall') {
  580. 578.  -     WkView.wallAfterInitPost();
  581. 579.  -   } else if (options.toScroll) {
  582. 580.  -     wkLayerWrap.scrollTop = options.toScroll;
  583. 581.  -     wkcur.toScroll = 0;
  584. 582.  -   }
  585. 583.  -
  586. 584.  -   if (arrowOver !== undefined) {
  587. 585.  -     WkView.activateArrow(arrowOver);
  588. 586.  -   }
  589. 587.  -   if (options.fromlist) {
  590. 588.  -     WkView.preloadArrow(options.fromlist == 1);
  591. 589.  -   }
  592. 590.  -   var _a = window.audioPlayer, aid = currentAudioId();
  593. 591.  -   if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
  594. 592.  -
  595. 593.  -   return false;
  596. 594.  - },
  597. 595.  -
  598. 596.  - hide: function(noLoc, force, ev) {
  599. 597.  -   if (!window.wkcur || !force && !wkcur.shown) return;
  600. 598.  -   var doUpdAds = !wkcur.wkRaw.match(/^recom_apps\d+$/) && !wkcur.wkRaw.match(/^app\d+$/);
  601. 599.  -
  602. 600.  -   clearTimeout(wkcur.autosaveTimeout);
  603. 601.  -   clearTimeout(wkcur.showT);
  604. 602.  -
  605. 603.  -   /*if (!wkcur.noHistory && !noLoc) {
  606. 604.  -     wkcur.noHistory = 1;
  607. 605.  -     wkcur.forceHistoryHide = force;
  608. 606.  -     __adsUpdate('lazy');
  609. 607.  -     return history.go(-1);
  610. 608.  -   }
  611. 609.  -   if (wkcur.forceHistoryHide) {
  612. 610.  -     force = wkcur.forceHistoryHide;
  613. 611.  -     wkcur.forceHistoryHide = false;
  614. 612.  -   }*/
  615. 613.  -
  616. 614.  -   if (!force && wkcur.edit && wkcur.editor) {
  617. 615.  -     if (wkcur.editor.changed) {
  618. 616.  -       if (wkcur.note && wkcur.toStatus) {
  619. 617.  -         WkView.saveInfo();
  620. 618.  -         return;
  621. 619.  -       } else {
  622. 620.  -         var box = showFastBox(wkcur.lang['pages_close_title'], wkcur.lang['pages_close_text'], getLang('box_yes'), function() {
  623. 621.  -           box.hide();
  624. 622.  -           WkView.hide(noLoc, true);
  625. 623.  -         }, getLang('box_no'))
  626. 624.  -         return;
  627. 625.  -       }
  628. 626.  -     }
  629. 627.  -   }
  630. 628.  -
  631. 629.  -   each (wkcur._hide || [], function (k, hideCallback) {
  632. 630.  -     if (isFunction(hideCallback)) hideCallback();
  633. 631.  -   });
  634. 632.  -
  635. 633.  -   var donthide = false;
  636. 634.  -   if (isVisible(wkLayerWrap)) {
  637. 635.  -     setTimeout(layerQueue.pop, 0);
  638. 636.  -     donthide = layerQueue.count() && layerQueue._layers[layerQueue._layers.length - 1][0] == 'wiki' && !layerQueue._bl;
  639. 637.  -     if (!donthide) {
  640. 638.  -       layers.wraphide(wkLayerWrap);
  641. 639.  -       layers.fullhide = false;
  642. 640.  -     }
  643. 641.  -   }
  644. 642.  -
  645. 643.  -   if (window.tooltips) {
  646. 644.  -     tooltips.destroy(this);
  647. 645.  -   }
  648. 646.  -
  649. 647.  -   removeEvent(document, 'keydown', WkView.onKeyDown);
  650. 648.  -
  651. 649.  -   wkcur.editorLayer = false;
  652. 650.  -   removeClass(wkcur.wkContent, 'wk_top_fixed');
  653. 651.  -   wkcur.fixedTop = wkcur.fixedBottom = false;
  654. 652.  -
  655. 653.  -   if (!donthide) {
  656. 654.  -     var colorClass = wkcur.layerLight ? 'wk_light' : 'wk_dark';
  657. 655.  -     removeClass(wkLayerWrap, colorClass);
  658. 656.  -     removeClass(layerBG, colorClass);
  659. 657.  -
  660. 658.  -     wkcur.shown = false;
  661. 659.  -     removeEvent(wkLayerWrap, 'click', WkView.onClick);
  662. 660.  -     removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  663. 661.  -     wkcur.wkContent.innerHTML = '';
  664. 662.  -   }
  665. 663.  -   wkcur.wkClicked = false;
  666. 664.  -
  667. 665.  -   wkcur.changeCanvasSize = false;
  668. 666.  -
  669. 667.  -   if (wkcur.onHide && isFunction(wkcur.onHide)) {
  670. 668.  -     wkcur.onHide();
  671. 669.  -   }
  672. 670.  -
  673. 671.  -   cur._editMode = false;
  674. 672.  -
  675. 673.  -   if (wkcur.root && noLoc !== true) {
  676. 674.  -     WkView.backLocation();
  677. 675.  -   } else if (!wkcur.noLocChange && noLoc !== true) {
  678. 676.  -     if (noLoc === 2) {
  679. 677.  -       nav.setLoc(hab.getLoc());
  680. 678.  -     } else {
  681. 679.  -       WkView.backLocation();
  682. 680.  -     }
  683. 681.  -     if (doUpdAds) {
  684. 682.  -       __adsUpdate('lazy');
  685. 683.  -     }
  686. 684.  -   } else if (doUpdAds) {
  687. 685.  -     __adsUpdate();
  688. 686.  -   }
  689. 687.  -
  690. 688.  -   if (browser.iphone || browser.ipad) {
  691. 689.  -     var scroll = scrollGetY();
  692. 690.  -     if (Math.abs(scroll - cur.wkStartScroll) > 500) {
  693. 691.  -       scrollToY(cur.wkStartScroll, 0);
  694. 692.  -     }
  695. 693.  -   }
  696. 694.  -   delete wkcur.historyLen;
  697. 695.  -   var _a = window.audioPlayer, aid = currentAudioId();
  698. 696.  -   if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
  699. 697.  -   return false;
  700. 698.  - },
  701. 699.  -
  702. 700.  - cmp: function(id1, id2) {
  703. 701.  -   var l1 = id1.length, l2 = id2.length;
  704. 702.  -   if (l1 < l2) {
  705. 703.  -     return -1;
  706. 704.  -   } else if (l1 > l2) {
  707. 705.  -     return 1;
  708. 706.  -   } else if (id1 < id2) {
  709. 707.  -     return -1;
  710. 708.  -   } else if (id1 > id2) {
  711. 709.  -     return 1;
  712. 710.  -   }
  713. 711.  -   return 0;
  714. 712.  - },
  715. 713.  -
  716. 714.  -
  717. 715.  - onClick: function(e) {
  718. 716.  -   if (wkcur.wkClicked || wkcur.noClickHide) {
  719. 717.  -     wkcur.wkClicked = false;
  720. 718.  -     return;
  721. 719.  -   }
  722. 720.  -   var dx = Math.abs(e.pageX - intval(wkcur.oldX));
  723. 721.  -   var dy = Math.abs(e.pageY - intval(wkcur.oldY));
  724. 722.  -   if (dx > 3 || dy > 3) {
  725. 723.  -     if (vkNow() - intval(wkcur.oldT) > 300) {
  726. 724.  -       WkView.hide();
  727. 725.  -     }
  728. 726.  -   }
  729. 727.  - },
  730. 728.  -
  731. 729.  - onKeyDown: function(e) {
  732. 730.  -   e = e || window.event;
  733. 731.  -   // debugLog(e.type, e.returnValue, e.keyCode, e, WkView.edit);
  734. 732.  -   if (e.returnValue === false) return false;
  735. 733.  -   if (!cur.pvShown && e.keyCode == KEY.ESC) {
  736. 734.  -     WkView.hide();
  737. 735.  -     return cancelEvent(e);
  738. 736.  -   }
  739. 737.  -   if (!cur.pvShown && (!wkcur.edit && (e.keyCode == KEY.LEFT || e.keyCode == KEY.RIGHT))) {
  740. 738.  -     var target = e && e.target || e.srcElement;
  741. 739.  -     if (target && (target.tagName == 'TEXTAREA' || target.tagName == 'INPUT' || target.tagName == 'DIV' && target.contentEditable)) {
  742. 740.  -       return true;
  743. 741.  -     }
  744. 742.  -     WkView.navigate(null, e, e.keyCode == KEY.RIGHT ? 1 : -1);
  745. 743.  -     return cancelEvent(e);
  746. 744.  -   }
  747. 745.  -   if (WkView.edit) {
  748. 746.  -     if (e.keyCode == 10 || e.keyCode == 13 && (e.ctrlKey || e.metaKey && browser.mac)) {
  749. 747.  -       WkView.saveInfo();
  750. 748.  -     }
  751. 749.  -     if (cur.updTimeout) return;
  752. 750.  -     cur.updTimeout = setTimeout(function() {
  753. 751.  -       WkView.onResize()
  754. 752.  -       cur.updTimeout = false;
  755. 753.  -     }, 200);
  756. 754.  -   }
  757. 755.  - },
  758. 756.  -
  759. 757.  - onResize: function() {
  760. 758.  -   var dwidth = lastWindowWidth, dheight = lastWindowHeight, sbw = sbWidth();
  761. 759.  -
  762. 760.  -   var w = dwidth - sbw - 2 - 120 - 34 - 50, h = dheight - 31 - 28 - 72;
  763. 761.  -   if (w > 1280) { // less than full hd - not size > 2
  764. 762.  -     w = 1280;
  765. 763.  -   } else if (w > 807 && w < 907) { // 1024x768 - not size > 1
  766. 764.  -     w = 807;
  767. 765.  -   } else if (w < 604) {
  768. 766.  -     w = 604;
  769. 767.  -   }
  770. 768.  -   if (h < 453) {
  771. 769.  -     h = 453;
  772. 770.  -   }
  773. 771.  -   wkcur.mvWidth = w;
  774. 772.  -   wkcur.mvHeight = h;
  775. 773.  -
  776. 774.  -   var sizeChanged = false, oldverybig = wkcur.mvVeryBig;
  777. 775.  -   wkcur.mvVeryBig = (w > 1280) ? 2 : (w > 807 ? 1 : false);
  778. 776.  -   sizeChanged = (oldverybig != wkcur.mvVeryBig);
  779. 777.  -   WkView.onScroll(false, true);
  780. 778.  -
  781. 779.  -   WkView.updateHeight();
  782. 780.  -   WkView.updateArrows();
  783. 781.  - },
  784. 782.  -
  785. 783.  -
  786. 784.  - updateArrows: function() {
  787. 785.  -   var sbw = sbWidth() + 2;
  788. 786.  -   if (wkcur.wkLeft) {
  789. 787.  -     wkcur.wkLeft.style.left = '20px';
  790. 788.  -   }
  791. 789.  -   var size = getSize(wkcur.wkBox),
  792. 790.  -       width = size[0],
  793. 791.  -       height = size[1];
  794. 792.  -   wkcur.wkLeftNav.style.width = Math.floor((lastWindowWidth - sbw - width - 2) / 2) + 'px';
  795. 793.  -   wkcur.wkRightNav.style.left = Math.floor((lastWindowWidth - sbw + width + 2) / 2) + 'px';
  796. 794.  -   wkcur.wkRightNav.style.width = Math.floor((lastWindowWidth - sbw - width - 2) / 2) + 'px';
  797. 795.  -   if (wkcur.wkClose) {
  798. 796.  -     wkcur.wkClose.style.left = (lastWindowWidth - sbw - 2 - 37) + 'px';
  799. 797.  -   }
  800. 798.  -
  801. 799.  -   var arrowActions = WkView.getNextWkRaws();
  802. 800.  -   if (arrowActions[0] || arrowActions[1]) {
  803. 801.  -     var arrowTop = (wkcur.wkCont.offsetHeight < lastWindowHeight ? wkcur.wkCont.offsetTop + 10 + (height / 2) : lastWindowHeight / 2) - 8;
  804. 802.  -     if (arrowActions[0]) {
  805. 803.  -       show(wkcur.wkLeftArrow);
  806. 804.  -       show(wkcur.wkLeftArrowBg);
  807. 805.  -
  808. 806.  -       setStyle(wkcur.wkLeftArrowBg, {left: (lastWindowWidth - sbw - width) / 2 - 90});
  809. 807.  -       setStyle(wkcur.wkLeftArrow, {left: (lastWindowWidth - sbw - width) / 2 - 52, top: arrowTop});
  810. 808.  -     } else {
  811. 809.  -       hide(wkcur.wkLeftArrow, wkcur.wkLeftArrowBg);
  812. 810.  -     }
  813. 811.  -
  814. 812.  -     if (arrowActions[1]) {
  815. 813.  -       show(wkcur.wkRightArrow);
  816. 814.  -       show(wkcur.wkRightArrowBg);
  817. 815.  -       setStyle(wkcur.wkRightArrowBg, {left: (lastWindowWidth - sbw - width) / 2 + width});
  818. 816.  -       setStyle(wkcur.wkRightArrow, {left: (lastWindowWidth - sbw - width) / 2 + width + 36, top: arrowTop});
  819. 817.  -     } else {
  820. 818.  -       hide(wkcur.wkRightArrow, wkcur.wkRightArrowBg);
  821. 819.  -     }
  822. 820.  -   } else {
  823. 821.  -     hide(wkcur.wkLeftArrow, wkcur.wkLeftArrowBg, wkcur.wkRightArrow, wkcur.wkRightArrowBg);
  824. 822.  -   }
  825. 823.  - },
  826. 824.  - getNextWkRaws: function () {
  827. 825.  -   var wkRawPrevious = wkRawNext = false;
  828. 826.  -   if (isArray(wkcur.wkRawList) && wkcur.historyLen <= 1 && !wkcur.wkRawLoading) {
  829. 827.  -     var len = wkcur.wkRawList.length,
  830. 828.  -         pos = indexOf(wkcur.wkRawList, wkcur.wkRaw);
  831. 829.  -     if (pos > 0) {
  832. 830.  -       wkRawPrevious = wkcur.wkRawList[pos - 1];
  833. 831.  -     }
  834. 832.  -     if (pos >= 0 && pos < len - 1) {
  835. 833.  -       wkRawNext = wkcur.wkRawList[pos + 1];
  836. 834.  -     }
  837. 835.  -   }
  838. 836.  -   return [wkRawPrevious, wkRawNext];
  839. 837.  - },
  840. 838.  - navigate: function (el, event, delta) {
  841. 839.  -   if (event && event.type == 'click') {
  842. 840.  -     wkcur.arrowOver = (delta == 1);
  843. 841.  -     wkcur.arrowClicked = vkNow();
  844. 842.  -   }
  845. 843.  -   var actions = WkView.getNextWkRaws();
  846. 844.  -   if (delta > 0 && actions[1]) {
  847. 845.  -     wkcur.wkRawLoading = true;
  848. 846.  -     addClass(wkcur.wkRightArrow, 'wk_arrow_progress');
  849. 847.  -     // debugLog(wkcur.wkRightArrow, wkcur.wkRightArrow.className);
  850. 848.  -     showWiki({w: actions[1]}, false, false, {fromlist: 1, noloader: true, preload: {cache: 1}});
  851. 849.  -     cancelEvent(event);
  852. 850.  -   }
  853. 851.  -   if (delta < 0 && actions[0]) {
  854. 852.  -     wkcur.wkRawLoading = true;
  855. 853.  -     addClass(wkcur.wkLeftArrow, 'wk_arrow_progress');
  856. 854.  -     showWiki({w: actions[0]}, false, false, {fromlist: -1, noloader: true, preload: {cache: 1}});
  857. 855.  -     cancelEvent(event);
  858. 856.  -   }
  859. 857.  - },
  860. 858.  -
  861. 859.  - updateHeight: function() {
  862. 860.  -   window.updateWndVScroll && updateWndVScroll();
  863. 861.  -
  864. 862.  -   var h = Math.max(wkcur.wkCont.offsetHeight, lastWindowHeight);
  865. 863.  -   wkcur.wkLeftNav.style.height = wkcur.wkRightNav.style.height = h + 'px';
  866. 864.  -
  867. 865.  -   var boxH = wkcur.wkBox.offsetHeight + 2;
  868. 866.  -   setStyle(wkcur.wkLeftArrowBg.firstChild, {height: boxH});
  869. 867.  -   setStyle(wkcur.wkRightArrowBg.firstChild, {height: boxH});
  870. 868.  - },
  871. 869.  -
  872. 870.  - updateSize: function() {
  873. 871.  -   var size = getSize(wkcur.wkCont);
  874. 872.  -
  875. 873.  -   var docEl = document.documentElement,
  876. 874.  -       ch = window.innerHeight || docEl.clientHeight || bodyNode.clientHeight,
  877. 875.  -       top = Math.max(positive((ch - size[1] - 5) / 2), 14),
  878. 876.  -       paddingTop = top + 10,
  879. 877.  -       paddingBottom = wkLayer.offsetHeight - size[1] + top + 90;
  880. 878.  -
  881. 879.  -   wkcur.wkCont.style.top = top + 'px';
  882. 880.  -   wkcur.wkLeftArrowBg.style.paddingTop = wkcur.wkRightArrowBg.style.paddingTop = paddingTop + 'px';
  883. 881.  -   wkcur.wkLeftArrowBg.style.paddingBottom = wkcur.wkRightArrowBg.style.paddingBottom = paddingBottom + 'px';
  884. 882.  -
  885. 883.  -   onBodyResize();
  886. 884.  -   WkView.onResize();
  887. 885.  - },
  888. 886.  -
  889. 887.  -
  890. 888.  - setLocation: function(noLocChange, toQueue) {
  891. 889.  -   wkcur.prevLoc = {};
  892. 890.  -   for (var i in nav.objLoc) {
  893. 891.  -     if (i != 'w' || nav.objLoc[i] != wkcur.wkRaw && toQueue) {
  894. 892.  -       wkcur.prevLoc[i] = nav.objLoc[i];
  895. 893.  -     }
  896. 894.  -   }
  897. 895.  -   if (noLocChange) {
  898. 896.  -     return;
  899. 897.  -   }
  900. 898.  -
  901. 899.  -   var nl = extend(nav.objLoc, {'w': wkcur.wkRaw});
  902. 900.  -   delete(nl.z);
  903. 901.  -   if (nav.strLoc != nav.toStr(nl)) {
  904. 902.  -     nav.setLoc(nl);
  905. 903.  -   }
  906. 904.  -
  907. 905.  -   //wkcur.noHistory = 0;
  908. 906.  - },
  909. 907.  -
  910. 908.  - backLocation: function() {
  911. 909.  -   var loc = hab.getLoc();
  912. 910.  -   if (wkcur.prevLoc && wkcur.prevLoc != loc) {
  913. 911.  - //    if (wkcur.previousLayer) {
  914. 912.  - //      nav.go(wkcur.prevLoc);
  915. 913.  - //    } else {
  916. 914.  -       nav.setLoc(wkcur.prevLoc);
  917. 915.  - //    }
  918. 916.  - //    if (wkcur.previousLayer && wkcur.prevLoc.z) {
  919. 917.  - //      zNav({z: wkcur.prevLoc.z});
  920. 918.  - //    }
  921. 919.  -   } else {
  922. 920.  -     var locParts = loc.split('/');
  923. 921.  -     if (locParts.length > 1) {
  924. 922.  -       nav.setLoc(locParts[0]);
  925. 923.  -     }
  926. 924.  -   }
  927. 925.  -   layerQueue.noHistory();
  928. 926.  - },
  929. 927.  -
  930. 928.  - showError: function(txt) {
  931. 929.  -   if (window.wkcur) {
  932. 930.  -     delete wkcur.wkRawLoading;
  933. 931.  -     addClass(wkcur.wkRightArrow, 'wk_arrow_progress');
  934. 932.  -     addClass(wkcur.wkLeftArrow, 'wk_arrow_progress');
  935. 933.  -   }
  936. 934.  -   var box = showFastBox({title: getLang('global_error')}, txt, getLang('global_close'));
  937. 935.  -   setTimeout(box.hide, 2000);
  938. 936.  -   return true;
  939. 937.  - },
  940. 938.  -
  941. 939.  - wysiwygInit: function() {
  942. 940.  -   if (browser.ipod || browser.ipad || browser.iphone) return;
  943. 941.  -   var simpleToolBar = 'bold,italic,gray,underline,strike,left,center,right,marker_list,numeric_list,h1,h2,h3,image,video,audio,link,unlink';
  944. 942.  -   var extendedToolBar = 'bold,italic,gray,underline,strike,left,center,right,marker_list,numeric_list,h1,h2,h3,image,video,audio,doc,link,unlink,break,';
  945. 943.  -   extendedToolBar += 'table,table_delete,insert_row_before,insert_row_after,insert_col_before,insert_col_after,delete_row,delete_col,col_width,sub,sup,citate,outdent,indent,pre,character,hider';
  946. 944.  -   window.editorName = 'pageWysiwyg';
  947. 945.  -   var editorParams = {
  948. 946.  -     editorName: editorName,
  949. 947.  -     replaceElemID: 'pages_html',
  950. 948.  -     contentCSS: '/css/al/wysiwyg.css',
  951. 949.  -     html: ge('pages_html').value,
  952. 950.  -     wiki: ge('pages_body') ? ge('pages_body').value : '',
  953. 951.  -     height: 326,
  954. 952.  -     simpleToolBar: simpleToolBar,
  955. 953.  -     extendedToolBar: extendedToolBar,
  956. 954.  -     defaultMode: 'simple',
  957. 955.  -     skinFile: 'pages',
  958. 956.  -     photoMinSize: { w: 50, h: 50 },
  959. 957.  -     photoMaxSize: { w: 607, h: 500 },
  960. 958.  -     userID: 0,
  961. 959.  -     userName: '',
  962. 960.  -     groupID: 0,
  963. 961.  -     oid: wkcur.oid,
  964. 962.  -     debug: false,
  965. 963.  -     layer: 1,
  966. 964.  -     toolWidth: 654,
  967. 965.  -     width: 608,
  968. 966.  -     note: wkcur.note ? wkcur.wkRaw : 0,
  969. 967.  -     onHeightChange: function() {
  970. 968.  -       WkView.onScroll();
  971. 969.  -     },
  972. 970.  -     onChange: WkView.onChange
  973. 971.  -   };
  974. 972.  -   window[editorName] = wkcur.editor = new Wysiwyg(editorParams);
  975. 973.  - },
  976. 974.  -
  977. 975.  - onChange: function() {
  978. 976.  -   if (!wkcur.shown) return false;
  979. 977.  -   clearTimeout(wkcur.autosaveTimeout);
  980. 978.  -   wkcur.autosaveTimeout = setTimeout(function() {
  981. 979.  -     if (wkcur.note && wkcur.toStatus) {
  982. 980.  -       WkView.saveInfo(true);
  983. 981.  -     }
  984. 982.  -   }, 4000);
  985. 983.  - },
  986. 984.  -
  987. 985.  - likeOver: function() {
  988. 986.  -   var icon = ge('wk_like_icon');
  989. 987.  -   if (!wkcur.liked) {
  990. 988.  -     setTimeout(animate.pbind(icon, {opacity: 1}, 200, false), 1);
  991. 989.  -   } else {
  992. 990.  -     setStyle(icon, {opacity: 1});
  993. 991.  -   }
  994. 992.  -   var linkSize = getSize(ge('wk_like_link'));
  995. 993.  -   var linkW = linkSize ? linkSize[0] : 20;
  996. 994.  -
  997. 995.  -   showTooltip(icon.parentNode, {
  998. 996.  -     url: 'like.php',
  999. 997.  -     params: {act: 'a_get_stats', object: wkcur.like_obj || wkcur.wkRaw, from: 'wkview'},
  1000. 998.  -     slide: 15,
  1001. 999.  -     shift: [0, 8, 9],
  1002. 1000.  -     ajaxdt: 100,
  1003. 1001.  -     showdt: 400,
  1004. 1002.  -     hidedt: 200,
  1005. 1003.  -     className: 'rich like_tt',
  1006. 1004.  -     init: function (tt) {
  1007. 1005.  -       if (!tt.container) return;
  1008. 1006.  -       var bp = geByClass1('bottom_pointer', tt.container, 'div');
  1009. 1007.  -       var tp = geByClass1('top_pointer', tt.container, 'div');
  1010. 1008.  -       setStyle(bp, {marginLeft: linkW + 2});
  1011. 1009.  -       setStyle(tp, {marginLeft: linkW + 2});
  1012. 1010.  -     }
  1013. 1011.  -   });
  1014. 1012.  - },
  1015. 1013.  -
  1016. 1014.  - likeOut: function() {
  1017. 1015.  -   if (!wkcur.liked) {
  1018. 1016.  -     setTimeout(animate.pbind(ge('wk_like_icon'), {opacity: 0.4}, 200, false), 1);
  1019. 1017.  -   }
  1020. 1018.  - },
  1021. 1019.  -
  1022. 1020.  - like: function() {
  1023. 1021.  -   if (!vk.id) return;
  1024. 1022.  -   var my = !wkcur.liked;
  1025. 1023.  -
  1026. 1024.  -   ajax.post('like.php', {act: 'a_do_' + (my ? '' : 'un') + 'like', object: wkcur.like_obj || wkcur.wkRaw, hash: wkcur.likehash, from: 'wkview'}, {
  1027. 1025.  -     onDone: function(count, title) {
  1028. 1026.  -       return WkView.likeUpdate(my, count, title);
  1029. 1027.  -       wkcur.likes = count;
  1030. 1028.  -       wkcur.liked = my;
  1031. 1029.  -     }
  1032. 1030.  -   });
  1033. 1031.  -   WkView.likeUpdate(my, wkcur.likes + (my ? 1 : -1));
  1034. 1032.  - },
  1035. 1033.  - likeShare: function(hash) {
  1036. 1034.  -   var like_obj = wkcur.like_obj || wkcur.wkRaw,
  1037. 1035.  -       el = ge('like_share_' + like_obj),
  1038. 1036.  -       was = isChecked(el);
  1039. 1037.  -   checkbox(el);
  1040. 1038.  -   ajax.post('like.php', {act: 'a_do_' + (was ? 'un' : '') + 'publish', object: like_obj, hash: hash}, {
  1041. 1039.  -     onDone: WkView.likeUpdate.pbind(true)
  1042. 1040.  -   });
  1043. 1041.  -   var countInput = ge('like_real_count_' + like_obj),
  1044. 1042.  -       count = countInput ? countInput.value : val('like_count' + like_obj),
  1045. 1043.  -       my = hasClass(ge('like_icon' + like_obj), 'my_like');
  1046. 1044.  -
  1047. 1045.  -   WkView.likeUpdate(true, intval(count) + (my ? 0 : 1));
  1048. 1046.  - },
  1049. 1047.  - likeShareCustom: function () {
  1050. 1048.  -   if (vk.id) {
  1051. 1049.  -     showBox('like.php', {act: 'publish_box', object: wkcur.like_obj || wkcur.wkRaw, list: '', from: 'wkview'});
  1052. 1050.  -   }
  1053. 1051.  - },
  1054. 1052.  -
  1055. 1053.  - likeUpdate: function(my, count, title) {
  1056. 1054.  -   count = intval(count);
  1057. 1055.  -
  1058. 1056.  -   var rows = ge('like_table_' + (wkcur.like_obj || wkcur.wkRaw));
  1059. 1057.  -   var titleNode = ge('like_title_' + (wkcur.like_obj || wkcur.wkRaw)),
  1060. 1058.  -       countNode = ge('wk_like_count');
  1061. 1059.  -   var icon = ge('wk_like_icon');
  1062. 1060.  -   var tt = icon.parentNode.tt || {}, opts = clone(tt.opts || {}), newleft = (my ? 0 : -36);
  1063. 1061.  -
  1064. 1062.  -   if (title && titleNode) {
  1065. 1063.  -     val(titleNode, title);
  1066. 1064.  -   }
  1067. 1065.  -   wkcur.likes = count;
  1068. 1066.  -   animateCount(countNode, count);
  1069. 1067.  -
  1070. 1068.  -   wkcur.liked = my;
  1071. 1069.  -   toggleClass(icon, 'my_like', my);
  1072. 1070.  -   if (my) {
  1073. 1071.  -     setStyle(icon, {opacity: 1});
  1074. 1072.  -   }
  1075. 1073.  -   if (count) {
  1076. 1074.  -     var styleName = wkcur.rtl ? 'right' : 'left';
  1077. 1075.  -     if (tt.el && !isVisible(tt.container) && !title) {
  1078. 1076.  -       rows.style[styleName] = newleft + 'px';
  1079. 1077.  -       tooltips.show(tt.el, extend(opts, {showdt: 0}));
  1080. 1078.  -     } else if (rows) {
  1081. 1079.  -       var params = {};
  1082. 1080.  -       params[styleName] = newleft;
  1083. 1081.  -       animate(rows, params, 200);
  1084. 1082.  -     }
  1085. 1083.  -     removeClass(icon, 'no_likes');
  1086. 1084.  -   } else {
  1087. 1085.  -     if (tt.el) tt.hide();
  1088. 1086.  -     addClass(icon, 'no_likes');
  1089. 1087.  -   }
  1090. 1088.  - },
  1091. 1089.  -
  1092. 1090.  - showLikesPage: function(like_obj, published, offset) {
  1093. 1091.  -   cur.likesBox.loadTabContent('like.php', {act: 'a_get_members', object: like_obj, published: published, offset: offset, wall: 1}, published);
  1094. 1092.  - },
  1095. 1093.  -
  1096. 1094.  - extPageSubscribe: function(btn, oid, hash, msg) {
  1097. 1095.  -   var reqOptions = {
  1098. 1096.  -     showProgress: lockButton.pbind(btn),
  1099. 1097.  -     hideProgress: unlockButton.pbind(btn),
  1100. 1098.  -     onDone: function () {
  1101. 1099.  -       showDoneBox(msg, {w: 500, out: 5000});
  1102. 1100.  -       removeClass(btn.parentNode.parentNode.parentNode.parentNode, 'wk_extpage_head_unsubscribed');
  1103. 1101.  -     }
  1104. 1102.  -   };
  1105. 1103.  -   if (oid > 0) {
  1106. 1104.  -     ajax.post('al_friends.php', {act: 'add', mid: oid, hash: hash, from: 'wkview_extpage'}, reqOptions);
  1107. 1105.  -   } else {
  1108. 1106.  -     ajax.post('al_groups.php', {act: 'a_enter', gid: -oid, hash: hash, from: 'wkview_extpage'}, reqOptions);
  1109. 1107.  -   }
  1110. 1108.  - },
  1111. 1109.  -
  1112. 1110.  - wallBeforeInitPost: function (opts) {
  1113. 1111.  -   if (window.tooltips) tooltips.destroyAll();
  1114. 1112.  -
  1115. 1113.  -   if (wkcur.postInited) {
  1116. 1114.  -     return false;
  1117. 1115.  -   }
  1118. 1116.  -   wkcur.pageReplaced = [];
  1119. 1117.  -   var post = wkcur.post,
  1120. 1118.  -       postEl, size, postPlaceholder;
  1121. 1119.  -   while (true) {
  1122. 1120.  -     postEl = ge('post' + post);
  1123. 1121.  -     if (!postEl && cur.onepost && post == (cur.oid + '_' + cur.pid)) {
  1124. 1122.  -       postEl = ge('fw_post');
  1125. 1123.  -     }
  1126. 1124.  -     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');
  1127. 1125.  -     if (!postEl) {
  1128. 1126.  -       break;
  1129. 1127.  -     }
  1130. 1128.  -     size = getSize(postEl);
  1131. 1129.  -     postPlaceholder = ce('div', {className: 'wk_wall_post_placeholder', id: 'wk_wall_post_placeholder_' + postEl.id}, {width: size[0], height: size[1]});
  1132. 1130.  -     postEl.parentNode.replaceChild(postPlaceholder, postEl);
  1133. 1131.  -     wkcur.pageReplaced.push([postEl, postPlaceholder]);
  1134. 1132.  -   }
  1135. 1133.  -
  1136. 1134.  -   cur.wallLayer = post;
  1137. 1135.  -
  1138. 1136.  -   if (opts.options.wall_tpl) {
  1139. 1137.  -     extend(window.lang, opts.lang, opts.options.wall_tpl.lang);
  1140. 1138.  -     extend(wkcur, {
  1141. 1139.  -       wallType: opts.options.wall_type,
  1142. 1140.  -       wallTpl: opts.options.wall_tpl,
  1143. 1141.  -       wallMyDeleted: {},
  1144. 1142.  -       tsDiff: opts.options.wall_tpl && opts.options.wall_tpl.abs_timestamp ? Math.round((vkNow() / 1000 - opts.options.wall_tpl.abs_timestamp) / 900.0) * 900 : 0,
  1145. 1143.  -       wallMyOpened: {},
  1146. 1144.  -       wallMyReplied: {},
  1147. 1145.  -       wallMyRepliesCnt: 0
  1148. 1146.  -     });
  1149. 1147.  -     WkView.wallInitUpdates();
  1150. 1148.  -     wkcur.timeUpdateInt = setInterval(function () {Wall.updateTimes(wkcur.wkContent);}, 10000);
  1151. 1149.  -   }
  1152. 1150.  -
  1153. 1151.  -   wkcur._hide.push(WkView.wallDeinitPost);
  1154. 1152.  -
  1155. 1153.  -   wkcur.postInited = true;
  1156. 1154.  - },
  1157. 1155.  - wallAfterInitPost: function () {
  1158. 1156.  -   // debugLog('wall init', clone(wkcur));
  1159. 1157.  -   var post = wkcur.post,
  1160. 1158.  -       rf = ge('reply_field' + post);
  1161. 1159.  -
  1162. 1160.  -   if (rf) {
  1163. 1161.  -     placeholderSetup(rf, {pad: {margin: 0, padding: 0}})
  1164. 1162.  -   }
  1165. 1163.  -   WkView.wallUpdateReplies();
  1166. 1164.  -   if (wkcur.hl_reply) {
  1167. 1165.  -     setTimeout(Wall.highlightReply.pbind('post' + wkcur.hl_reply), 0);
  1168. 1166.  -   } else {
  1169. 1167.  -     setTimeout(function () {
  1170. 1168.  -       wkLayerWrap.scrollTop = wkcur.toScroll || 0;
  1171. 1169.  -       wkcur.toScroll = 0;
  1172. 1170.  -     }, 0);
  1173. 1171.  -   }
  1174. 1172.  - },
  1175. 1173.  - wallDeinitPost: function () {
  1176. 1174.  -   // debugLog('wall deinit', clone(wkcur));
  1177. 1175.  -   if (!wkcur.postInited) {
  1178. 1176.  -     return false;
  1179. 1177.  -   }
  1180. 1178.  -   cur.wallLayer = false;
  1181. 1179.  -   if (wkcur.edit) {
  1182. 1180.  -     Wall.cancelEdit();
  1183. 1181.  -   }
  1184. 1182.  -   each (wkcur.pageReplaced, function () {
  1185. 1183.  -     var postEl = this[0],
  1186. 1184.  -         postPlaceholder = this[1];
  1187. 1185.  -     if (postEl && postPlaceholder) {
  1188. 1186.  -       postPlaceholder.parentNode.replaceChild(postEl, postPlaceholder);
  1189. 1187.  -     }
  1190. 1188.  -   })
  1191. 1189.  -
  1192. 1190.  -   clearInterval(wkcur.updatesCheckInt);
  1193. 1191.  -   clearInterval(wkcur.timeUpdateInt);
  1194. 1192.  -
  1195. 1193.  -   if (window.tooltips) tooltips.destroyAll();
  1196. 1194.  -
  1197. 1195.  -   delete cur.editing;
  1198. 1196.  -   delete wkcur.postInited;
  1199. 1197.  - },
  1200. 1198.  - wallOnEdit: function (post, options) {
  1201. 1199.  -   wkcur.edit = true;
  1202. 1200.  -   val('wk_edit_link', options.lang.pages_view);
  1203. 1201.  -   wkcur.editor = {changed: true};
  1204. 1202.  - },
  1205. 1203.  - wallOnEdited: function (post) {
  1206. 1204.  -   wkcur.edit = false;
  1207. 1205.  -   val('wk_edit_link', wkcur.editLang);
  1208. 1206.  - },
  1209. 1207.  - wallFixPost: function (link, hash, value) {
  1210. 1208.  -   var post = wkcur.post;
  1211. 1209.  -   ajax.post('al_wall.php', {act: 'a_fix_post', post: post, hash: hash, value: value}, {
  1212. 1210.  -     progress: ge('wpe_prg' + post),
  1213. 1211.  -     onDone: function () {
  1214. 1212.  -       val(link, wkcur.lang[value ? 'wall_unfix_post' : 'wall_fix_post']);
  1215. 1213.  -       link.onclick = function () {
  1216. 1214.  -         return WkView.wallFixPost(link, hash, value ? 0 : 1);
  1217. 1215.  -       }
  1218. 1216.  -     }
  1219. 1217.  -   });
  1220. 1218.  -   return false;
  1221. 1219.  - },
  1222. 1220.  - wallPostDelete: function(act, hash, force) {
  1223. 1221.  -   var post = wkcur.post;
  1224. 1222.  -   if (cur.wallMyDeleted) {
  1225. 1223.  -     cur.wallMyDeleted[post] = 1;
  1226. 1224.  -   }
  1227. 1225.  -   ajax.post('al_wall.php', {act: act, post: post, hash: hash, confirm: force ? 1 : 0, from: 'wkview'}, {onDone: function(msg, deleted, need_confirm) {
  1228. 1226.  -     if (need_confirm) {
  1229. 1227.  -       var box = showFastBox(msg, need_confirm, getLang('global_delete'), function() { box.hide(); WkView.wallPostDelete(act, hash, 1); }, getLang('box_cancel'));
  1230. 1228.  -       return;
  1231. 1229.  -     }
  1232. 1230.  -     var p = ge('wl_post_body');
  1233. 1231.  -     if (!p) return;
  1234. 1232.  -     cur.pgPaused = true;
  1235. 1233.  -     hide('wl_replies_wrap', 'wl_post_actions_wrap', 'wl_reply_form_wrap');
  1236. 1234.  -     var del = p.nextSibling;
  1237. 1235.  -     if (del && hasClass(del, 'wl_post_deleted')) {
  1238. 1236.  -       val(del, msg);
  1239. 1237.  -     } else {
  1240. 1238.  -       p.parentNode.insertBefore(ce('div', {id: 'post_del' + post, innerHTML: msg, className: 'wl_post_deleted'}), p.nextSibling);
  1241. 1239.  -       hide(p);
  1242. 1240.  -     }
  1243. 1241.  -     wkLayerWrap.scrollTop = 0;
  1244. 1242.  -   }, progress: ge('wpe_prg' + post)});
  1245. 1243.  - },
  1246. 1244.  - wallPostRestore: function(hash) {
  1247. 1245.  -   var post = wkcur.post;
  1248. 1246.  -   if (cur.wallMyDeleted) {
  1249. 1247.  -     cur.wallMyDeleted[post] = 0;
  1250. 1248.  -   }
  1251. 1249.  -   ajax.post('al_wall.php', {act: 'restore', post: post, hash: hash, from: 'wkview'}, {onDone: function() {
  1252. 1250.  -     var p = ge('wl_post_body');
  1253. 1251.  -     if (!p || isVisible(p)) return;
  1254. 1252.  -     cur.pgPaused = false;
  1255. 1253.  -     show('wl_replies_wrap', 'wl_post_actions_wrap', 'wl_reply_form_wrap');
  1256. 1254.  -     var del = p.nextSibling;
  1257. 1255.  -     show(p);
  1258. 1256.  -     if (del && hasClass(del, 'wl_post_deleted')) {
  1259. 1257.  -       re(del);
  1260. 1258.  -     }
  1261. 1259.  -   }});
  1262. 1260.  - },
  1263. 1261.  - wallUpdateRepliesOnScroll: function (resize) {
  1264. 1262.  -   if (!wkcur.postInited) return;
  1265. 1263.  -   var wndHeight = window.innerHeight || document.documentElement.clientHeight;
  1266. 1264.  -
  1267. 1265.  -   var moreLink = ge('wl_replies_more_link');
  1268. 1266.  -   if (moreLink && isVisible(moreLink)) {
  1269. 1267.  -     var moreLinkY = getXY(moreLink, true)[1];
  1270. 1268.  -     if (wndHeight + 500 > moreLinkY) {
  1271. 1269.  -       moreLink.onclick();
  1272. 1270.  -     }
  1273. 1271.  -   }
  1274. 1272.  -
  1275. 1273.  -   var replyForm = ge('wl_reply_form');
  1276. 1274.  -   if (!replyForm || hasClass(replyForm, 'wl_post_reply_form_forbidden')) {
  1277. 1275.  -     return;
  1278. 1276.  -   }
  1279. 1277.  -   var formWrap = ge('wl_reply_form_wrap'),
  1280. 1278.  -       formY = getXY(formWrap, true)[1],
  1281. 1279.  -       formSize = getSize(replyForm);
  1282. 1280.  -       formH = formSize[1];
  1283. 1281.  -
  1284. 1282.  -   if (resize && wkcur.fixedBottom === false && wndHeight - formH < formY + 20) {
  1285. 1283.  -     wkLayerWrap.scrollTop += formY + 20 - (wndHeight - formH);
  1286. 1284.  -   } else if (isVisible(formWrap) && wndHeight - formH < formY) {
  1287. 1285.  -     if (!wkcur.fixedBottom || resize) {
  1288. 1286.  -       wkcur.fixedBottom = true;
  1289. 1287.  -       addClass(replyForm, 'wl_reply_form_fixed');
  1290. 1288.  -     }
  1291. 1289.  -     setStyle('wl_reply_form_wrap', {width: formSize[0], height: formSize[1], bottom: bottom});
  1292. 1290.  -     var bottom = Math.min(0, wndHeight - getXY('wl_replies_wrap', true)[1] - formH);
  1293. 1291.  -     setStyle(replyForm, {bottom: bottom});
  1294. 1292.  -   } else {
  1295. 1293.  -     if (wkcur.fixedBottom || resize) {
  1296. 1294.  -       wkcur.fixedBottom = false;
  1297. 1295.  -       removeClass(replyForm, 'wl_reply_form_fixed');
  1298. 1296.  -       setStyle('wl_reply_form_wrap', {width: '', height: ''});
  1299. 1297.  -     }
  1300. 1298.  -   }
  1301. 1299.  -   if (resize && wkcur.fixedBottom) {
  1302. 1300.  -     setStyle(replyForm, {left: getXY(wkcur.wkContent)[0] + 'px'})
  1303. 1301.  -   }
  1304. 1302.  - },
  1305. 1303.  - wallShowMoreReplies: function () {
  1306. 1304.  -   if (wkcur.loadingReplies) {
  1307. 1305.  -     return false;
  1308. 1306.  -   }
  1309. 1307.  -   var newOffset = wkcur.offset + wkcur.loaded,
  1310. 1308.  -       limit = wkcur.limit,
  1311. 1309.  -       repliesWrap = ge('replies' + wkcur.post);
  1312. 1310.  -
  1313. 1311.  -   if (wkcur.count <= newOffset || !repliesWrap) {
  1314. 1312.  -     return false;
  1315. 1313.  -   }
  1316. 1314.  -   wkcur.loadingReplies = true;
  1317. 1315.  -   Wall.moreReplies(wkcur.post, (wkcur.reverse ? -1 : 1) * newOffset, limit, {
  1318. 1316.  -     from: 'wkview',
  1319. 1317.  -     append: true,
  1320. 1318.  -     rev: wkcur.reverse ? 1 : 0,
  1321. 1319.  -     onDone: function (replies, names, data) {
  1322. 1320.  -       // debugLog((wkcur.reverse ? -1 : 1) * newOffset, limit, data);
  1323. 1321.  -       extend(wkcur, {
  1324. 1322.  -         count: data.count,
  1325. 1323.  -         loaded: wkcur.loaded + data.num
  1326. 1324.  -       });
  1327. 1325.  -       WkView.wallUpdateReplies();
  1328. 1326.  -       wkcur.loadingReplies = false;
  1329. 1327.  -     },
  1330. 1328.  -     onFail: function () {
  1331. 1329.  -       wkcur.loadingReplies = false;
  1332. 1330.  -     },
  1333. 1331.  -     showProgress: function () {
  1334. 1332.  -       hide('wl_replies_more_link');
  1335. 1333.  -       show('wl_replies_more_progress');
  1336. 1334.  -     },
  1337. 1335.  -     hideProgress: function () {
  1338. 1336.  -       show('wl_replies_more_link');
  1339. 1337.  -       hide('wl_replies_more_progress');
  1340. 1338.  -     }
  1341. 1339.  -   });
  1342. 1340.  -   return false;
  1343. 1341.  - },
  1344. 1342.  - wallShowPreviousReplies: function (hlReply) {
  1345. 1343.  -   if (wkcur.loadingReplies || wkcur.reverse) {
  1346. 1344.  -     return false;
  1347. 1345.  -   }
  1348. 1346.  -   var maxLimit = 100,
  1349. 1347.  -       newOffset = Math.max(0, wkcur.offset - maxLimit),
  1350. 1348.  -       limit = Math.min(maxLimit, wkcur.offset - newOffset),
  1351. 1349.  -       repliesWrap = ge('replies' + wkcur.post);
  1352. 1350.  -
  1353. 1351.  -   if (limit <= 0 || !repliesWrap) {
  1354. 1352.  -     return false;
  1355. 1353.  -   }
  1356. 1354.  -   wkcur.loadingReplies = true;
  1357. 1355.  -   var prevH = repliesWrap.offsetHeight;
  1358. 1356.  -   Wall.moreReplies(wkcur.post, newOffset, limit, {
  1359. 1357.  -     from: 'wkview',
  1360. 1358.  -     onDone: function (replies, names, data) {
  1361. 1359.  -       extend(wkcur, {
  1362. 1360.  -         count: data.count,
  1363. 1361.  -         offset: data.offset,
  1364. 1362.  -         loaded: wkcur.loaded + data.num
  1365. 1363.  -       });
  1366. 1364.  -       if (hlReply) {
  1367. 1365.  -         wkLayerWrap.scrollTop += repliesWrap.offsetHeight - prevH;
  1368. 1366.  -         setTimeout(Wall.highlightReply.pbind('post' + hlReply), 0);
  1369. 1367.  -       }
  1370. 1368.  -       WkView.wallUpdateReplies();
  1371. 1369.  -       wkcur.loadingReplies = false;
  1372. 1370.  -     },
  1373. 1371.  -     onFail: function () {
  1374. 1372.  -       wkcur.loadingReplies = false;
  1375. 1373.  -     },
  1376. 1374.  -     showProgress: function () {
  1377. 1375.  -       hide('wl_replies_header', 'wl_replies_header_toggler');
  1378. 1376.  -       show('wl_replies_previous_progress');
  1379. 1377.  -     },
  1380. 1378.  -     hideProgress: function () {
  1381. 1379.  -       show('wl_replies_header', 'wl_replies_header_toggler');
  1382. 1380.  -       hide('wl_replies_previous_progress');
  1383. 1381.  -     }
  1384. 1382.  -   });
  1385. 1383.  - },
  1386. 1384.  - wallUpdateReplies: function () {
  1387. 1385.  -   toggle('wl_replies_more_link', wkcur.offset + wkcur.loaded < wkcur.count);
  1388. 1386.  -
  1389. 1387.  -   var header = ge('wl_replies_header'),
  1390. 1388.  -       label = langNumeric(wkcur.count, wkcur.lang.wall_N_replies),
  1391. 1389.  -       hasPrevious = false;
  1392. 1390.  -
  1393. 1391.  -   if (!wkcur.reverse && wkcur.offset > 0) {
  1394. 1392.  -     if (wkcur.offset > 100) {
  1395. 1393.  -       label = langNumeric(100, wkcur.lang.wall_show_n_of_m_last).replace('{count}', wkcur.count);
  1396. 1394.  -     } else {
  1397. 1395.  -       label = langNumeric(wkcur.count, wkcur.lang.wall_show_all_n_replies);
  1398. 1396.  -     }
  1399. 1397.  -     hasPrevious = true;
  1400. 1398.  -   }
  1401. 1399.  -   val('wl_replies_header_label', label);
  1402. 1400.  -   toggleClass(header, 'wl_replies_header_clickable', hasPrevious);
  1403. 1401.  -
  1404. 1402.  -   var repliesWrap = ge('wl_replies_wrap'),
  1405. 1403.  -       form = ge('wl_reply_form');
  1406. 1404.  -   if (wkcur.count && repliesWrap && !isVisible(repliesWrap.firstChild)) {
  1407. 1405.  -     show(repliesWrap.firstChild);
  1408. 1406.  -   }
  1409. 1407.  -   if (form) {
  1410. 1408.  -     var formPlace1 = ge('wl_reply_form_reverse_wrap'),
  1411. 1409.  -         formPlace2 = ge('wl_reply_form_wrap'),
  1412. 1410.  -         formPlace = wkcur.reverse && repliesWrap && isVisible(repliesWrap.firstChild) && formPlace1 || formPlace2;
  1413. 1411.  -
  1414. 1412.  -     toggle(formPlace1, formPlace == formPlace1);
  1415. 1413.  -     toggle(formPlace2, formPlace == formPlace2);
  1416. 1414.  -     toggleClass(form, 'wl_reply_form_reversed', formPlace == formPlace1);
  1417. 1415.  -     if (form.parentNode != formPlace) {
  1418. 1416.  -       formPlace.appendChild(form);
  1419. 1417.  -     }
  1420. 1418.  -   }
  1421. 1419.  -
  1422. 1420.  -   WkView.wallUpdateRepliesOnScroll();
  1423. 1421.  -   WkView.updateSize();
  1424. 1422.  - },
  1425. 1423.  - wallInitUpdates: function () {
  1426. 1424.  -   var key = wkcur.options.add_queue_key;
  1427. 1425.  -   if (!key || !window.Notifier) {
  1428. 1426.  -     return;
  1429. 1427.  -   }
  1430. 1428.  -   var wasKey = wkcur.wallAddQueue,
  1431. 1429.  -       checkCb = function () {
  1432. 1430.  -         if (wkcur.wallAddQueue) Notifier.addKey(wkcur.wallAddQueue, Wall.updated.pbind(true));
  1433. 1431.  -       };
  1434. 1432.  -
  1435. 1433.  -   wkcur.wallAddQueue = key;
  1436. 1434.  -   checkCb();
  1437. 1435.  -   wkcur.updatesCheckInt = setInterval(checkCb, 10000);
  1438. 1436.  - },
  1439. 1437.  - wallCancelEditReply: function () {
  1440. 1438.  -   var post = wkcur.post,
  1441. 1439.  -       rf = ge('reply_field' + post),
  1442. 1440.  -       composer = rf && data(rf, 'composer');
  1443. 1441.  -   if (composer) {
  1444. 1442.  -     Composer.reset(composer);
  1445. 1443.  -   } else {
  1446. 1444.  -     val(rf, '');
  1447. 1445.  -   }
  1448. 1446.  -   Wall.hideEditReply(post);
  1449. 1447.  -   WkView.wallUpdateReplies();
  1450. 1448.  - },
  1451. 1449.  - wallInverseReplies: function () {
  1452. 1450.  -   if (wkcur.loadingReplies) {
  1453. 1451.  -     return false;
  1454. 1452.  -   }
  1455. 1453.  -   wkcur.loadingReplies = true;
  1456. 1454.  -   wkcur.reverse = !wkcur.reverse;
  1457. 1455.  -   wkcur.offset = 0;
  1458. 1456.  -
  1459. 1457.  -   Wall.moreReplies(wkcur.post, wkcur.offset, wkcur.limit, {
  1460. 1458.  -     from: 'wkview',
  1461. 1459.  -     clear: true,
  1462. 1460.  -     rev: wkcur.reverse ? 1 : 0,
  1463. 1461.  -     onDone: function (replies, names, data) {
  1464. 1462.  -       toggleClass('wl_replies_header_toggler', 'wl_replies_header_toggler_inversed', wkcur.reverse);
  1465. 1463.  -       extend(wkcur, {
  1466. 1464.  -         count: data.count,
  1467. 1465.  -         loaded: data.num
  1468. 1466.  -       });
  1469. 1467.  -       WkView.wallUpdateReplies();
  1470. 1468.  -       wkcur.loadingReplies = false;
  1471. 1469.  -     },
  1472. 1470.  -     onFail: function () {
  1473. 1471.  -       wkcur.reverse = !wkcur.reverse;
  1474. 1472.  -       wkcur.loadingReplies = false;
  1475. 1473.  -     },
  1476. 1474.  -     showProgress: function () {
  1477. 1475.  -       hide('wl_replies_header', 'wl_replies_header_toggler');
  1478. 1476.  -       show('wl_replies_previous_progress');
  1479. 1477.  -     },
  1480. 1478.  -     hideProgress: function () {
  1481. 1479.  -       show('wl_replies_header', 'wl_replies_header_toggler');
  1482. 1480.  -       hide('wl_replies_previous_progress');
  1483. 1481.  -     }
  1484. 1482.  -   });
  1485. 1483.  - },
  1486. 1484.  -
  1487. 1485.  - likesInit: function () {
  1488. 1486.  -   re(cur.lSTL);
  1489. 1487.  -   extend(wkcur, {
  1490. 1488.  -     phCache: {},
  1491. 1489.  -     phShown: {},
  1492. 1490.  -     historyLen: 0,
  1493. 1491.  -
  1494. 1492.  -     lSTL: wkLayerWrap.appendChild(ce('div', {id: 'layer_stl', innerHTML: '<div id="layer_stl_bg" class="fixed"></div><div id="layer_stl_cl"></div><nobr id="layer_stl_text" class="fixed">' + getLang('global_to_top') + '</nobr>', el: ge('wk_box'), onclick: cancelEvent, onmousedown: WkView.likesSTLDown, sc: WkView.likesOnScroll})),
  1495. 1493.  -     lSTLShown: 0,
  1496. 1494.  -     lSTLWas: 0,
  1497. 1495.  -     lSTLWasSet: 0
  1498. 1496.  -   });
  1499. 1497.  -   cur.lSTL = wkcur.lSTL;
  1500. 1498.  -
  1501. 1499.  -   WkView.likesTabInit();
  1502. 1500.  -
  1503. 1501.  -   addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  1504. 1502.  -   addEvent(window, 'resize', WkView.onResize);
  1505. 1503.  -   onBodyResize();
  1506. 1504.  -
  1507. 1505.  -   if (!cur.wallInited) {
  1508. 1506.  -     Wall.initWallOptions(wkcur.wall_opts);
  1509. 1507.  -   } else {
  1510. 1508.  -     wkcur._oldReplyForm = cur.wallTpl.reply_form;
  1511. 1509.  -     cur.wallTpl.reply_form = wkcur.wall_opts.wall_tpl.reply_form;
  1512. 1510.  -   }
  1513. 1511.  -
  1514. 1512.  -   if (cur.options === undefined) {
  1515. 1513.  -     cur.options = {reply_names: {}};
  1516. 1514.  -   } else if (cur.options.reply_names === undefined) {
  1517. 1515.  -     cur.options.reply_names = {};
  1518. 1516.  -   }
  1519. 1517.  -   extend(cur.options.reply_names, wkcur.reply_names);
  1520. 1518.  -
  1521. 1519.  -   wkcur._hide.push(function () {
  1522. 1520.  -     removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  1523. 1521.  -     removeEvent(window, 'resize', WkView.onResize);
  1524. 1522.  -     re(wkcur.lSTL, cur.lSTL);
  1525. 1523.  -     if (wkcur._oldReplyForm) {
  1526. 1524.  -       cur.wallTpl.reply_form = wkcur._oldReplyForm;
  1527. 1525.  -       wkcur._oldReplyForm = false;
  1528. 1526.  -     }
  1529. 1527.  -   });
  1530. 1528.  - },
  1531. 1529.  - likesTabInit: function () {
  1532. 1530.  -   if (wkcur.preload) {
  1533. 1531.  -     ajax.preload('wkview.php', {
  1534. 1532.  -       act: 'show',
  1535. 1533.  -       w: wkcur.wkRaw,
  1536. 1534.  -       offset: wkcur.offset
  1537. 1535.  -     }, wkcur.preload);
  1538. 1536.  -   }
  1539. 1537.  - },
  1540. 1538.  - likesTab: function (tab) {
  1541. 1539.  -   ajax.post('wkview.php', {act: 'show', w: tab + '/' + wkcur.like_obj, part: 1}, {
  1542. 1540.  -     cache: 1,
  1543. 1541.  -     showProgress: setStyle.pbind('wk_likes_tabs_prg', {visibility: 'visible'}),
  1544. 1542.  -     hideProgress: setStyle.pbind('wk_likes_tabs_prg', {visibility: 'hidden'}),
  1545. 1543.  -     onDone: function (title, content, options) {
  1546. 1544.  -       val('wk_likes_title', title);
  1547. 1545.  -       val('wk_likes_content', content);
  1548. 1546.  -       extend(wkcur, options);
  1549. 1547.  -       WkView.likesTabInit();
  1550. 1548.  -
  1551. 1549.  -       var oldTab = geByClass1('summary_tab_sel', ge('wk_likes_tabs')),
  1552. 1550.  -           newTab = ge('wk_likes_tab' + tab);
  1553. 1551.  -       replaceClass(oldTab, 'summary_tab_sel', 'summary_tab');
  1554. 1552.  -       replaceClass(newTab.parentNode, 'summary_tab', 'summary_tab_sel');
  1555. 1553.  -
  1556. 1554.  -       WkView.setLocation();
  1557. 1555.  -       WkView.updateHeight();
  1558. 1556.  -       WkView.likesOnScroll();
  1559. 1557.  -     }
  1560. 1558.  -   });
  1561. 1559.  - },
  1562. 1560.  - likesPreload: function () {
  1563. 1561.  -   ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: wkcur.offset}, {cache: 1});
  1564. 1562.  - },
  1565. 1563.  - likesMore: function() {
  1566. 1564.  -   if (isVisible('wk_likes_more_prg')) return;
  1567. 1565.  -   ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: wkcur.offset}, {
  1568. 1566.  -     onDone: function(rows, newOffset, needMore, names, noReplies) {
  1569. 1567.  -       var cnt = ge('wk_likes_rows');
  1570. 1568.  -       if (!cnt) return;
  1571. 1569.  -
  1572. 1570.  -       if (noReplies) { // show all posts with hidden replies
  1573. 1571.  -         var hidden = geByClass('wk_likes_hidden', cnt);
  1574. 1572.  -         for (var i = 0, l = hidden.length; i < l; ++i) {
  1575. 1573.  -           cnt.appendChild(hidden[i]);
  1576. 1574.  -           removeClass(hidden[i], 'wk_likes_hidden');
  1577. 1575.  -         }
  1578. 1576.  -       }
  1579. 1577.  -
  1580. 1578.  -       cnt.appendChild(cf(rows));
  1581. 1579.  -       wkcur.offset = newOffset;
  1582. 1580.  -       if (needMore) {
  1583. 1581.  -         WkView.likesPreload();
  1584. 1582.  -       } else {
  1585. 1583.  -         hide('wk_likes_more_link');
  1586. 1584.  -       }
  1587. 1585.  -       WkView.updateHeight();
  1588. 1586.  -       if (names) {
  1589. 1587.  -         extend(cur.options.reply_names, names);
  1590. 1588.  -       }
  1591. 1589.  -     }, showProgress: function() {
  1592. 1590.  -       hide('wk_likes_more_link');
  1593. 1591.  -       show('wk_likes_more_prg');
  1594. 1592.  -     }, hideProgress: function() {
  1595. 1593.  -       show('wk_likes_more_link');
  1596. 1594.  -       hide('wk_likes_more_prg');
  1597. 1595.  -     }, cache: 1
  1598. 1596.  -   });
  1599. 1597.  - },
  1600. 1598.  - likesBigphOver: function(obj, uid) {
  1601. 1599.  -   if (!wkcur.lang || !wkcur.lang.global_photo_full_size || browser.mobile) return;
  1602. 1600.  -   var o = obj.firstChild,
  1603. 1601.  -       ch = wkcur.phCache[uid];
  1604. 1602.  -   if (o.tagName != 'A' || o.className != 'wk_likes_likerph') {
  1605. 1603.  -     o = obj.insertBefore(ce('a', {className: 'wk_likes_likerph', href: ch && ch._id ? ('/photo' + ch._id + '?all=1') : ('/albums' + uid), innerHTML: '<span class="wk_likes_likerph_label">' + wkcur.lang.global_photo_full_size + '</span>'}), obj.firstChild);
  1606. 1604.  -     o.onclick = WkView.likesBigphClick.pbind(uid);
  1607. 1605.  -     o._uid = uid;
  1608. 1606.  -   }
  1609. 1607.  -
  1610. 1608.  -   clearTimeout(o.hideTO);
  1611. 1609.  -   animate(o, {marginTop: 75}, {duration: 200, transition: Fx.Transitions.easeOutCirc});
  1612. 1610.  -   wkcur.phShown[uid] = o;
  1613. 1611.  -
  1614. 1612.  -   if (!obj.onmouseout) obj.onmouseout = WkView.likesBigphOut.pbind(obj);
  1615. 1613.  - },
  1616. 1614.  - likesBigphOut: function(obj) {
  1617. 1615.  -   var o = obj.firstChild;
  1618. 1616.  -   if (!o || o.tagName != 'A' || o.className != 'wk_likes_likerph') return;
  1619. 1617.  -
  1620. 1618.  -   clearTimeout(o.hideTO);
  1621. 1619.  -   o.hideTO = setTimeout(function() {
  1622. 1620.  -     animate(o, {marginTop: 100}, 200);
  1623. 1621.  -     delete(wkcur.phShown[o._uid]);
  1624. 1622.  -   }, 150);
  1625. 1623.  - },
  1626. 1624.  - likesBigphClick: function(uid, ev) {
  1627. 1625.  -   if (checkEvent(ev) !== false) return;
  1628. 1626.  -
  1629. 1627.  -   var ch = wkcur.phCache[uid]
  1630. 1628.  -       o = wkcur.phShown[uid],
  1631. 1629.  -       obj = domPN(o);
  1632. 1630.  -
  1633. 1631.  -   if (!o || !obj) return;
  1634. 1632.  -   if (ch === undefined) {
  1635. 1633.  -     ch = wkcur.phCache[uid] = 'show';
  1636. 1634.  -     ajax.post('al_photos.php', {act: 'fast_get_photo', oid: uid}, {onDone: function(res) {
  1637. 1635.  -       if (!res) {
  1638. 1636.  -         obj.onmouseover = function() {};
  1639. 1637.  -         re(o);
  1640. 1638.  -         return;
  1641. 1639.  -       }
  1642. 1640.  -       var sh = (wkcur.phCache[uid] == 'show');
  1643. 1641.  -       wkcur.phCache[uid] = res;
  1644. 1642.  -       o.href = '/photo' + res._id + '?all=1';
  1645. 1643.  -       if (sh) WkView.likesBigphClick(uid);
  1646. 1644.  -     }, onFail: function() {
  1647. 1645.  -       obj.onmouseover = function() {};
  1648. 1646.  -       re(o);
  1649. 1647.  -       return true;
  1650. 1648.  -     }});
  1651. 1649.  -   }
  1652. 1650.  -   if (ch == 'show') {
  1653. 1651.  -     return cancelEvent(ev);
  1654. 1652.  -   }
  1655. 1653.  -   if (!ch) return;
  1656. 1654.  -   extend(ch, {
  1657. 1655.  -     jumpTo: {z: 'albums' + uid},
  1658. 1656.  -     queue: 1
  1659. 1657.  -   });
  1660. 1658.  -   return showPhoto(ch._id, 'album' + uid + '_0/rev', ch, ev);
  1661. 1659.  - },
  1662. 1660.  - likesSTLDown: function(e) {
  1663. 1661.  -   e = e || window.event;
  1664. 1662.  -   if (checkEvent(e)) return;
  1665. 1663.  -
  1666. 1664.  -   if (!__afterFocus) {
  1667. 1665.  -     if (wkcur.lSTLWasSet && wkcur.lSTLWas) {
  1668. 1666.  -       var to = wkcur.lSTLWas;
  1669. 1667.  -       wkcur.lSTLWas = 0;
  1670. 1668.  -       wkLayerWrap.scrollTop = to;
  1671. 1669.  -     } else {
  1672. 1670.  -       wkcur.lSTLWas = wkLayerWrap.scrollTop;
  1673. 1671.  -       wkLayerWrap.scrollTop = 0;
  1674. 1672.  -     }
  1675. 1673.  -   }
  1676. 1674.  -   return cancelEvent(e);
  1677. 1675.  - },
  1678. 1676.  - likesOnScroll: function (resize) {
  1679. 1677.  -
  1680. 1678.  -   var st = wkLayerWrap.scrollTop,
  1681. 1679.  -       mx = 200,
  1682. 1680.  -       vis = wkcur.lSTLWas || (st > mx),
  1683. 1681.  -       o = 0;
  1684. 1682.  -
  1685. 1683.  -   wkcur.lSTL.style.marginTop = st + 'px';
  1686. 1684.  -   if (!vis) {
  1687. 1685.  -     if (wkcur.lSTLShown !== 0) {
  1688. 1686.  -       hide(wkcur.lSTL);
  1689. 1687.  -       wkcur.lSTLShown = 0;
  1690. 1688.  -     }
  1691. 1689.  -   } else {
  1692. 1690.  -     if (wkcur.lSTLShown !== 1) {
  1693. 1691.  -       show(wkcur.lSTL);
  1694. 1692.  -       wkcur.lSTLShown = 1;
  1695. 1693.  -     }
  1696. 1694.  -     if (wkcur.lSTLWas && st > 500) {
  1697. 1695.  -       wkcur.lSTLWas = 0;
  1698. 1696.  -     }
  1699. 1697.  -     if (st > mx) {
  1700. 1698.  -       o = (st - mx) / mx;
  1701. 1699.  -       if (wkcur.lSTLWasSet) {
  1702. 1700.  -         wkcur.lSTLWasSet = 0;
  1703. 1701.  -         val(domLC(wkcur.lSTL), getLang('global_to_top'));
  1704. 1702.  -         removeClass(domLC(wkcur.lSTL), 'down');
  1705. 1703.  -       }
  1706. 1704.  -     } else {
  1707. 1705.  -       o = (mx - st) / mx;
  1708. 1706.  -       if (wkcur.lSTLWas) {
  1709. 1707.  -         if (!wkcur.lSTLWasSet) {
  1710. 1708.  -           wkcur.lSTLWasSet = 1;
  1711. 1709.  -           val(domLC(wkcur.lSTL), '');
  1712. 1710.  -           addClass(domLC(wkcur.lSTL), 'down');
  1713. 1711.  -         }
  1714. 1712.  -       }
  1715. 1713.  -     }
  1716. 1714.  -   }
  1717. 1715.  -   setStyle(wkcur.lSTL, {opacity: Math.min(Math.max(o, 0), 1)});
  1718. 1716.  -
  1719. 1717.  -   var bt = lastWindowHeight,
  1720. 1718.  -       objMore = ge('wk_likes_more_link');
  1721. 1719.  -   if (isVisible(objMore) && (bt > getXY(objMore, true)[1])) {
  1722. 1720.  -     objMore.click();
  1723. 1721.  -   }
  1724. 1722.  - },
  1725. 1723.  - likesBlacklistTip: function (el) {
  1726. 1724.  -   showTooltip(el, {
  1727. 1725.  -     text: wkcur.lang.like_block_liker,
  1728. 1726.  -     shift: [13, 1, 1],
  1729. 1727.  -     black: 1
  1730. 1728.  -   });
  1731. 1729.  - },
  1732. 1730.  - likesBlacklist: function (el, oid, event) {
  1733. 1731.  -   if (el.tt && el.tt.destroy) el.tt.destroy();
  1734. 1732.  -   showBox('like.php', {act: 'spam', mid: oid, object: wkcur.like_obj});
  1735. 1733.  -   return cancelEvent(event);
  1736. 1734.  - },
  1737. 1735.  - likesRecache: function(d) {
  1738. 1736.  -   wkcur.offset += d;
  1739. 1737.  -   for (var i in ajaxCache) {
  1740. 1738.  -     if (i.match(new RegExp('^\\/wkview\.php\\#act=show', ''))) {
  1741. 1739.  -       delete(ajaxCache[i]);
  1742. 1740.  -     }
  1743. 1741.  -   }
  1744. 1742.  - },
  1745. 1743.  - likesRemove: function(oid) {
  1746. 1744.  -   re('wk_likes_liker_row' + oid);
  1747. 1745.  -   WkView.likesRecache(-1);
  1748. 1746.  -   WkView.onScroll();
  1749. 1747.  -   if (!domFC(ge('wk_likes_rows'))) {
  1750. 1748.  -     location.reload();
  1751. 1749.  -   }
  1752. 1750.  - },
  1753. 1751.  -
  1754. 1752.  - historyInit: function () {
  1755. 1753.  -   addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  1756. 1754.  -   addEvent(window, 'resize', WkView.onResize);
  1757. 1755.  -   onBodyResize();
  1758. 1756.  -
  1759. 1757.  -   wkcur._hide.push(function () {
  1760. 1758.  -     removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
  1761. 1759.  -     removeEvent(window, 'resize', WkView.onResize);
  1762. 1760.  -   });
  1763. 1761.  - },
  1764. 1762.  - historyOnScroll: function () {
  1765. 1763.  -   if (wkcur.loadingHistory) {
  1766. 1764.  -     return false;
  1767. 1765.  -   }
  1768. 1766.  -   var wndHeight = window.innerHeight || document.documentElement.clientHeight;
  1769. 1767.  -
  1770. 1768.  -   var moreLink = ge('wk_history_more_link');
  1771. 1769.  -   if (moreLink && isVisible(moreLink)) {
  1772. 1770.  -     var moreLinkY = getXY(moreLink, true)[1];
  1773. 1771.  -     if (wndHeight + 500 > moreLinkY) {
  1774. 1772.  -       moreLink.onclick();
  1775. 1773.  -     }
  1776. 1774.  -   }
  1777. 1775.  - },
  1778. 1776.  - historyShowMore: function () {
  1779. 1777.  -   if (wkcur.loadingHistory) {
  1780. 1778.  -     return false;
  1781. 1779.  -   }
  1782. 1780.  -   var newOffset = wkcur.offset;
  1783. 1781.  -   wkcur.loadingHistory = true;
  1784. 1782.  -   ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: newOffset, part: 1}, {
  1785. 1783.  -     onDone: function (options, rows) {
  1786. 1784.  -       extend(wkcur, options);
  1787. 1785.  -       ge('wk_history_rows').appendChild(cf(rows));
  1788. 1786.  -       setTimeout(WkView.historyOnScroll, 500);
  1789. 1787.  -
  1790. 1788.  -       toggle('wk_history_more_link', wkcur.offset < wkcur.count);
  1791. 1789.  -       toggle('wk_history_empty', wkcur.offset >= wkcur.count && !domFC(ge('wk_history_rows')));
  1792. 1790.  -       toggleClass('wk_history_more', 'wk_history_more_loading', wkcur.offset < wkcur.count && !domFC(ge('wk_history_rows')));
  1793. 1791.  -       wkcur.loadingHistory = false;
  1794. 1792.  -     },
  1795. 1793.  -     onFail: function () {
  1796. 1794.  -       wkcur.loadingHistory = false;
  1797. 1795.  -     },
  1798. 1796.  -     showProgress: function () {
  1799. 1797.  -       hide('wk_history_more_link');
  1800. 1798.  -       show('wk_history_more_progress');
  1801. 1799.  -     },
  1802. 1800.  -     hideProgress: function () {
  1803. 1801.  -       show('wk_history_more_link');
  1804. 1802.  -       hide('wk_history_more_progress');
  1805. 1803.  -     }
  1806. 1804.  -   });
  1807. 1805.  -
  1808. 1806.  -   return false;
  1809. 1807.  - },
  1810. 1808.  -
  1811. 1809.  - activate: function(arrow) {
  1812. 1810.  -   if (arrow && arrow.timeout) {
  1813. 1811.  -     clearTimeout(arrow.timeout);
  1814. 1812.  -     removeAttr(arrow, 'timeout');
  1815. 1813.  -   } else if (isVisible(arrow)) {
  1816. 1814.  -     fadeTo(arrow, 200, vk.pvdark ? 1 : 0.7);
  1817. 1815.  -   }
  1818. 1816.  - },
  1819. 1817.  -
  1820. 1818.  - deactivate: function(arrow) {
  1821. 1819.  -   if (!arrow || !isVisible(arrow) || arrow.timeout) {
  1822. 1820.  -     return;
  1823. 1821.  -   }
  1824. 1822.  -   arrow.timeout = setTimeout(function() {
  1825. 1823.  -     removeAttr(arrow, 'timeout');
  1826. 1824.  -     fadeTo(arrow, 200, 0.4);
  1827. 1825.  -   }, 1);
  1828. 1826.  - },
  1829. 1827.  -
  1830. 1828.  - activateArrow: function (next, event) {
  1831. 1829.  -   var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'],
  1832. 1830.  -       bg = wkcur[next ? 'wkRightArrowBg' : 'wkLeftArrowBg'].firstChild;
  1833. 1831.  -
  1834. 1832.  -   if (arrow && arrow.timeout) {
  1835. 1833.  -     clearTimeout(arrow.timeout);
  1836. 1834.  -     removeAttr(arrow, 'timeout');
  1837. 1835.  -   } else if (isVisible(arrow)) {
  1838. 1836.  -     wkcur.arrowOver = next;
  1839. 1837.  -     fadeTo(arrow, 200, vk.pvdark ? 1 : 0.7);
  1840. 1838.  -     fadeTo(bg, 200, 0.15);
  1841. 1839.  -   }
  1842. 1840.  -   WkView.preloadArrow(next);
  1843. 1841.  -   cancelEvent(event);
  1844. 1842.  - },
  1845. 1843.  - preloadArrow: function (next) {
  1846. 1844.  -   var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'];
  1847. 1845.  -
  1848. 1846.  -   if (!arrow.cached) {
  1849. 1847.  -     arrow.cached = true;
  1850. 1848.  -     var actions = WkView.getNextWkRaws(),
  1851. 1849.  -         preloadWkRaw = actions[next ? 1 : 0];
  1852. 1850.  -
  1853. 1851.  -     if (preloadWkRaw) {
  1854. 1852.  -       ajax.post('wkview.php', extend({act: 'show', loc: nav.objLoc[0]}, {w: preloadWkRaw}), {cache: 1});
  1855. 1853.  -     }
  1856. 1854.  -   }
  1857. 1855.  - },
  1858. 1856.  - deactivateArrow: function (next, event) {
  1859. 1857.  -   var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'],
  1860. 1858.  -       bg = wkcur[next ? 'wkRightArrowBg' : 'wkLeftArrowBg'].firstChild;
  1861. 1859.  -
  1862. 1860.  -   if (!arrow || !isVisible(arrow) || arrow.timeout || (wkcur.arrowClicked && (vkNow() - wkcur.arrowClicked < 100))) {
  1863. 1861.  -     return;
  1864. 1862.  -   }
  1865. 1863.  -
  1866. 1864.  -   delete wkcur.arrowOver;
  1867. 1865.  -   arrow.timeout = setTimeout(function() {
  1868. 1866.  -     removeAttr(arrow, 'timeout');
  1869. 1867.  -     fadeTo(arrow, 200, 0.4);
  1870. 1868.  -     fadeTo(bg, 200, 0);
  1871. 1869.  -   }, 1);
  1872. 1870.  -   cancelEvent(event);
  1873. 1871.  - },
  1874. 1872.  -
  1875. 1873.  - back: function() {
  1876. 1874.  -   if (wkcur.historyLen > 1) {
  1877. 1875.  -     wkcur.doBack = 1;
  1878. 1876.  -     wkcur.historyLen -= 1;
  1879. 1877.  -     history.go(-1);
  1880. 1878.  -     return true;
  1881. 1879.  -   } else {
  1882. 1880.  -     WkView.hide();
  1883. 1881.  -   }
  1884. 1882.  - },
  1885. 1883.  -
  1886. 1884.  -
  1887. 1885.  - _eof: 1};try{stManager.done('wkview.js');}catch(e){}
  1888. ------
  1889. Файл - groups_edit.css (Старый размер - 23525 | Новый - 0):
  1890. 0.  - #groups_edit_css {
  1891. 1.  -   display: none;
  1892. 2.  - }
  1893. 3.  -
  1894. 4.  - .group_edit {
  1895. 5.  -   background: #F7F7F7;
  1896. 6.  -   padding: 15px;
  1897. 7.  - }
  1898. 8.  - #group_edit_rss {
  1899. 9.  -   padding-top: 6px;
  1900. 10.  - }
  1901. 11.  - .group_edit_label, .group_rss_label {
  1902. 12.  -   width: 148px;
  1903. 13.  -   padding: 4px 16px 9px;
  1904. 14.  -   color: #707070;
  1905. 15.  - }
  1906. 16.  - .group_edit_labeled {
  1907. 17.  -   padding: 4px 7px 9px;
  1908. 18.  -   position: relative;
  1909. 19.  -   border: 1px solid #F7F7F7;
  1910. 20.  -   border-color: transparent;
  1911. 21.  -   margin: -1px;
  1912. 22.  - }
  1913. 23.  - div.gedit_public_labeled {
  1914. 24.  -   padding: 4px 0px 6px;
  1915. 25.  - }
  1916. 26.  - .gedit_public_feedback {
  1917. 27.  -   margin-bottom: 6px;
  1918. 28.  - }
  1919. 29.  - .group_edit_field {
  1920. 30.  -   padding: 0px 0px 9px;
  1921. 31.  - }
  1922. 32.  - .group_edit_info {
  1923. 33.  -   color: #777;
  1924. 34.  -   padding: 7px 20px 0px;
  1925. 35.  - }
  1926. 36.  - .group_edit_section {
  1927. 37.  -   padding-top: 9px;
  1928. 38.  - }
  1929. 39.  - .group_edit_next {
  1930. 40.  -   margin-top: 7px;
  1931. 41.  - }
  1932. 42.  - .group_save_button {
  1933. 43.  -   margin-top: 10px;
  1934. 44.  - }
  1935. 45.  -
  1936. 46.  - .group_conv_header {
  1937. 47.  -   color: #36638E;
  1938. 48.  -   font-size: 1.09em;
  1939. 49.  -   font-weight: bold;
  1940. 50.  -   margin-bottom: 5px;
  1941. 51.  -   padding: 0 10px 5px;
  1942. 52.  -   border-bottom: 1px solid #DAE1E8;
  1943. 53.  - }
  1944. 54.  - .group_conv_tip {
  1945. 55.  -   padding: 5px 20px 0;
  1946. 56.  -   color: #777;
  1947. 57.  - }
  1948. 58.  - .group_conv_option {
  1949. 59.  -   padding: 5px 19px;
  1950. 60.  - }
  1951. 61.  - .group_to_public_warning {
  1952. 62.  -   padding: 10px 10px 12px;
  1953. 63.  -   line-height: 120%;
  1954. 64.  -   margin: 0 0 8px;
  1955. 65.  -   border: 1px solid #DAE1E8;
  1956. 66.  -   background: #F7F7F7;
  1957. 67.  - }
  1958. 68.  - .group_to_public_warning .listing {
  1959. 69.  -   padding-left: 30px;
  1960. 70.  -   padding-right: 30px;
  1961. 71.  -   line-height: 140%;
  1962. 72.  -   margin: 10px 0 0;
  1963. 73.  - }
  1964. 74.  -
  1965. 75.  - .group_to_public_comment {
  1966. 76.  -   padding: 10px 10px 12px;
  1967. 77.  -   line-height: 120%;
  1968. 78.  -   margin: 0 0 8px;
  1969. 79.  - }
  1970. 80.  -
  1971. 81.  - .group_rss_label {
  1972. 82.  -   width: 100px;
  1973. 83.  - }
  1974. 84.  - #group_rss_url {
  1975. 85.  -   width: 240px;
  1976. 86.  -   padding: 3px 6px;
  1977. 87.  - }
  1978. 88.  -
  1979. 89.  - .group_status_export_info {
  1980. 90.  -   line-height: 150%;
  1981. 91.  -   background-color: #F6F7F9;
  1982. 92.  -   border: 1px solid #DBE0EA;
  1983. 93.  -   padding: 8px 5px;
  1984. 94.  -   margin-bottom: 10px;
  1985. 95.  - }
  1986. 96.  - .groups_twitter_icon {
  1987. 97.  -   margin: 0px 5px;
  1988. 98.  - }
  1989. 99.  - .groups_twitter_info {
  1990. 100.  -   margin: 0px 5px;
  1991. 101.  -   width: 310px;
  1992. 102.  - }
  1993. 103.  -
  1994. 104.  - #group_edit_name {
  1995. 105.  -   padding: 3px 5px;
  1996. 106.  -   width: 254px;
  1997. 107.  - }
  1998. 108.  - #group_edit_desc {
  1999. 109.  -   padding: 3px 6px;
  2000. 110.  -   vertical-align: top;
  2001. 111.  -   width: 252px;
  2002. 112.  -   height: 50px;
  2003. 113.  - }
  2004. 114.  - #group_saved_msg {
  2005. 115.  -   display: none;
  2006. 116.  -   line-height: 160%;
  2007. 117.  -   background: #F4EBBD;
  2008. 118.  -   margin-bottom: 25px;
  2009. 119.  - }
  2010. 120.  -
  2011. 121.  - #group_edit_addr_table {
  2012. 122.  -   border: 1px solid #C0CAD5;
  2013. 123.  -   background: #FFF;
  2014. 124.  -   width: 266px;
  2015. 125.  - }
  2016. 126.  - .group_edit_addr_label {
  2017. 127.  -   padding: 3px 0px 3px 6px;
  2018. 128.  -   color: #777;
  2019. 129.  -   width: 1px;
  2020. 130.  -   vertical-align: top;
  2021. 131.  - }
  2022. 132.  - .group_edit_addr_field {
  2023. 133.  -   width: 100%;
  2024. 134.  -   padding: 3px 0px 0px;
  2025. 135.  -   vertical-align: top;
  2026. 136.  - }
  2027. 137.  - input#group_edit_addr {
  2028. 138.  -   width: 100%;
  2029. 139.  -   outline: none;
  2030. 140.  -   border: 0px;
  2031. 141.  -   padding: 0px;
  2032. 142.  -   margin: 0px -1px;
  2033. 143.  -   background: transparent;
  2034. 144.  - }
  2035. 145.  - #group_edit_about_addr {
  2036. 146.  -   padding: 4px 0px 0px 10px;
  2037. 147.  -   width: 134px;
  2038. 148.  -   color: #777;
  2039. 149.  - }
  2040. 150.  - #group_website, #group_rss {
  2041. 151.  -   padding: 3px 5px;
  2042. 152.  -   width: 174px;
  2043. 153.  - }
  2044. 154.  - #event_phone, #event_mail {
  2045. 155.  -   padding: 3px 5px;
  2046. 156.  -   width: 254px;
  2047. 157.  - }
  2048. 158.  - .group_edit_field .selector_container td.selector {
  2049. 159.  -   padding-top: 1px;
  2050. 160.  - }
  2051. 161.  -
  2052. 162.  - #group_bl_bar,
  2053. 163.  - #group_l_bar {
  2054. 164.  -   padding: 10px;
  2055. 165.  -   background: #F7F7F7;
  2056. 166.  -   border-bottom: 1px solid #DAE1E8;
  2057. 167.  - }
  2058. 168.  - #group_bl_search,
  2059. 169.  - #group_l_search {
  2060. 170.  -   padding: 5px 4px 5px 20px;
  2061. 171.  -   width: 402px;
  2062. 172.  -   height: 14px;
  2063. 173.  -   line-height: 1.27em;
  2064. 174.  -   outline: none;
  2065. 175.  -   background: #FFF url(/images/magglass.png) no-repeat 5px 6px;
  2066. 176.  - }
  2067. 177.  - #group_bl_submit,
  2068. 178.  - #group_l_submit {
  2069. 179.  -   padding-left: 8px;
  2070. 180.  -   padding-right: 8px;
  2071. 181.  -   width: 168px;
  2072. 182.  -   text-align: center;
  2073. 183.  - }
  2074. 184.  - #group_bl_rows {
  2075. 185.  -   padding: 0px 10px 10px;
  2076. 186.  - }
  2077. 187.  - .group_bl_row {
  2078. 188.  -   padding: 10px 0;
  2079. 189.  -   height: 50px;
  2080. 190.  -   overflow: hidden;
  2081. 191.  -   border-bottom: 1px solid #DAE2E8;
  2082. 192.  - }
  2083. 193.  - .group_bl_photo {
  2084. 194.  -   width: 60px;
  2085. 195.  -   height: 50px;
  2086. 196.  -   overflow: hidden;
  2087. 197.  - }
  2088. 198.  - .group_bl_photo_img {
  2089. 199.  -   width: 50px;
  2090. 200.  - }
  2091. 201.  - .group_bl_name {
  2092. 202.  -   font-weight: bold;
  2093. 203.  -   color: #45688E;
  2094. 204.  - }
  2095. 205.  - .group_bl_info {
  2096. 206.  -   padding-top: 4px;
  2097. 207.  -   color: #777;
  2098. 208.  -   max-width: 400px;
  2099. 209.  -   overflow: hidden;
  2100. 210.  -   white-space: nowrap;
  2101. 211.  -   text-overflow: ellipsis;
  2102. 212.  -   -o-text-overflow: ellipsis;
  2103. 213.  - }
  2104. 214.  - .group_bl_block {
  2105. 215.  -   padding-top: 1px;
  2106. 216.  -   max-width: 400px;
  2107. 217.  -   overflow: hidden;
  2108. 218.  -   white-space: nowrap;
  2109. 219.  - }
  2110. 220.  - .group_bl_actions {
  2111. 221.  -   width: 120px;
  2112. 222.  - }
  2113. 223.  - .group_bl_action {
  2114. 224.  -   overflow: hidden;
  2115. 225.  -   display: block;
  2116. 226.  -   padding: 4px 6px;
  2117. 227.  - }
  2118. 228.  - .group_bl_action:hover {
  2119. 229.  -   background: #E1E7ED;
  2120. 230.  -   text-decoration: none;
  2121. 231.  - }
  2122. 232.  - .group_bl_row:last-child {
  2123. 233.  -   border-bottom: 0;
  2124. 234.  - }
  2125. 235.  - .group_bl_rem {
  2126. 236.  -   color: #777;
  2127. 237.  - }
  2128. 238.  - #group_bl_msg {
  2129. 239.  -   display: none;
  2130. 240.  -   margin: 15px 15px 10px;
  2131. 241.  -   line-height: 160%;
  2132. 242.  - }
  2133. 243.  -
  2134. 244.  - .group_blb_user {
  2135. 245.  -   padding: 26px 0;
  2136. 246.  - }
  2137. 247.  - .group_blb_user_thumb {
  2138. 248.  -   width: 90px;
  2139. 249.  -   height: 75px;
  2140. 250.  -   overflow: hidden;
  2141. 251.  - }
  2142. 252.  - .group_blb_user_img {
  2143. 253.  -   width: 75px;
  2144. 254.  - }
  2145. 255.  - .group_blb_user_info {
  2146. 256.  - }
  2147. 257.  - .group_blb_user_row {
  2148. 258.  -   padding-top: 5px;
  2149. 259.  -   color: #777;
  2150. 260.  - }
  2151. 261.  - .group_blb_user_name {
  2152. 262.  -   line-height: 1.27em;
  2153. 263.  -   font-size: 1.09em;
  2154. 264.  -   font-weight: bold;
  2155. 265.  -   color: #45688E;
  2156. 266.  - }
  2157. 267.  - .group_blb_block {
  2158. 268.  -   width: 190px;
  2159. 269.  -   padding-bottom: 26px;
  2160. 270.  - }
  2161. 271.  - div.group_blb_block_type {
  2162. 272.  -   width: 260px;
  2163. 273.  - }
  2164. 274.  - .group_blb_header {
  2165. 275.  -   color: #45688E;
  2166. 276.  -   line-height: 1.27em;
  2167. 277.  -   margin: 0;
  2168. 278.  -   padding: 0 0 9px;
  2169. 279.  -   font-size: 1.09em;
  2170. 280.  -   font-weight: bold;
  2171. 281.  - }
  2172. 282.  - .group_blb_dd {
  2173. 283.  -   height: 29px;
  2174. 284.  - }
  2175. 285.  - #group_blb_comment {
  2176. 286.  -   width: 438px;
  2177. 287.  -   outline: 0;
  2178. 288.  -   padding: 6px 5px 8px;
  2179. 289.  - }
  2180. 290.  - #group_blb_comment_vis {
  2181. 291.  -   margin-top: 12px;
  2182. 292.  -   line-height: normal;
  2183. 293.  - }
  2184. 294.  - #group_blb_warn {
  2185. 295.  -   color: #777;
  2186. 296.  -   display: none;
  2187. 297.  -   margin-top: 12px;
  2188. 298.  - }
  2189. 299.  - .group_blb_buttons {
  2190. 300.  -   margin-top: 26px;
  2191. 301.  -   height: 25px;
  2192. 302.  -   line-height: normal;
  2193. 303.  - }
  2194. 304.  - #group_blb_cancel {
  2195. 305.  -   margin: 0px 10px;
  2196. 306.  - }
  2197. 307.  -
  2198. 308.  - #group_bl_no, #group_l_no {
  2199. 309.  -   font-size: 1.09em;
  2200. 310.  -   padding: 100px 30px;
  2201. 311.  -   text-align: center;
  2202. 312.  -   color: #777;
  2203. 313.  - }
  2204. 314.  - #group_users_more {
  2205. 315.  -   margin: 0px 10px 5px;
  2206. 316.  -   display: block;
  2207. 317.  -   padding: 10px;
  2208. 318.  -   border-top: 1px solid #DAE1E8;
  2209. 319.  -   text-align: center;
  2210. 320.  - }
  2211. 321.  - #group_users_more:hover {
  2212. 322.  -   text-decoration: none;
  2213. 323.  -   background: #E9EDF1;
  2214. 324.  - }
  2215. 325.  - #group_more_progress {
  2216. 326.  -   margin: 0px auto;
  2217. 327.  - }
  2218. 328.  -
  2219. 329.  - #group_p_data {
  2220. 330.  -   padding: 10px 10px 5px;
  2221. 331.  -   background: #F7F7F7;
  2222. 332.  - }
  2223. 333.  - .group_p_rows {
  2224. 334.  -   display: none;
  2225. 335.  -   width: 457px;
  2226. 336.  - }
  2227. 337.  - .group_p_row {
  2228. 338.  -   width: 431px;
  2229. 339.  -   padding: 8px;
  2230. 340.  -   background: #FFF;
  2231. 341.  -   border: 1px solid #DAE1E8;
  2232. 342.  -   margin-bottom: 5px;
  2233. 343.  - }
  2234. 344.  - .group_p_photo {
  2235. 345.  -   width: 33px;
  2236. 346.  -   height: 25px;
  2237. 347.  -   overflow: hidden;
  2238. 348.  - }
  2239. 349.  - .group_p_photo_img {
  2240. 350.  -   width: 25px;
  2241. 351.  - }
  2242. 352.  - .group_p_info {
  2243. 353.  -   width: 395px;
  2244. 354.  -   white-space: nowrap;
  2245. 355.  -   overflow: hidden;
  2246. 356.  -   text-overflow: ellipsis;
  2247. 357.  -   -o-text-overflow: ellipsis;
  2248. 358.  -   color: #777;
  2249. 359.  - }
  2250. 360.  - .group_p_section, .group_p_section_sel {
  2251. 361.  -   display: block;
  2252. 362.  -   width: 130px;
  2253. 363.  -   padding: 5px 11px;
  2254. 364.  - }
  2255. 365.  - .group_p_section:hover {
  2256. 366.  -   text-decoration: none;
  2257. 367.  -   background: #E9EDF1;
  2258. 368.  - }
  2259. 369.  - .group_p_section_sel:hover {
  2260. 370.  -   text-decoration: none;
  2261. 371.  - }
  2262. 372.  - .group_p_section_sel {
  2263. 373.  -   padding: 4px 10px;
  2264. 374.  -   background: #5e82a8;
  2265. 375.  -   border: 1px solid #517295;
  2266. 376.  -   color: #FFF;
  2267. 377.  - }
  2268. 378.  - .group_p_no_list {
  2269. 379.  -   background: #FFFFFF;
  2270. 380.  -   color: #777777;
  2271. 381.  -   border: 1px solid #DAE1E8;
  2272. 382.  -   font-size: 1.18em;
  2273. 383.  -   margin: 0 0 3px;
  2274. 384.  -   padding: 80px 0;
  2275. 385.  -   text-align: center;
  2276. 386.  -   width: 447px;
  2277. 387.  - }
  2278. 388.  - .group_p_td {
  2279. 389.  -   vertical-align: top;
  2280. 390.  - }
  2281. 391.  - .group_p_label, .group_ps_label {
  2282. 392.  -   width: 130px;
  2283. 393.  -   padding: 9px 10px 0px;
  2284. 394.  -   color: #777;
  2285. 395.  - }
  2286. 396.  - .group_ps_label {
  2287. 397.  -   width: 110px;
  2288. 398.  - }
  2289. 399.  - .group_p_labeled, .group_ps_labeled {
  2290. 400.  -   padding: 5px 0px;
  2291. 401.  - }
  2292. 402.  - #group_p_admin_position {
  2293. 403.  -   width: 200px;
  2294. 404.  - }
  2295. 405.  - .group_ps_labeled #group_p_admin_position {
  2296. 406.  -   width: 145px;
  2297. 407.  - }
  2298. 408.  - #group_admins_msg {
  2299. 409.  -   display: none;
  2300. 410.  -   margin-bottom: 10px;
  2301. 411.  -   width: 425px;
  2302. 412.  -   line-height: 160%;
  2303. 413.  - }
  2304. 414.  - #group_p_search {
  2305. 415.  -   border-top: 1px solid #DAE2E8;
  2306. 416.  -   margin: 5px 0;
  2307. 417.  -   padding: 5px 0px;
  2308. 418.  - }
  2309. 419.  - #group_p_search_info, #group_p_approve_info {
  2310. 420.  -   font-size: 0.9em;
  2311. 421.  -   padding: 5px 1px 8px;
  2312. 422.  - }
  2313. 423.  - #group_p_search_name {
  2314. 424.  -   width: 144px;
  2315. 425.  - }
  2316. 426.  - .group_p_search_button {
  2317. 427.  -   margin: 8px 0px;
  2318. 428.  - }
  2319. 429.  - .group_ps_thumb {
  2320. 430.  -   width: 110px;
  2321. 431.  -   height: 100px;
  2322. 432.  -   overflow: hidden;
  2323. 433.  - }
  2324. 434.  - .group_psmall_thumb {
  2325. 435.  -   width: 60px;
  2326. 436.  -   height: 50px;
  2327. 437.  -   overflow: hidden;
  2328. 438.  - }
  2329. 439.  - #members_show_more_link, #admins_show_more_link, #requests_show_more_link, #invites_show_more_link {
  2330. 440.  -   width: 449px;
  2331. 441.  - }
  2332. 442.  - #group_admins_rows {
  2333. 443.  -   position: relative;
  2334. 444.  - }
  2335. 445.  - .group_p_rows .sort_helper {
  2336. 446.  -   margin-bottom: 5px;
  2337. 447.  - }
  2338. 448.  -
  2339. 449.  - #group_l_msg {
  2340. 450.  -   margin: 15px 15px 10px;
  2341. 451.  -   line-height: 160%;
  2342. 452.  -   display: none;
  2343. 453.  - }
  2344. 454.  - #group_l_rows {
  2345. 455.  -   padding: 0px 10px 0px;
  2346. 456.  -   position: relative;
  2347. 457.  - }
  2348. 458.  - .group_l_row {
  2349. 459.  -   background: #FFF;
  2350. 460.  -   border-bottom: 1px solid #E7EAED;
  2351. 461.  -   padding: 10px 0px;
  2352. 462.  - }
  2353. 463.  - #group_l_rows .sort_helper {
  2354. 464.  -   border-bottom: 1px solid #E7EAED;
  2355. 465.  - }
  2356. 466.  - .group_l_row:last-child {
  2357. 467.  -   border-bottom: 1px solid #FFF;
  2358. 468.  - }
  2359. 469.  - .group_l_row.sort_taken, .group_l_row.sort_taken:last-child {
  2360. 470.  -   background: #EDF1F5;
  2361. 471.  -   border-bottom: 1px solid #EDF1F5;
  2362. 472.  -   padding: 10px;
  2363. 473.  -   margin: 0px -10px;
  2364. 474.  -   opacity: 0.9;
  2365. 475.  -   filter: alpha(opacity=90);
  2366. 476.  - }
  2367. 477.  - #group_l_rows .sort_helper.sort_helper_last {
  2368. 478.  -   border-bottom: 1px solid #FFF;
  2369. 479.  - }
  2370. 480.  - .group_l_photo {
  2371. 481.  -   width: 60px;
  2372. 482.  -   height: 50px;
  2373. 483.  -   overflow: hidden;
  2374. 484.  - }
  2375. 485.  - .group_l_photo_img {
  2376. 486.  -   width: 50px;
  2377. 487.  - }
  2378. 488.  - .group_l_info {
  2379. 489.  -   width: 420px;
  2380. 490.  -   overflow: hidden;
  2381. 491.  -   font-weight: bold;
  2382. 492.  - }
  2383. 493.  - .group_l_position {
  2384. 494.  -   padding-top: 4px;
  2385. 495.  -   font-weight: normal;
  2386. 496.  - }
  2387. 497.  - .group_l_x {
  2388. 498.  -   background: url(/images/pics/statusx_op.gif) no-repeat;
  2389. 499.  -   opacity: 0;
  2390. 500.  -   filter: alpha(opacity=0);
  2391. 501.  -   cursor: pointer;
  2392. 502.  -   height: 17px;
  2393. 503.  -   width: 17px;
  2394. 504.  - }
  2395. 505.  - .group_al_thumb {
  2396. 506.  -   width: 110px;
  2397. 507.  -   height: 100px;
  2398. 508.  -   overflow: hidden;
  2399. 509.  - }
  2400. 510.  - #group_al_thumb_img {
  2401. 511.  -   width: 100px;
  2402. 512.  - }
  2403. 513.  - .group_al_title {
  2404. 514.  -   margin: 0 0 10px;
  2405. 515.  -   width: 270px;
  2406. 516.  -   overflow: hidden;
  2407. 517.  - }
  2408. 518.  - #group_al_title, #group_al_position {
  2409. 519.  -   width: 262px;
  2410. 520.  - }
  2411. 521.  - .group_al_position {
  2412. 522.  -   padding: 10px 4px 0px;
  2413. 523.  -   color: #777;
  2414. 524.  - }
  2415. 525.  - #group_l_no {
  2416. 526.  -   padding: 100px 130px;
  2417. 527.  - }
  2418. 528.  - .group_l_action {
  2419. 529.  -   display: block;
  2420. 530.  -   padding: 4px 6px;
  2421. 531.  - }
  2422. 532.  - .group_l_action:hover {
  2423. 533.  -   text-decoration: none;
  2424. 534.  -   background: #E1E7ED;
  2425. 535.  - }
  2426. 536.  - .group_l_progress {
  2427. 537.  -   margin: 4px 6px;
  2428. 538.  - }
  2429. 539.  -
  2430. 540.  - .group_edit_at {
  2431. 541.  -   padding: 4px 0px 0;
  2432. 542.  - }
  2433. 543.  - .group_edit_field .datepicker_control {
  2434. 544.  -   padding-left: 4px;
  2435. 545.  -   padding-right: 4px;
  2436. 546.  - }
  2437. 547.  - #group_edit_finish_label {
  2438. 548.  -   padding-bottom: 5px;
  2439. 549.  - }
  2440. 550.  -
  2441. 551.  - #group_stickes_box h2 {
  2442. 552.  -   padding-left: 1px;
  2443. 553.  -   border-bottom: none;
  2444. 554.  - }
  2445. 555.  - .group_st_msg {
  2446. 556.  -   padding: 0;
  2447. 557.  -   margin: 0 auto 15px;
  2448. 558.  -   width: 490px;
  2449. 559.  -   line-height: 160%;
  2450. 560.  -   font-size: 1.09em;
  2451. 561.  - }
  2452. 562.  - .group_st_row {
  2453. 563.  -   margin: 0;
  2454. 564.  - }
  2455. 565.  - .group_st_label {
  2456. 566.  -   width: 240px;
  2457. 567.  -   padding: 4px 8px 9px 0;
  2458. 568.  -   color: #555;
  2459. 569.  - }
  2460. 570.  - .group_st_labeled {
  2461. 571.  -   padding: 4px 7px 9px 0;
  2462. 572.  - }
  2463. 573.  - .group_st_field {
  2464. 574.  -   padding: 0 0 9px 0;
  2465. 575.  - }
  2466. 576.  - .group_st_field input {
  2467. 577.  -   width: 335px;
  2468. 578.  - }
  2469. 579.  - .group_st_field textarea {
  2470. 580.  -   width: 335px;
  2471. 581.  -   height: 65px;
  2472. 582.  - }
  2473. 583.  - .group_st_field textarea.big_text {
  2474. 584.  -   padding: 5px 4px 4px;
  2475. 585.  -   font-size: 1.09em!important;
  2476. 586.  - }
  2477. 587.  - .group_st_field .selector_container td.selector {
  2478. 588.  -   padding-top: 3px;
  2479. 589.  -   padding-bottom: 2px;
  2480. 590.  - }
  2481. 591.  - .group_st_field .datepicker_control {
  2482. 592.  -   padding-top: 4px;
  2483. 593.  -   padding-bottom: 4px;
  2484. 594.  - }
  2485. 595.  - .firefox .group_st_field .datepicker_control {
  2486. 596.  -   padding-top: 3px;
  2487. 597.  -   padding-bottom: 3px;
  2488. 598.  - }
  2489. 599.  - .group_st_note {
  2490. 600.  -   padding-top: 7px;
  2491. 601.  -   color: #555;
  2492. 602.  -   width: 337px;
  2493. 603.  - }
  2494. 604.  - #group_stickers_phone_table {
  2495. 605.  -   border: 1px solid #C0CAD5;
  2496. 606.  -   background: #FFF;
  2497. 607.  -   width: 170px;
  2498. 608.  - }
  2499. 609.  - #group_stickers_phone_prefix {
  2500. 610.  -   padding: 4px 0px 3px 6px;
  2501. 611.  -   color: #777;
  2502. 612.  -   width: 1px;
  2503. 613.  -   vertical-align: top;
  2504. 614.  -   font-size: 1.09em!important;
  2505. 615.  - }
  2506. 616.  - .group_stickers_phone_field {
  2507. 617.  -   width: 100%;
  2508. 618.  -   padding: 4px 0px 0px;
  2509. 619.  -   vertical-align: top;
  2510. 620.  - }
  2511. 621.  - input#stickers_phone {
  2512. 622.  -   width: 100%;
  2513. 623.  -   outline: none;
  2514. 624.  -   border: 0px;
  2515. 625.  -   padding: 0px;
  2516. 626.  -   margin: 0px -1px;
  2517. 627.  -   background: transparent;
  2518. 628.  - }
  2519. 629.  - .group_st_from {
  2520. 630.  -   padding-top: 3px;
  2521. 631.  -   width: 30px;
  2522. 632.  -   text-align: center;
  2523. 633.  -   color: #555;
  2524. 634.  - }
  2525. 635.  - .group_st_at {
  2526. 636.  -   padding: 5px 8px 0;
  2527. 637.  -   color: #555;
  2528. 638.  - }
  2529. 639.  - .group_st_submit_row {
  2530. 640.  -   padding: 5px 0 10px 0;
  2531. 641.  - }
  2532. 642.  - .group_st_img {
  2533. 643.  -   padding-bottom: 15px;
  2534. 644.  -   text-align: center;
  2535. 645.  - }
  2536. 646.  - .group_st_samples {
  2537. 647.  -   margin: 0 0 20px 0;
  2538. 648.  -   display: block;
  2539. 649.  -   text-align: center;
  2540. 650.  - }
  2541. 651.  - .group_st_samples a {
  2542. 652.  -   -moz-user-select: none;
  2543. 653.  -   -khtml-user-select: none;
  2544. 654.  -   -webkit-user-select: none;
  2545. 655.  -   outline: none;
  2546. 656.  - }
  2547. 657.  - .group_st_samples a:hover {
  2548. 658.  -   text-decoration: none;
  2549. 659.  - }
  2550. 660.  - .group_st_samples img {
  2551. 661.  -   margin-right: 10px;
  2552. 662.  - }
  2553. 663.  - #stickers_error {
  2554. 664.  -   margin-bottom: 10px;
  2555. 665.  -   padding: 10px 15px;
  2556. 666.  -   display: none;
  2557. 667.  - }
  2558. 668.  - .stickers_side_tt table .tt_text {
  2559. 669.  -   line-height: 120%;
  2560. 670.  -   color: #000;
  2561. 671.  -   padding: 10px;
  2562. 672.  -   width: 240px;
  2563. 673.  - }
  2564. 674.  - .stickers_side_tt_pointer {
  2565. 675.  -   background: url(/images/ddtooltip.png) 0 0 no-repeat;
  2566. 676.  -   width: 8px;
  2567. 677.  -   height: 11px;
  2568. 678.  -   position: absolute;
  2569. 679.  -   left: -7px;
  2570. 680.  -   top: 25px;
  2571. 681.  -   overflow: hidden;
  2572. 682.  -   z-index: 10;
  2573. 683.  - }
  2574. 684.  -
  2575. 685.  - #gedit_users_admsearch_wrap,
  2576. 686.  - #gedit_users_search_wrap {
  2577. 687.  -   background: #F7F7F7;
  2578. 688.  -   padding: 10px 10px 0px;
  2579. 689.  - }
  2580. 690.  - #gedit_users_admsearch_btn,
  2581. 691.  - #gedit_users_search_btn {
  2582. 692.  -   width: 100px;
  2583. 693.  - }
  2584. 694.  - #gedit_users_admsearch_btn {
  2585. 695.  -   width: 180px;
  2586. 696.  - }
  2587. 697.  - #gedit_users_search_inp {
  2588. 698.  -   padding: 5px 20px 6px;
  2589. 699.  -   width: 373px;
  2590. 700.  -   background: url(/images/magglass.png) no-repeat scroll 5px 6px white;
  2591. 701.  -   height: 13px;
  2592. 702.  -   outline: none;
  2593. 703.  - }
  2594. 704.  - #gedit_users_search_inp.gedit_search_wide {
  2595. 705.  -   width: 453px;
  2596. 706.  - }
  2597. 707.  - #gedit_users_search_inp::-ms-clear {
  2598. 708.  -   display: none;
  2599. 709.  - }
  2600. 710.  - #gedit_reset_search {
  2601. 711.  -   margin: 1px 0px 0px 392px;
  2602. 712.  -   display: none;
  2603. 713.  -   cursor: pointer;
  2604. 714.  -   background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
  2605. 715.  -   padding: 2px;
  2606. 716.  -   width: 19px;
  2607. 717.  -   height: 19px;
  2608. 718.  -   opacity: 0.6;
  2609. 719.  -   filter: alpha(opacity=60);
  2610. 720.  -   position: absolute;
  2611. 721.  -   z-index: 95;
  2612. 722.  -   -webkit-transition: opacity 100ms linear;
  2613. 723.  -   -moz-transition: opacity 100ms linear;
  2614. 724.  -   -o-transition: opacity 100ms linear;
  2615. 725.  -   transition: opacity 100ms linear;
  2616. 726.  - }
  2617. 727.  - #gedit_reset_search:hover {
  2618. 728.  -   opacity: 1;
  2619. 729.  - }
  2620. 730.  - #gedit_reset_search.gedit_search_wide {
  2621. 731.  -   margin-left: 472px;
  2622. 732.  - }
  2623. 733.  - #gedit_summary_tabs {
  2624. 734.  -   padding: 2px 5px 3px;
  2625. 735.  - }
  2626. 736.  - .gedit_users_rows,
  2627. 737.  - .gedit_additional_users_rows {
  2628. 738.  -   padding: 0px 10px;
  2629. 739.  - }
  2630. 740.  - .gedit_user {
  2631. 741.  -   border-top: 1px solid #EDEDED;
  2632. 742.  -   padding: 10px 0px;
  2633. 743.  -   height: 100px;
  2634. 744.  - }
  2635. 745.  - .gedit_user:first-child {
  2636. 746.  -   border-top: 0px;
  2637. 747.  - }
  2638. 748.  - .gedit_user_bigph_wrap {
  2639. 749.  -   width: 110px;
  2640. 750.  -   height: 100px;
  2641. 751.  -   overflow: hidden;
  2642. 752.  -   position: relative;
  2643. 753.  - }
  2644. 754.  - .gedit_user_thumb {
  2645. 755.  -   width: 100px;
  2646. 756.  -   height: 100px;
  2647. 757.  -   display: block;
  2648. 758.  -   overflow: hidden;
  2649. 759.  - }
  2650. 760.  - .gedit_user_img {
  2651. 761.  -   width: 100px;
  2652. 762.  - }
  2653. 763.  - .gedit_user_info {
  2654. 764.  -   width: 330px;
  2655. 765.  -   padding-top: 4px;
  2656. 766.  - }
  2657. 767.  - .gedit_user_name,
  2658. 768.  - .gedit_user_uni {
  2659. 769.  -   padding-bottom: 5px;
  2660. 770.  - }
  2661. 771.  - .gedit_user_lnk {
  2662. 772.  -   font-weight: bold;
  2663. 773.  -   color: #45688E;
  2664. 774.  - }
  2665. 775.  - .gedit_user_online {
  2666. 776.  -   color: #BBB;
  2667. 777.  -   padding-bottom: 5px;
  2668. 778.  - }
  2669. 779.  - b.gedit_mob_onl {
  2670. 780.  -   background-position: -1px 0px;
  2671. 781.  - }
  2672. 782.  - .gedit_bigph_wrap {
  2673. 783.  -   position: relative;
  2674. 784.  -   height: 100px;
  2675. 785.  -   overflow: hidden;
  2676. 786.  - }
  2677. 787.  - .gedit_bigph {
  2678. 788.  -   position: absolute;
  2679. 789.  -   color: #FFF;
  2680. 790.  -   margin-top: 100px;
  2681. 791.  -   background: #333;
  2682. 792.  -   background: rgba(0, 0, 0, 0.5);
  2683. 793.  -   width: 100px;
  2684. 794.  -   height: 15px;
  2685. 795.  -   line-height: 15px;
  2686. 796.  -   padding: 4px 0px 6px 0px;
  2687. 797.  -   text-align: center;
  2688. 798.  -   filter: alpha(opacity=75);
  2689. 799.  - }
  2690. 800.  - @media all and (min-width:0) { /* IE9-10 */
  2691. 801.  -   .gedit_bigph { filter: none; }
  2692. 802.  - }
  2693. 803.  - .gedit_bigph:hover {
  2694. 804.  -   text-decoration: none;
  2695. 805.  - }
  2696. 806.  - .gedit_bigph_label {
  2697. 807.  -   opacity: 0.75;
  2698. 808.  -   -webkit-transition: opacity 100ms linear;
  2699. 809.  -   -moz-transition: opacity 100ms linear;
  2700. 810.  -   -o-transition: opacity 100ms linear;
  2701. 811.  -   transition: opacity 100ms linear;
  2702. 812.  -   padding: 0px 0px 1px 20px;
  2703. 813.  -   background: url(/images/icons/photo_icons.png?2) no-repeat left -62px;
  2704. 814.  - }
  2705. 815.  - .is_rtl1 .gedit_bigph_label {
  2706. 816.  -   padding: 0px 20px 1px 0px;
  2707. 817.  -   background-position: right -62px;
  2708. 818.  - }
  2709. 819.  - .gedit_bigph:hover .gedit_bigph_label {
  2710. 820.  -   opacity: 1;
  2711. 821.  - }
  2712. 822.  - .gedit_user_level {
  2713. 823.  -   padding-bottom: 5px;
  2714. 824.  -   font-weight: bold;
  2715. 825.  - }
  2716. 826.  - .gedit_users_none {
  2717. 827.  -   font-size: 13px;
  2718. 828.  -   text-align: center;
  2719. 829.  -   color: #777;
  2720. 830.  -   padding: 100px 20px;
  2721. 831.  - }
  2722. 832.  - .gedit_users_more {
  2723. 833.  -   display: block;
  2724. 834.  -   padding: 10px 0px;
  2725. 835.  -   margin: 0px 10px 10px;
  2726. 836.  -   border-top: 1px solid #EDEDED;
  2727. 837.  -   text-align: center;
  2728. 838.  - }
  2729. 839.  - .gedit_users_more:hover {
  2730. 840.  -   background: #E1E7ED;
  2731. 841.  -   border-color: #DAE1E8;
  2732. 842.  -   text-decoration: none;
  2733. 843.  - }
  2734. 844.  - .gedit_search_focused .gedit_user_highlight {
  2735. 845.  -   background: #E1E7ED;
  2736. 846.  -   border-bottom: 1px solid #DAE1E8;
  2737. 847.  -   padding: 0px 1px 0px;
  2738. 848.  -   margin: 0px -1px;
  2739. 849.  -   *padding: 0px;
  2740. 850.  -   *margin: 0px;
  2741. 851.  - }
  2742. 852.  - .gedit_user_cancel_button {
  2743. 853.  -   margin: 0px 10px;
  2744. 854.  - }
  2745. 855.  - .gedit_user_buttons {
  2746. 856.  -   margin-top: 10px;
  2747. 857.  - }
  2748. 858.  - .gedit_user_actions {
  2749. 859.  -   width: 160px;
  2750. 860.  - }
  2751. 861.  - .gedit_user_action {
  2752. 862.  -   overflow: hidden;
  2753. 863.  -   display: block;
  2754. 864.  -   padding: 4px 6px;
  2755. 865.  - }
  2756. 866.  - .gedit_user_action:hover {
  2757. 867.  -   background: #E1E7ED;
  2758. 868.  -   text-decoration: none;
  2759. 869.  - }
  2760. 870.  - .gedit_admbox_top,
  2761. 871.  - #gedit_hostbox_top {
  2762. 872.  -   height: 50px;
  2763. 873.  -   padding-bottom: 10px;
  2764. 874.  -   overflow: hidden;
  2765. 875.  - }
  2766. 876.  - .gedit_admbox_thumb,
  2767. 877.  - #gedit_hostbox_thumb {
  2768. 878.  -   width: 60px;
  2769. 879.  -   height: 50px;
  2770. 880.  -   display: block;
  2771. 881.  -   overflow: hidden;
  2772. 882.  - }
  2773. 883.  - .gedit_admbox_img,
  2774. 884.  - #gedit_hostbox_img {
  2775. 885.  -   width: 50px;
  2776. 886.  - }
  2777. 887.  - .gedit_admbox_info,
  2778. 888.  - .gedit_hostbox_info {
  2779. 889.  -   width: 300px;
  2780. 890.  - }
  2781. 891.  - #gedit_hostbox_name {
  2782. 892.  -   font-weight: bold;
  2783. 893.  - }
  2784. 894.  - #gedit_host_inp {
  2785. 895.  -   width: 300px;
  2786. 896.  - }
  2787. 897.  - #gedit_host_dd {
  2788. 898.  -   margin-top: 15px;
  2789. 899.  - }
  2790. 900.  - .gedit_admbox_header {
  2791. 901.  -   font-size: 13px;
  2792. 902.  -   font-weight: bold;
  2793. 903.  -   color: #45688E;
  2794. 904.  -   padding: 2px 0px 8px;
  2795. 905.  - }
  2796. 906.  - .gedit_admbox_desc {
  2797. 907.  -   width: 320px;
  2798. 908.  -   margin: 0px 3px 5px;
  2799. 909.  - }
  2800. 910.  - .gedit_admbox_desc_other {
  2801. 911.  -   padding-top: 2px;
  2802. 912.  -   display: block;
  2803. 913.  -   line-height: 140%;
  2804. 914.  -   color: #777;
  2805. 915.  - }
  2806. 916.  - #gedit_admbox_contact_info {
  2807. 917.  -   padding: 0px 24px;
  2808. 918.  - }
  2809. 919.  - #gedit_admbox_contact_info.gedit_admbox_removing {
  2810. 920.  -   padding: 0px 1px;
  2811. 921.  - }
  2812. 922.  - .gedit_admbox_radio,
  2813. 923.  - #gedit_admbox_check {
  2814. 924.  -   margin-top: 6px;
  2815. 925.  -   padding: 0px 1px;
  2816. 926.  - }
  2817. 927.  - .gedit_admbox_contact_row {
  2818. 928.  -   padding-top: 10px;
  2819. 929.  - }
  2820. 930.  - .gedit_admbox_contact_fill {
  2821. 931.  -   padding: 13px 0px 3px;
  2822. 932.  - }
  2823. 933.  - .gedit_admbox_contact_desc {
  2824. 934.  -   padding: 3px 10px 0px;
  2825. 935.  -   color: #777;
  2826. 936.  - }
  2827. 937.  - #gedit_admbox_position,
  2828. 938.  - #gedit_admbox_email,
  2829. 939.  - #gedit_admbox_phone {
  2830. 940.  -   width: 175px;
  2831. 941.  - }
  2832. 942.  - .gedit_btns_text {
  2833. 943.  -   padding: 6px 15px 0px;
  2834. 944.  -   color: #777;
  2835. 945.  - }
  2836. 946.  - .gedit_admin_warn {
  2837. 947.  -   line-height: 160%;
  2838. 948.  - }
  2839. 949.  -
  2840. 950.  - .group_edit .info_msg {
  2841. 951.  -   background: #FFF;
  2842. 952.  -   border: 1px solid #C2C3C7;
  2843. 953.  - }
  2844. 954.  - #gedit_ad_join_wrap {
  2845. 955.  -   padding: 25px 0 10px 0;
  2846. 956.  -   text-align: center;
  2847. 957.  - }
  2848. 958.  - #ge_ad_join_box .info_msg {
  2849. 959.  -   padding: 16px 20px;
  2850. 960.  -   border: none;
  2851. 961.  -   background-color: #EEF0F2;
  2852. 962.  - }
  2853. 963.  - #ad_box_error {
  2854. 964.  -   margin: 0 20px 20px 20px;
  2855. 965.  -   padding: 10px 15px;
  2856. 966.  -   display: none;
  2857. 967.  - }
  2858. 968.  - #ad_box_cat_notice {
  2859. 969.  -   margin: 0 20px 20px 20px;
  2860. 970.  -   padding: 10px 15px;
  2861. 971.  -   display: none;
  2862. 972.  - }
  2863. 973.  - .ge_ad_box_cont {
  2864. 974.  -   padding: 23px 0 28px;
  2865. 975.  - }
  2866. 976.  - .ge_ad_box_fields {
  2867. 977.  -   padding-left: 227px;
  2868. 978.  -   background: url(/images/join/adspost.png) no-repeat 27px 0px;
  2869. 979.  - }
  2870. 980.  - .ge_ad_label {
  2871. 981.  -   padding: 20px 0 9px 0;
  2872. 982.  -   font-weight: bold;
  2873. 983.  -   font-size: 1.09em;
  2874. 984.  -   color: #45688E;
  2875. 985.  - }
  2876. 986.  - .ge_ad_box_cont input.text {
  2877. 987.  -   padding: 6px 8px 7px !important;
  2878. 988.  -   width: 180px;
  2879. 989.  - }
  2880. 990.  - .ge_ad_box_note {
  2881. 991.  -   padding-top: 8px;
  2882. 992.  -   color: #888;
  2883. 993.  - }
  2884. 994.  - .ge_ad_box_btn {
  2885. 995.  -   margin-top: 20px;
  2886. 996.  - }
  2887. 997.  - .ge_ad_hint {
  2888. 998.  -   color: #9CABB8;
  2889. 999.  -   font-size: 0.91em;
  2890. 1000.  -   cursor: pointer;
  2891. 1001.  - }
  2892. 1002.  - .ge_ad_edit_hint {
  2893. 1003.  -   color: #9CABB8;
  2894. 1004.  -   font-weight: bold;
  2895. 1005.  -   cursor: pointer;
  2896. 1006.  - }
  2897. 1007.  - .ge_ad_hint_tt .tail_wrap {
  2898. 1008.  -   position: absolute;
  2899. 1009.  -   top: auto;
  2900. 1010.  -   bottom: -5px;
  2901. 1011.  -   left: 17px;
  2902. 1012.  -   z-index: 2001;
  2903. 1013.  - }
  2904. 1014.  - .ge_ad_hint_tt .tail {
  2905. 1015.  -   background: url(/images/ddtooltip.png) -3px -5px no-repeat;
  2906. 1016.  -   width: 11px;
  2907. 1017.  -   height: 8px;
  2908. 1018.  - }
  2909. 1019.  - .ge_ad_hint_tt .toup .tail_wrap {
  2910. 1020.  -   top: -7px;
  2911. 1021.  -   bottom: auto;
  2912. 1022.  - }
  2913. 1023.  - .ge_ad_hint_tt .toup .tail {
  2914. 1024.  -   background-position: -3px 2px;
  2915. 1025.  - }
  2916. 1026.  - .ge_ad_hint_tt .hint_wrap {
  2917. 1027.  -   width: 255px;
  2918. 1028.  -   padding: 8px 5px;
  2919. 1029.  -   line-height: 160%;
  2920. 1030.  -   color: #000000;
  2921. 1031.  - }
  2922. 1032.  - .ge_ad_tt_list {
  2923. 1033.  -   list-style: url(/images/bullet.gif) outside;
  2924. 1034.  -   padding: 0 0 0 15px;
  2925. 1035.  -   margin: 0;
  2926. 1036.  -   max-width: 240px;
  2927. 1037.  -   color: #000;
  2928. 1038.  - }
  2929. 1039.  -
  2930. 1040.  - .group_ad_not_found {
  2931. 1041.  -   margin: 20px 20px 15px;
  2932. 1042.  -   padding: 20px 0;
  2933. 1043.  -   line-height: 200%;
  2934. 1044.  -   text-align: center;
  2935. 1045.  -   color: #777;
  2936. 1046.  - }
  2937. 1047.  - .group_ad_not_found.table {
  2938. 1048.  -   margin: 0px;
  2939. 1049.  -   background-color: #f7f7f7;
  2940. 1050.  - }
  2941. 1051.  - .group_ad_table {
  2942. 1052.  -   border-collapse: collapse;
  2943. 1053.  -   width: 100%;
  2944. 1054.  - }
  2945. 1055.  - .group_ad_table th {
  2946. 1056.  -   padding: 9px 15px 11px 5px;
  2947. 1057.  -   background-color: #e9edf0;
  2948. 1058.  -   color: #587183;
  2949. 1059.  -   font-weight: bold;
  2950. 1060.  - }
  2951. 1061.  - .group_ad_table th:first-child {
  2952. 1062.  -   padding-left: 10px;
  2953. 1063.  - }
  2954. 1064.  - .group_ad_table th.actions {
  2955. 1065.  -   text-align: center;
  2956. 1066.  -   width: 130px;
  2957. 1067.  - }
  2958. 1068.  - .group_ad_table th.info {
  2959. 1069.  -   width: 150px;
  2960. 1070.  - }
  2961. 1071.  - .group_ad_table tr {
  2962. 1072.  -   border-left: 1px solid #e9edf0;
  2963. 1073.  -   border-right: 1px solid #e9edf0;
  2964. 1074.  - }
  2965. 1075.  - .group_ad_table tr.even {
  2966. 1076.  -   background-color: #f5f7f7;
  2967. 1077.  - }
  2968. 1078.  - .group_ad_table tr:first-child {
  2969. 1079.  -   border-top: 1px solid #e9edf0;
  2970. 1080.  - }
  2971. 1081.  - .group_ad_table tr:last-child {
  2972. 1082.  -   border-bottom: 1px solid #e9edf0;
  2973. 1083.  - }
  2974. 1084.  - .group_ad_table td {
  2975. 1085.  -   padding: 10px 5px;
  2976. 1086.  -   text-align: left;
  2977. 1087.  -   vertical-align: top;
  2978. 1088.  -   line-height: 160%;
  2979. 1089.  - }
  2980. 1090.  - .group_ad_table td:first-child {
  2981. 1091.  -   padding-left: 10px;
  2982. 1092.  - }
  2983. 1093.  - .group_ad_table td:last-child {
  2984. 1094.  -   padding-right: 10px;
  2985. 1095.  - }
  2986. 1096.  - .group_ad_table td.not_found {
  2987. 1097.  -   padding: 0px;
  2988. 1098.  - }
  2989. 1099.  - .group_ad_table .grey {
  2990. 1100.  -   color: #666666;
  2991. 1101.  -   display: inline-block;
  2992. 1102.  -   min-width: 40px;
  2993. 1103.  -   margin-right: 5px;
  2994. 1104.  - }
  2995. 1105.  - .group_ad_table .green {
  2996. 1106.  -   color: #37702a;
  2997. 1107.  - }
  2998. 1108.  - .group_ad_table .red {
  2999. 1109.  -   color: #aa3333;
  3000. 1110.  - }
  3001. 1111.  -
  3002. 1112.  - .group_ad_request_title {
  3003. 1113.  -   max-width: 300px;
  3004. 1114.  -   overflow: hidden;
  3005. 1115.  -   text-overflow: ellipsis;
  3006. 1116.  - }
  3007. 1117.  - .group_ad_request_status {
  3008. 1118.  -   line-height: 160%;
  3009. 1119.  - }
  3010. 1120.  - .group_ad_request_status .extra_info {
  3011. 1121.  -   padding-bottom: 3px;
  3012. 1122.  - }
  3013. 1123.  - .group_ad_request_actions {
  3014. 1124.  -   white-space: nowrap;
  3015. 1125.  -   text-align: center !important;
  3016. 1126.  - }
  3017. 1127.  - .group_ad_request_actions a {
  3018. 1128.  -   display: block;
  3019. 1129.  -   padding-bottom: 3px;
  3020. 1130.  - }
  3021. 1131.  - .group_ad_request_button {
  3022. 1132.  -   margin-bottom: 5px;
  3023. 1133.  - }
  3024. 1134.  - .group_ad_subtab1 {
  3025. 1135.  -   float: left;
  3026. 1136.  -   -moz-border-radius: 2px;
  3027. 1137.  -   border-radius: 2px;
  3028. 1138.  -   cursor: pointer;
  3029. 1139.  -   margin: 3px 3px 0 0;
  3030. 1140.  -   color: #2B587A;
  3031. 1141.  - }
  3032. 1142.  - .group_ad_subtab1.hidden {
  3033. 1143.  -   display: none;
  3034. 1144.  - }
  3035. 1145.  - .group_ad_subtab1:hover {
  3036. 1146.  -   background-color: #E1E7ED;
  3037. 1147.  - }
  3038. 1148.  - .group_ad_subtab1.active {
  3039. 1149.  -   background-color: #597DA3;
  3040. 1150.  -   color: white;
  3041. 1151.  -   cursor: default;
  3042. 1152.  - }
  3043. 1153.  - .group_ad_subtab2 {
  3044. 1154.  -   padding: 3px 6px 4px;
  3045. 1155.  - }
  3046. 1156.  - .group_ad_subtab_cnt {
  3047. 1157.  -   display: inline-block;
  3048. 1158.  -   padding-left: 3px;
  3049. 1159.  -   font-weight: bold;
  3050. 1160.  -   color: #6E859E;
  3051. 1161.  - }
  3052. 1162.  - .group_ad_subtab1.active .group_ad_subtab_cnt {
  3053. 1163.  -   color: #d5dde3;
  3054. 1164.  - }
  3055. 1165.  - .is_rtl1 .group_ad_subtab_cnt {
  3056. 1166.  -   padding-left: 0px;
  3057. 1167.  -   padding-right: 3px;
  3058. 1168.  - }
  3059. 1169.  - #groups_ad_wrap {
  3060. 1170.  -   padding: 0;
  3061. 1171.  - }
  3062. 1172.  - #groups_ad_wrap h2 {
  3063. 1173.  -   margin-bottom: 7px;
  3064. 1174.  -   font-size: 1.09em;
  3065. 1175.  - }
  3066. 1176.  - #group_ad_settings {
  3067. 1177.  -   padding: 15px;
  3068. 1178.  - }
  3069. 1179.  - #group_ad_requests_list {
  3070. 1180.  -   padding: 20px 15px;
  3071. 1181.  -   background-color: #FFF;
  3072. 1182.  -   border-top: 1px solid #D9E0E7;
  3073. 1183.  - }
  3074. 1184.  - #group_ad_requests_table {
  3075. 1185.  -   margin-top: 10px;
  3076. 1186.  - }
  3077. 1187.  - #groups_ad_wrap .group_edit_label {
  3078. 1188.  -   padding: 4px 10px 9px;
  3079. 1189.  -   width: 215px;
  3080. 1190.  - }
  3081. 1191.  - #groups_ad_wrap .group_edit_labeled {
  3082. 1192.  -   padding: 4px 0 9px;
  3083. 1193.  - }
  3084. 1194.  - #group_ad_settings .info_msg {
  3085. 1195.  -   margin-bottom: 20px;
  3086. 1196.  -   border-color: #BCC9D7;
  3087. 1197.  - }
  3088. 1198.  - #group_ad_settings .group_edit_label {
  3089. 1199.  -   padding-left: 12px;
  3090. 1200.  -   width: 115px;
  3091. 1201.  - }
  3092. 1202.  - #group_ad_status_selector,
  3093. 1203.  - #group_ad_cost_text {
  3094. 1204.  -   border-bottom: 1px dashed #2B587A;
  3095. 1205.  -   text-decoration: none;
  3096. 1206.  - }
  3097. 1207.  - #group_ad_cost {
  3098. 1208.  -   margin-right: 5px;
  3099. 1209.  -   width: 40px;
  3100. 1210.  - }
  3101. 1211.  - #group_ad_cost_link {
  3102. 1212.  -   padding-top: 4px;
  3103. 1213.  - }
  3104. 1214.  - .group_ad_recom_cost {
  3105. 1215.  -   padding-left: 8px;
  3106. 1216.  -   color: #777;
  3107. 1217.  - }
  3108. 1218.  - .group_ad_saved {
  3109. 1219.  -   padding-left: 15px;
  3110. 1220.  -   color: #777;
  3111. 1221.  -   opacity: 0;
  3112. 1222.  - }
  3113. 1223.  - #group_ad_bottom_info {
  3114. 1224.  -   border-top: 1px solid #DAE1E8;
  3115. 1225.  -   background-color: #F7F7F7;
  3116. 1226.  -   text-align: center;
  3117. 1227.  -   padding: 6px 20px;
  3118. 1228.  -   color: #777;
  3119. 1229.  - }
  3120. 1230.  -
  3121. 1231.  - #group_ad_request_box {
  3122. 1232.  -   padding: 20px;
  3123. 1233.  -   background-color: #F7F7F7;
  3124. 1234.  - }
  3125. 1235.  - .group_ad_request_field {
  3126. 1236.  -   padding-top: 14px;
  3127. 1237.  - }
  3128. 1238.  - .group_ad_request_time_label {
  3129. 1239.  -   width: 100px;
  3130. 1240.  -   color: #777;
  3131. 1241.  -   line-height: 160%;
  3132. 1242.  - }
  3133. 1243.  - .group_ad_request_time {
  3134. 1244.  -   font-weight: bold;
  3135. 1245.  -   color: #909090;
  3136. 1246.  -   line-height: 180%;
  3137. 1247.  - }
  3138. 1248.  - #group_ad_request_error {
  3139. 1249.  -   margin: 0 0 15px 0;
  3140. 1250.  -   display: none;
  3141. 1251.  - }
  3142. 1252.  - #group_ad_comment {
  3143. 1253.  -   width: 338px;
  3144. 1254.  -   height: 45px;
  3145. 1255.  -   resize: none;
  3146. 1256.  -   overflow: hidden;
  3147. 1257.  -   display: block;
  3148. 1258.  - }
  3149. 1259.  - .groups_ad_request_submit {
  3150. 1260.  -   padding-top: 20px;
  3151. 1261.  - }
  3152. 1262.  - .group_ad_request_time_at {
  3153. 1263.  -   padding: 4px 8px 0;
  3154. 1264.  - }
  3155. 1265.  - a.group_ad_post_stats,
  3156. 1266.  - a.group_ad_post_link {
  3157. 1267.  -   display: inline-block;
  3158. 1268.  -   margin: 0 5px 0 0;
  3159. 1269.  -   padding: 0;
  3160. 1270.  -   width: 18px;
  3161. 1271.  -   height: 18px;
  3162. 1272.  -   background: #ebeff5 url(/images/icons/mono_iconset.gif) no-repeat 4px -204px;
  3163. 1273.  - }
  3164. 1274.  - a.group_ad_post_link {
  3165. 1275.  -   background-position: 4px -233px;
  3166. 1276.  - }
  3167. 1277.  - a.group_ad_post_link.deleted {
  3168. 1278.  -   opacity: 0.5;
  3169. 1279.  -   filter: alpha(opacity=50);
  3170. 1280.  -   cursor: default;
  3171. 1281.  - }
  3172. 1282.  - a.group_ad_post_stats:hover,
  3173. 1283.  - a.group_ad_post_link:hover {
  3174. 1284.  -   background-color: #dde4ed;
  3175. 1285.  - }
  3176. 1286.  - a.group_ad_post_link.deleted:hover {
  3177. 1287.  -   background-color: #ebeff5;
  3178. 1288.  - }
  3179. 1289.  -
  3180. 1290.  - .group_ad_post_more {
  3181. 1291.  -   position: relative;
  3182. 1292.  -   top: 2px;
  3183. 1293.  -   font-weight: bold;
  3184. 1294.  -   color: #91A4B8;
  3185. 1295.  -   -webkit-transition: color 200ms linear;
  3186. 1296.  -   -moz-transition: color 200ms linear;
  3187. 1297.  -   -o-transition: color 200ms linear;
  3188. 1298.  -   transition: color 200ms linear;
  3189. 1299.  - }
  3190. 1300.  - .group_ad_post_more:hover {
  3191. 1301.  -   color: #45688E;
  3192. 1302.  -   text-decoration: none;
  3193. 1303.  - }
  3194. 1304.  -
  3195. 1305.  - #ge_ad_notifications_box .info_msg {
  3196. 1306.  -   padding: 16px 20px;
  3197. 1307.  -   border: none;
  3198. 1308.  -   background-color: #EEF0F2;
  3199. 1309.  - }
  3200. 1310.  - #ge_ad_notifications_error {
  3201. 1311.  -   margin: 0 10px 10px 10px;
  3202. 1312.  -   display: none;
  3203. 1313.  - }
  3204. 1314.  - #ge_ad_notifications_wrap {
  3205. 1315.  -   padding: 20px 0;
  3206. 1316.  - }
  3207. 1317.  - #ge_ad_notifications {
  3208. 1318.  -   border-collapse: collapse;
  3209. 1319.  - }
  3210. 1320.  - #ge_ad_notifications td {
  3211. 1321.  -   padding: 0;
  3212. 1322.  - }
  3213. 1323.  - .ge_ad_notifications_label {
  3214. 1324.  -   padding-right: 20px!important;
  3215. 1325.  -   color: #707070;
  3216. 1326.  -   text-align: right;
  3217. 1327.  -   width: 200px;
  3218. 1328.  - }
  3219. ------
Advertisement
Add Comment
Please, Sign In to add comment