Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Файл - wkview.js (Старый размер - 55819 | Новый - 0):
- 0. - var WkView = {
- 1. -
- 2. - init: function() {
- 3. - if (window.wkLayer) {
- 4. - return;
- 5. - }
- 6. - window.wkLayer = ce('div', {
- 7. - id: 'wk_layer'
- 8. - });
- 9. -
- 10. - window.wkLayerWrap = ce('div', {
- 11. - id: 'wk_layer_wrap',
- 12. - className: 'scroll_fix_wrap fixed'
- 13. - });
- 14. -
- 15. -
- 16. - wkLayerWrap.appendChild(window.wkLayer);
- 17. -
- 18. - bodyNode.appendChild(wkLayerWrap);
- 19. -
- 20. - window.wkLayer.style.width = (lastWindowWidth - sbWidth() - 2) + 'px';
- 21. - },
- 22. -
- 23. - showLayer: function() {
- 24. - // if (!wkcur.previousLayer) {
- 25. - // wkcur.previousLayer = isVisible(layerWrap) || (isVisible(ge('mv_layer_wrap')) && !mvcur.minimized);
- 26. - // }
- 27. - // layers.fullhide && layers.fullhide(true);
- 28. -
- 29. - debugLog('layerqueue.hide from wkview');
- 30. - layerQueue.hide();
- 31. -
- 32. - layers.wrapshow(wkLayerWrap, 0.7);
- 33. - layers.fullhide = WkView.hide;
- 34. - wkcur.showT = setTimeout(function() {
- 35. - layers.wrapshow(wkLayerWrap, 0.7);
- 36. - layers.fullhide = WkView.hide;
- 37. - }, 0);
- 38. - onBodyResize();
- 39. - },
- 40. - restoreLayer: function(opts) {
- 41. - WkView.showLayer();
- 42. - if (wkcur.root) {
- 43. - if (opts.myLoc) nav.setLoc(opts.myLoc);
- 44. - } else {
- 45. - WkView.setLocation();
- 46. - }
- 47. - if (opts.prevLoc) wkcur.prevLoc = opts.prevLoc;
- 48. - WkView.updateSize();
- 49. - },
- 50. -
- 51. - wikiClick: function(obj, ev) {
- 52. - if (checkEvent(ev)) {
- 53. - return true
- 54. - }
- 55. - var el = ev.target;
- 56. - while(el && el.tagName != 'A') {
- 57. - el = el.parentNode;
- 58. - }
- 59. - if (el && el.tagName == 'A') {
- 60. - var href = el.href;
- 61. - var m = href.match(/^\/(page[^?]*)(\?.*)?$/);
- 62. - if (m) {
- 63. - var path = m[1];
- 64. - var query = (m[4]) ? q2ajx(m[4].substr(1)) : {};
- 65. - } else {
- 66. - var m = href.match(/https?:\/\/([a-zA-Z0-9\-_\.]+\.)?(vk\.com|vkontakte\.ru)\/([^?]*)(\?.*)?$/i);
- 67. - if (!m || !m[3]) {
- 68. - return true;
- 69. - }
- 70. -
- 71. - var path = m[3].split('/');
- 72. - var query = (m[4]) ? q2ajx(m[4].substr(1)) : {};
- 73. - }
- 74. -
- 75. - var params = {};
- 76. - switch(path[0]) {
- 77. - case 'pages':
- 78. - params['oid'] = query.oid || query.o;
- 79. - params['id'] = query['id'];
- 80. - params['p'] = query['p'];
- 81. - break;
- 82. - case 'ru':
- 83. - case 'en':
- 84. - params['p'] = path[1];
- 85. - params['global'] = path[0];
- 86. - break;
- 87. - default:
- 88. - if (path[0].match(/^page-?\d+_\d+$/)) {
- 89. - var query = path[0].substr(4).split('_');
- 90. - params['oid'] = query[0];
- 91. - params['id'] = query[1];
- 92. - } else if (path[0].match(/^note\d+_\d+$/)) {
- 93. - var query = path[0].substr(4).split('_');
- 94. - params['w'] = path[0];
- 95. - }
- 96. - break;
- 97. - }
- 98. - if (params.w || (params.oid && (params.id || params.p))) {
- 99. - showWiki(params);
- 100. - return cancelEvent(ev);
- 101. - }
- 102. - }
- 103. - },
- 104. -
- 105. - edit: function() {
- 106. - if (!wkcur.canEdit) {
- 107. - return true;
- 108. - }
- 109. - var link = ge('wk_edit_link');
- 110. - if (!wkcur.editLang) {
- 111. - wkcur.editLang = val(link);
- 112. - }
- 113. -
- 114. - val(link, '<img src="images/upload.gif" />');
- 115. -
- 116. - if (wkcur.type == 'wall') {
- 117. - if (wkcur.edit) {
- 118. - Wall.cancelEdit();
- 119. - } else {
- 120. - Wall.editPost(wkcur.post, {from: 'wkview'}, function () {
- 121. - val(link, wkcur.editLang);
- 122. - });
- 123. - }
- 124. - return true;
- 125. - }
- 126. -
- 127. - if (wkcur.edit) {
- 128. - if (wkcur.note) {
- 129. - showWiki({
- 130. - w: 'note' + wkcur.oid + '_' + wkcur.nid
- 131. - });
- 132. - } else {
- 133. - showWiki({
- 134. - oid: wkcur.oid,
- 135. - id: wkcur.pid,
- 136. - p: wkcur.p
- 137. - });
- 138. - }
- 139. - return true;
- 140. - }
- 141. - wkcur.edit = true;
- 142. - var params = {
- 143. - act: 'edit',
- 144. - oid: wkcur.oid,
- 145. - load: 1,
- 146. - section: 'edit'
- 147. - };
- 148. - if (wkcur.note) {
- 149. - params['nid'] = wkcur.nid;
- 150. - params['note'] = 1;
- 151. - } else {
- 152. - params['id'] = wkcur.pid;
- 153. - }
- 154. - ajax.post('wkview.php', params, {
- 155. - stat: ['pages.js','wysiwyg.js', 'wysiwyg.css'],
- 156. - onDone: function(content, js, info, options) {
- 157. - wkcur.wkContent.innerHTML = content;
- 158. - eval(js);
- 159. - addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 160. - addEvent(window, 'resize', WkView.onResize);
- 161. - val(link, options.lang['pages_view']);
- 162. - WkView.onScroll();
- 163. - WkView.updateSize();
- 164. - },
- 165. - onFail: function() {
- 166. - val(link, wkcur.editLang);
- 167. - }
- 168. - });
- 169. - },
- 170. -
- 171. - onScroll: function(ev, resize) {
- 172. - switch (wkcur.type) {
- 173. - case 'wall':
- 174. - return WkView.wallUpdateRepliesOnScroll(resize);
- 175. -
- 176. - case 'likes':
- 177. - return WkView.likesOnScroll(resize);
- 178. -
- 179. - case 'history':
- 180. - return WkView.historyOnScroll(resize);
- 181. - }
- 182. -
- 183. - var y = wkLayerWrap.scrollTop;
- 184. - var panel = ge('wk_buttons_panel');
- 185. - if (!panel) return;
- 186. - var py = getXY(ge('wk_buttons_cont'), true)[1];
- 187. - if (!wkcur.bottomSize) {
- 188. - wkcur.bottomSize = getSize(panel);
- 189. - }
- 190. -
- 191. - var ph = wkcur.bottomSize[1];
- 192. -
- 193. - var wndHeight = window.innerHeight || document.documentElement.clientHeight;
- 194. -
- 195. - if (resize && !wkcur.fixedBottom && wndHeight - ph < py + 20) {
- 196. - wkLayerWrap.scrollTop += py + 20 - (wndHeight - ph);
- 197. - } else if (wndHeight - ph < py) {
- 198. - if (!wkcur.fixedBottom || resize) {
- 199. - wkcur.fixedBottom = true;
- 200. - setStyle(panel, {
- 201. - position: 'fixed',
- 202. - top: (wndHeight - ph) + 'px'
- 203. - });
- 204. - addClass(panel, 'wk_panel_fixed');
- 205. - }
- 206. - } else {
- 207. - if (wkcur.fixedBottom || resize) {
- 208. - wkcur.fixedBottom = false;
- 209. - setStyle(panel, {
- 210. - position: 'static',
- 211. - top: '0px'
- 212. - });
- 213. - removeClass(panel, 'wk_panel_fixed');
- 214. - }
- 215. - }
- 216. -
- 217. - if (resize && wkcur.fixedBottom) {
- 218. - setStyle(panel, {left: getXY(wkcur.wkContent)[0]+'px'})
- 219. - }
- 220. -
- 221. - if (!wkcur.editorLayer) {
- 222. - wkCont = wkcur.wkContent;//ge('wk_content');
- 223. - wkcur.editorLayer = ge('wke_buttons_cont') || geByClass('editor_layer', wkCont)[0];
- 224. - } else {
- 225. - var pos = getXY(wkcur.editorLayer, true);
- 226. - if (pos[1] < 0) {
- 227. - if (!wkcur.fixedTop) {
- 228. - wkcur.fixedTop = true;
- 229. - addClass(wkcur.wkContent, 'wk_top_fixed');
- 230. - WkView.updateShadow();
- 231. - wkcur.editor.floatPanel = true;
- 232. - }
- 233. - } else {
- 234. - if (wkcur.fixedTop) {
- 235. - wkcur.fixedTop = false;
- 236. - removeClass(wkcur.wkContent, 'wk_top_fixed');
- 237. - wkcur.editorLayer.style.paddingTop = '0px';
- 238. - wkcur.editor.floatPanel = false;
- 239. - }
- 240. - }
- 241. - }
- 242. - },
- 243. -
- 244. - updateShadow: function() {
- 245. - if (!wkcur.editorLayer) {
- 246. - wkCont = wkcur.wkContent;//ge('wk_content');
- 247. - wkcur.editorLayer = geByClass('editor_layer', wkCont)[0];
- 248. - }
- 249. - var toolbox = ge('wke_buttons') || geByClass('editor_toolbar', wkCont)[0];
- 250. - if (toolbox) {
- 251. - if (wkcur.fixedTop) {
- 252. - var size = getSize(toolbox);
- 253. - wkcur.editorLayer.style.paddingTop = size[1]+'px';
- 254. - ge('wk_top_toolbox_shadow').style.top = (size[1] - 1)+'px';
- 255. - }
- 256. - }
- 257. - },
- 258. -
- 259. - saveInfo: function(autosave) {
- 260. - var params = {
- 261. - page: wkcur.p,
- 262. - hash: wkcur.hash
- 263. - }
- 264. - if (wkcur.newEditor) {
- 265. - params['Body'] = wkcur.editor.val();
- 266. - if (params['Body'] === false) {
- 267. - return false;
- 268. - }
- 269. - } else {
- 270. - params['Body'] = wkcur.editor.convertToWiki(true);
- 271. - }
- 272. - if (wkcur.note) {
- 273. - params = extend(params, {
- 274. - act: 'save',
- 275. - oid: wkcur.oid,
- 276. - nid: wkcur.nid,
- 277. - wysiwyg: 1,
- 278. - note: wkcur.note
- 279. - });
- 280. - } else {
- 281. - params = extend(params, {
- 282. - act: 'save',
- 283. - oid: wkcur.oid,
- 284. - id: wkcur.pid
- 285. - });
- 286. - }
- 287. - if (wkcur.pageTitle) {
- 288. - params['title'] = val(wkcur.pageTitle);
- 289. - /*if (!params['title']) {
- 290. - notaBene(wkcur.pageTitle);
- 291. - return false;
- 292. - }*/
- 293. - }
- 294. - if (autosave && wkcur.lockAutoSave) {
- 295. - return false;
- 296. - }
- 297. - wkcur.lockAutoSave = true;
- 298. - ajax.post(wkcur.note ? 'wkview.php' : 'al_pages.php', params, {
- 299. - onDone: function(text, data) {
- 300. - wkcur.lockAutoSave = false;
- 301. - wkcur.editor.changed = false;
- 302. - if (!autosave) {
- 303. - var saveEl = ge('pages_save_info_wysiwyg');
- 304. - saveEl.innerHTML = text;
- 305. - show(saveEl);
- 306. - }
- 307. - if (data.nid) {
- 308. - wkcur.nid = data.nid;
- 309. - }
- 310. - if (data.raw) {
- 311. - wkcur.wkRaw = data.raw;
- 312. - }
- 313. - if (data) {
- 314. - if (data.created && cur.chooseMedia) {
- 315. - nav.setLoc(extend(nav.objLoc, {w:'note'+data.raw}));
- 316. - if (!autosave) {
- 317. - WkView.hide(false, true);
- 318. - }
- 319. - cur.pbNoteAdded = data;
- 320. - cur.chooseMedia('note', data.raw, data);
- 321. - return true;
- 322. - } else {
- 323. - var title = ge('share_note_title'+data['raw']);
- 324. - if (title && !autosave) {
- 325. - title.innerHTML = data['title'];
- 326. - }
- 327. - if (data['title']) {
- 328. - val('wk_layer_title', data['title']);
- 329. - }
- 330. - if (wkcur.note && wkcur.toStatus && !autosave) {
- 331. - WkView.hide(false, true);
- 332. - if (wkcur.reloadOnSave) {
- 333. - boxRefreshCoords(boxLoader);
- 334. - show(boxLoader);
- 335. - show(boxLayerWrap);
- 336. - nav.reload({
- 337. - onDone: function() {
- 338. - hide(boxLoader);
- 339. - hide(boxLayerWrap);
- 340. - }
- 341. - });
- 342. - }
- 343. - return true;
- 344. - }
- 345. - }
- 346. - }
- 347. - if (autosave) return true;
- 348. - setTimeout(function() {
- 349. - fadeOut(saveEl, 200);
- 350. - }, 1500);
- 351. - },
- 352. - showProgress: function() {
- 353. - !autosave && lockButton(ge('wk_layer_save'));
- 354. - },
- 355. - hideProgress: function() {
- 356. - !autosave && unlockButton(ge('wk_layer_save'));
- 357. - },
- 358. - onFail: WkView.showError
- 359. - })
- 360. - },
- 361. -
- 362. - show: function(title, html, options, script, ev) {
- 363. - // var previous = false;
- 364. - var arrowOver = window.wkcur && wkcur.arrowOver;
- 365. - if (!window.wkcur) {
- 366. - this.init();
- 367. - } else {
- 368. - if (wkcur.shown && !isVisible(wkLayerWrap)) {
- 369. - debugLog('hiding old wkview');
- 370. - WkView.hide(true, true);
- 371. - }
- 372. - each (wkcur._hide || [], function (k, hideCallback) {
- 373. - if (isFunction(hideCallback)) hideCallback();
- 374. - });
- 375. - // previous = {
- 376. - // scrollTop: wkLayer.scrollTop,
- 377. - // cont: wkcur.wkCont,
- 378. - // cur: wkcur
- 379. - // };
- 380. - }
- 381. - var hlen = (window.wkcur && wkcur.historyLen) ? wkcur.historyLen : 0;
- 382. - if (!window.wkcur || !wkcur.doBack && !options.fromlist) {
- 383. - hlen += 1;
- 384. - }
- 385. -
- 386. - var toQueue = options.queue;
- 387. - if (toQueue) {
- 388. - layerQueue.push();
- 389. - options.queue = false;
- 390. - }
- 391. - if ((window.wkcur || {}).shown && wkcur.root) {
- 392. - nav.setLoc(wkcur.prevLoc);
- 393. - }
- 394. -
- 395. - window.wkcur = {
- 396. - historyLen: hlen,
- 397. - _hide: [],
- 398. - _show: []
- 399. - };
- 400. -
- 401. - if (browser.iphone || browser.ipad) {
- 402. - cur.wkStartScroll = scrollGetY();
- 403. - }
- 404. -
- 405. - if (options.edit) {
- 406. - cur._editMode = function() {
- 407. - return true;
- 408. - }
- 409. - if (!window.WkEditor) {
- 410. - stManager.add(['wk_editor.js', 'wk_editor.css'], WkView.show.pbind(title, html, options, script, ev));
- 411. - return false;
- 412. - }
- 413. - }
- 414. -
- 415. - cur.cancelTooltip = true;
- 416. - if (window.tooltips) {
- 417. - tooltips.hideAll();
- 418. - }
- 419. -
- 420. - if (!isVisible(wkLayerWrap)) {
- 421. - otherList = true;
- 422. - addEvent(window, 'resize', WkView.onResize);
- 423. - addEvent(wkLayerWrap, 'click', WkView.onClick);
- 424. - boxQueue.hideAll();
- 425. - WkView.showLayer();
- 426. - }
- 427. -
- 428. - wkcur.noLocChange = 0; // do return location
- 429. - wkcur.noHistory = options.noLocChange;
- 430. -
- 431. - wkcur.shown = true;
- 432. -
- 433. - if (wkcur.edit) {
- 434. - wkcur.edit = false;
- 435. - ge('wk_edit_link').innerHTML = wkcur.editLang;
- 436. - }
- 437. - extend(wkcur, options);
- 438. -
- 439. - if (wkcur.root) {
- 440. - cur.nav.push(function(ch, old, nw, opts) {
- 441. - nw = nav.toStr(nw);
- 442. - if (nw == wkcur.prevLoc) {
- 443. - WkView.hide(true);
- 444. - return false;
- 445. - }
- 446. - });
- 447. - if (!options.noLocChange && options.myLoc) nav.setLoc(options.myLoc);
- 448. - } else {
- 449. - WkView.setLocation(options.noLocChange, toQueue);
- 450. - if (options.prevLoc) wkcur.prevLoc = options.prevLoc;
- 451. - }
- 452. -
- 453. - if (ev && ev.pageX && ev.pageY) {
- 454. - extend(wkcur, {oldX: ev.pageX, oldY: ev.pageY, oldT: vkNow()});
- 455. - }
- 456. -
- 457. - var colorClass = wkcur.layerLight ? 'wk_light' : 'wk_dark';
- 458. -
- 459. - addClass(wkLayerWrap, colorClass);
- 460. - addClass(layerBG, colorClass);
- 461. -
- 462. - var content = html,
- 463. - editLink = getLang('global_edit'),
- 464. - hideLeft = wkcur.historyLen > 1 ? '' : 'display: none;';
- 465. - if (options.type == 'wall') {
- 466. - addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 467. - addEvent(window, 'resize', WkView.onResize);
- 468. - WkView.wallBeforeInitPost(options);
- 469. - } else if (options.edit) {
- 470. - addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 471. - addEvent(window, 'resize', WkView.onResize);
- 472. - editLink = options.lang['pages_view'];
- 473. - wkcur.editLang = getLang('global_edit');
- 474. - } else {
- 475. - if (options) {
- 476. - content = '<div class="wk_text wk_wiki_content' + (options.className ? ' '+options.className : '') + '" onclick="return WkView.wikiClick(this, event);">' + content + '</div>';
- 477. - }
- 478. - }
- 479. -
- 480. - if (wkcur.wkCont) {
- 481. - wkcur.wkContent.innerHTML = content;
- 482. - ge('wk_layer_title').innerHTML = title;
- 483. - } else {
- 484. - wkLayer.innerHTML = '<div class="wk_cont">\
- 485. - <table cellspacing="0" cellpadding="0" class="wk_cont_t wk_cont_top_t">\
- 486. - <tr><td class="sidesh s1"><div class="sidesh_filler"></div></td><td>\
- 487. - <table cellspacing="0" cellpadding="0" class="wk_cont_t">\
- 488. - <tr><td>\
- 489. - <table cellspacing="0" cellpadding="0" class="wk_cont_t">\
- 490. - <tr><td colspan="3" class="bottomsh s3"><div></div></td></tr>\
- 491. - <tr><td class="sidesh s3"><div class="sidesh_filler"></div></td><td>\
- 492. - \
- 493. - <div id="wk_box" onclick="wkcur.wkClicked = true;">\
- 494. - <div id="wk_loader"></div>\
- 495. - <a id="wk_close_link" href="javascript: return false;" class="fl_r wk_close_link" onclick="return WkView.hide(false, true, event);">\
- 496. - '+getLang('global_close')+'\
- 497. - </a>\
- 498. - <div class="fl_r divide wk_edit_divide">|</div>\
- 499. - <a class="fl_r wk_edit_link" id="wk_edit_link" onclick="return WkView.edit();">\
- 500. - '+editLink+'\
- 501. - </a>\
- 502. - <div id="wk_summary" class="fl_l"><span class="summary" id="wk_layer_title">'+title+'</span></div>\
- 503. - <div id="wk_content">'+content+'</div>\
- 504. - <div class="clear"></div>\
- 505. - </div>\
- 506. - \
- 507. - </td><td class="sidesh s3"><div class="sidesh_filler"></div></td></tr>\
- 508. - <tr><td colspan="3" class="bottomsh s3"><div></div></td></tr></table>\
- 509. - </td></tr>\
- 510. - <tr><td colspan="3" class="bottomsh s2"><div></div></td></tr></table>\
- 511. - </td><td class="sidesh s1"><div class="sidesh_filler"></div></td></tr>\
- 512. - <tr><td colspan="3" class="bottomsh s1"><div></div></td></tr></table>\
- 513. - </div>\
- 514. - <div id="wk_left" style="'+hideLeft+'" class="wk_left no_select"></div>\
- 515. - <div id="wk_right" class="wk_close no_select"></div>\
- 516. - <div id="wk_left_arrow" class="no_select"></div>\
- 517. - <div id="wk_right_arrow" class="no_select"></div>\
- 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>\
- 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>\
- 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>\
- 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>';
- 522. -
- 523. - extend(wkcur, {
- 524. - wkCont: wkLayer.firstChild,
- 525. - wkBox: ge('wk_box'),
- 526. -
- 527. - mvLoader: ge('wk_loader'),
- 528. - wkContent: ge('wk_content'),
- 529. -
- 530. - wkLeftNav: ge('wk_left_nav'),
- 531. - wkRightNav: ge('wk_right_nav'),
- 532. - wkLeft: ge('wk_left'),
- 533. - wkRight: ge('wk_right'),
- 534. - wkLeftArrow: ge('wk_left_arrow'),
- 535. - wkRightArrow: ge('wk_right_arrow'),
- 536. - wkLeftArrowBg: ge('wk_left_arrow_bg'),
- 537. - wkRightArrowBg: ge('wk_right_arrow_bg')
- 538. - });
- 539. - }
- 540. - toggle('wk_summary', title);
- 541. -
- 542. - if (wkcur.commonClass) {
- 543. - addClass(wkcur.wkBox, wkcur.commonClass);
- 544. - } else {
- 545. - wkcur.wkBox.className = '';
- 546. - }
- 547. -
- 548. - if (wkcur.canEdit && !wkcur.toStatus && wkcur.type != 'wall') {
- 549. - addClass(wkcur.wkBox, 'wk_view_edit_link');
- 550. - } else {
- 551. - removeClass(wkcur.wkBox, 'wk_view_edit_link');
- 552. - }
- 553. -
- 554. - if (browser.mobile) {
- 555. - wkcur.wkYOffset = intval(window.pageYOffset);
- 556. - wkcur.wkCont.style.paddingTop = (wkcur.wkYOffset + 10) + 'px';
- 557. - wkcur.wkRightNav.style.top = (wkcur.wkYOffset + 10) + 'px';
- 558. - }
- 559. -
- 560. - if (script) {
- 561. - eval(script);
- 562. - }
- 563. - WkView.updateSize();
- 564. -
- 565. - removeEvent(document, 'keydown', WkView.onKeyDown);
- 566. - addEvent(document, 'keydown', WkView.onKeyDown);
- 567. -
- 568. - options.onLoaded && options.onLoaded();
- 569. -
- 570. - var closeLink = ge('wk_close_link');
- 571. - if (closeLink) {
- 572. - closeLink.focus();
- 573. - }
- 574. -
- 575. - WkView.updateArrows();
- 576. -
- 577. - if (options.type == 'wall') {
- 578. - WkView.wallAfterInitPost();
- 579. - } else if (options.toScroll) {
- 580. - wkLayerWrap.scrollTop = options.toScroll;
- 581. - wkcur.toScroll = 0;
- 582. - }
- 583. -
- 584. - if (arrowOver !== undefined) {
- 585. - WkView.activateArrow(arrowOver);
- 586. - }
- 587. - if (options.fromlist) {
- 588. - WkView.preloadArrow(options.fromlist == 1);
- 589. - }
- 590. - var _a = window.audioPlayer, aid = currentAudioId();
- 591. - if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
- 592. -
- 593. - return false;
- 594. - },
- 595. -
- 596. - hide: function(noLoc, force, ev) {
- 597. - if (!window.wkcur || !force && !wkcur.shown) return;
- 598. - var doUpdAds = !wkcur.wkRaw.match(/^recom_apps\d+$/) && !wkcur.wkRaw.match(/^app\d+$/);
- 599. -
- 600. - clearTimeout(wkcur.autosaveTimeout);
- 601. - clearTimeout(wkcur.showT);
- 602. -
- 603. - /*if (!wkcur.noHistory && !noLoc) {
- 604. - wkcur.noHistory = 1;
- 605. - wkcur.forceHistoryHide = force;
- 606. - __adsUpdate('lazy');
- 607. - return history.go(-1);
- 608. - }
- 609. - if (wkcur.forceHistoryHide) {
- 610. - force = wkcur.forceHistoryHide;
- 611. - wkcur.forceHistoryHide = false;
- 612. - }*/
- 613. -
- 614. - if (!force && wkcur.edit && wkcur.editor) {
- 615. - if (wkcur.editor.changed) {
- 616. - if (wkcur.note && wkcur.toStatus) {
- 617. - WkView.saveInfo();
- 618. - return;
- 619. - } else {
- 620. - var box = showFastBox(wkcur.lang['pages_close_title'], wkcur.lang['pages_close_text'], getLang('box_yes'), function() {
- 621. - box.hide();
- 622. - WkView.hide(noLoc, true);
- 623. - }, getLang('box_no'))
- 624. - return;
- 625. - }
- 626. - }
- 627. - }
- 628. -
- 629. - each (wkcur._hide || [], function (k, hideCallback) {
- 630. - if (isFunction(hideCallback)) hideCallback();
- 631. - });
- 632. -
- 633. - var donthide = false;
- 634. - if (isVisible(wkLayerWrap)) {
- 635. - setTimeout(layerQueue.pop, 0);
- 636. - donthide = layerQueue.count() && layerQueue._layers[layerQueue._layers.length - 1][0] == 'wiki' && !layerQueue._bl;
- 637. - if (!donthide) {
- 638. - layers.wraphide(wkLayerWrap);
- 639. - layers.fullhide = false;
- 640. - }
- 641. - }
- 642. -
- 643. - if (window.tooltips) {
- 644. - tooltips.destroy(this);
- 645. - }
- 646. -
- 647. - removeEvent(document, 'keydown', WkView.onKeyDown);
- 648. -
- 649. - wkcur.editorLayer = false;
- 650. - removeClass(wkcur.wkContent, 'wk_top_fixed');
- 651. - wkcur.fixedTop = wkcur.fixedBottom = false;
- 652. -
- 653. - if (!donthide) {
- 654. - var colorClass = wkcur.layerLight ? 'wk_light' : 'wk_dark';
- 655. - removeClass(wkLayerWrap, colorClass);
- 656. - removeClass(layerBG, colorClass);
- 657. -
- 658. - wkcur.shown = false;
- 659. - removeEvent(wkLayerWrap, 'click', WkView.onClick);
- 660. - removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 661. - wkcur.wkContent.innerHTML = '';
- 662. - }
- 663. - wkcur.wkClicked = false;
- 664. -
- 665. - wkcur.changeCanvasSize = false;
- 666. -
- 667. - if (wkcur.onHide && isFunction(wkcur.onHide)) {
- 668. - wkcur.onHide();
- 669. - }
- 670. -
- 671. - cur._editMode = false;
- 672. -
- 673. - if (wkcur.root && noLoc !== true) {
- 674. - WkView.backLocation();
- 675. - } else if (!wkcur.noLocChange && noLoc !== true) {
- 676. - if (noLoc === 2) {
- 677. - nav.setLoc(hab.getLoc());
- 678. - } else {
- 679. - WkView.backLocation();
- 680. - }
- 681. - if (doUpdAds) {
- 682. - __adsUpdate('lazy');
- 683. - }
- 684. - } else if (doUpdAds) {
- 685. - __adsUpdate();
- 686. - }
- 687. -
- 688. - if (browser.iphone || browser.ipad) {
- 689. - var scroll = scrollGetY();
- 690. - if (Math.abs(scroll - cur.wkStartScroll) > 500) {
- 691. - scrollToY(cur.wkStartScroll, 0);
- 692. - }
- 693. - }
- 694. - delete wkcur.historyLen;
- 695. - var _a = window.audioPlayer, aid = currentAudioId();
- 696. - if (_a && aid && _a.showCurrentTrack) _a.showCurrentTrack();
- 697. - return false;
- 698. - },
- 699. -
- 700. - cmp: function(id1, id2) {
- 701. - var l1 = id1.length, l2 = id2.length;
- 702. - if (l1 < l2) {
- 703. - return -1;
- 704. - } else if (l1 > l2) {
- 705. - return 1;
- 706. - } else if (id1 < id2) {
- 707. - return -1;
- 708. - } else if (id1 > id2) {
- 709. - return 1;
- 710. - }
- 711. - return 0;
- 712. - },
- 713. -
- 714. -
- 715. - onClick: function(e) {
- 716. - if (wkcur.wkClicked || wkcur.noClickHide) {
- 717. - wkcur.wkClicked = false;
- 718. - return;
- 719. - }
- 720. - var dx = Math.abs(e.pageX - intval(wkcur.oldX));
- 721. - var dy = Math.abs(e.pageY - intval(wkcur.oldY));
- 722. - if (dx > 3 || dy > 3) {
- 723. - if (vkNow() - intval(wkcur.oldT) > 300) {
- 724. - WkView.hide();
- 725. - }
- 726. - }
- 727. - },
- 728. -
- 729. - onKeyDown: function(e) {
- 730. - e = e || window.event;
- 731. - // debugLog(e.type, e.returnValue, e.keyCode, e, WkView.edit);
- 732. - if (e.returnValue === false) return false;
- 733. - if (!cur.pvShown && e.keyCode == KEY.ESC) {
- 734. - WkView.hide();
- 735. - return cancelEvent(e);
- 736. - }
- 737. - if (!cur.pvShown && (!wkcur.edit && (e.keyCode == KEY.LEFT || e.keyCode == KEY.RIGHT))) {
- 738. - var target = e && e.target || e.srcElement;
- 739. - if (target && (target.tagName == 'TEXTAREA' || target.tagName == 'INPUT' || target.tagName == 'DIV' && target.contentEditable)) {
- 740. - return true;
- 741. - }
- 742. - WkView.navigate(null, e, e.keyCode == KEY.RIGHT ? 1 : -1);
- 743. - return cancelEvent(e);
- 744. - }
- 745. - if (WkView.edit) {
- 746. - if (e.keyCode == 10 || e.keyCode == 13 && (e.ctrlKey || e.metaKey && browser.mac)) {
- 747. - WkView.saveInfo();
- 748. - }
- 749. - if (cur.updTimeout) return;
- 750. - cur.updTimeout = setTimeout(function() {
- 751. - WkView.onResize()
- 752. - cur.updTimeout = false;
- 753. - }, 200);
- 754. - }
- 755. - },
- 756. -
- 757. - onResize: function() {
- 758. - var dwidth = lastWindowWidth, dheight = lastWindowHeight, sbw = sbWidth();
- 759. -
- 760. - var w = dwidth - sbw - 2 - 120 - 34 - 50, h = dheight - 31 - 28 - 72;
- 761. - if (w > 1280) { // less than full hd - not size > 2
- 762. - w = 1280;
- 763. - } else if (w > 807 && w < 907) { // 1024x768 - not size > 1
- 764. - w = 807;
- 765. - } else if (w < 604) {
- 766. - w = 604;
- 767. - }
- 768. - if (h < 453) {
- 769. - h = 453;
- 770. - }
- 771. - wkcur.mvWidth = w;
- 772. - wkcur.mvHeight = h;
- 773. -
- 774. - var sizeChanged = false, oldverybig = wkcur.mvVeryBig;
- 775. - wkcur.mvVeryBig = (w > 1280) ? 2 : (w > 807 ? 1 : false);
- 776. - sizeChanged = (oldverybig != wkcur.mvVeryBig);
- 777. - WkView.onScroll(false, true);
- 778. -
- 779. - WkView.updateHeight();
- 780. - WkView.updateArrows();
- 781. - },
- 782. -
- 783. -
- 784. - updateArrows: function() {
- 785. - var sbw = sbWidth() + 2;
- 786. - if (wkcur.wkLeft) {
- 787. - wkcur.wkLeft.style.left = '20px';
- 788. - }
- 789. - var size = getSize(wkcur.wkBox),
- 790. - width = size[0],
- 791. - height = size[1];
- 792. - wkcur.wkLeftNav.style.width = Math.floor((lastWindowWidth - sbw - width - 2) / 2) + 'px';
- 793. - wkcur.wkRightNav.style.left = Math.floor((lastWindowWidth - sbw + width + 2) / 2) + 'px';
- 794. - wkcur.wkRightNav.style.width = Math.floor((lastWindowWidth - sbw - width - 2) / 2) + 'px';
- 795. - if (wkcur.wkClose) {
- 796. - wkcur.wkClose.style.left = (lastWindowWidth - sbw - 2 - 37) + 'px';
- 797. - }
- 798. -
- 799. - var arrowActions = WkView.getNextWkRaws();
- 800. - if (arrowActions[0] || arrowActions[1]) {
- 801. - var arrowTop = (wkcur.wkCont.offsetHeight < lastWindowHeight ? wkcur.wkCont.offsetTop + 10 + (height / 2) : lastWindowHeight / 2) - 8;
- 802. - if (arrowActions[0]) {
- 803. - show(wkcur.wkLeftArrow);
- 804. - show(wkcur.wkLeftArrowBg);
- 805. -
- 806. - setStyle(wkcur.wkLeftArrowBg, {left: (lastWindowWidth - sbw - width) / 2 - 90});
- 807. - setStyle(wkcur.wkLeftArrow, {left: (lastWindowWidth - sbw - width) / 2 - 52, top: arrowTop});
- 808. - } else {
- 809. - hide(wkcur.wkLeftArrow, wkcur.wkLeftArrowBg);
- 810. - }
- 811. -
- 812. - if (arrowActions[1]) {
- 813. - show(wkcur.wkRightArrow);
- 814. - show(wkcur.wkRightArrowBg);
- 815. - setStyle(wkcur.wkRightArrowBg, {left: (lastWindowWidth - sbw - width) / 2 + width});
- 816. - setStyle(wkcur.wkRightArrow, {left: (lastWindowWidth - sbw - width) / 2 + width + 36, top: arrowTop});
- 817. - } else {
- 818. - hide(wkcur.wkRightArrow, wkcur.wkRightArrowBg);
- 819. - }
- 820. - } else {
- 821. - hide(wkcur.wkLeftArrow, wkcur.wkLeftArrowBg, wkcur.wkRightArrow, wkcur.wkRightArrowBg);
- 822. - }
- 823. - },
- 824. - getNextWkRaws: function () {
- 825. - var wkRawPrevious = wkRawNext = false;
- 826. - if (isArray(wkcur.wkRawList) && wkcur.historyLen <= 1 && !wkcur.wkRawLoading) {
- 827. - var len = wkcur.wkRawList.length,
- 828. - pos = indexOf(wkcur.wkRawList, wkcur.wkRaw);
- 829. - if (pos > 0) {
- 830. - wkRawPrevious = wkcur.wkRawList[pos - 1];
- 831. - }
- 832. - if (pos >= 0 && pos < len - 1) {
- 833. - wkRawNext = wkcur.wkRawList[pos + 1];
- 834. - }
- 835. - }
- 836. - return [wkRawPrevious, wkRawNext];
- 837. - },
- 838. - navigate: function (el, event, delta) {
- 839. - if (event && event.type == 'click') {
- 840. - wkcur.arrowOver = (delta == 1);
- 841. - wkcur.arrowClicked = vkNow();
- 842. - }
- 843. - var actions = WkView.getNextWkRaws();
- 844. - if (delta > 0 && actions[1]) {
- 845. - wkcur.wkRawLoading = true;
- 846. - addClass(wkcur.wkRightArrow, 'wk_arrow_progress');
- 847. - // debugLog(wkcur.wkRightArrow, wkcur.wkRightArrow.className);
- 848. - showWiki({w: actions[1]}, false, false, {fromlist: 1, noloader: true, preload: {cache: 1}});
- 849. - cancelEvent(event);
- 850. - }
- 851. - if (delta < 0 && actions[0]) {
- 852. - wkcur.wkRawLoading = true;
- 853. - addClass(wkcur.wkLeftArrow, 'wk_arrow_progress');
- 854. - showWiki({w: actions[0]}, false, false, {fromlist: -1, noloader: true, preload: {cache: 1}});
- 855. - cancelEvent(event);
- 856. - }
- 857. - },
- 858. -
- 859. - updateHeight: function() {
- 860. - window.updateWndVScroll && updateWndVScroll();
- 861. -
- 862. - var h = Math.max(wkcur.wkCont.offsetHeight, lastWindowHeight);
- 863. - wkcur.wkLeftNav.style.height = wkcur.wkRightNav.style.height = h + 'px';
- 864. -
- 865. - var boxH = wkcur.wkBox.offsetHeight + 2;
- 866. - setStyle(wkcur.wkLeftArrowBg.firstChild, {height: boxH});
- 867. - setStyle(wkcur.wkRightArrowBg.firstChild, {height: boxH});
- 868. - },
- 869. -
- 870. - updateSize: function() {
- 871. - var size = getSize(wkcur.wkCont);
- 872. -
- 873. - var docEl = document.documentElement,
- 874. - ch = window.innerHeight || docEl.clientHeight || bodyNode.clientHeight,
- 875. - top = Math.max(positive((ch - size[1] - 5) / 2), 14),
- 876. - paddingTop = top + 10,
- 877. - paddingBottom = wkLayer.offsetHeight - size[1] + top + 90;
- 878. -
- 879. - wkcur.wkCont.style.top = top + 'px';
- 880. - wkcur.wkLeftArrowBg.style.paddingTop = wkcur.wkRightArrowBg.style.paddingTop = paddingTop + 'px';
- 881. - wkcur.wkLeftArrowBg.style.paddingBottom = wkcur.wkRightArrowBg.style.paddingBottom = paddingBottom + 'px';
- 882. -
- 883. - onBodyResize();
- 884. - WkView.onResize();
- 885. - },
- 886. -
- 887. -
- 888. - setLocation: function(noLocChange, toQueue) {
- 889. - wkcur.prevLoc = {};
- 890. - for (var i in nav.objLoc) {
- 891. - if (i != 'w' || nav.objLoc[i] != wkcur.wkRaw && toQueue) {
- 892. - wkcur.prevLoc[i] = nav.objLoc[i];
- 893. - }
- 894. - }
- 895. - if (noLocChange) {
- 896. - return;
- 897. - }
- 898. -
- 899. - var nl = extend(nav.objLoc, {'w': wkcur.wkRaw});
- 900. - delete(nl.z);
- 901. - if (nav.strLoc != nav.toStr(nl)) {
- 902. - nav.setLoc(nl);
- 903. - }
- 904. -
- 905. - //wkcur.noHistory = 0;
- 906. - },
- 907. -
- 908. - backLocation: function() {
- 909. - var loc = hab.getLoc();
- 910. - if (wkcur.prevLoc && wkcur.prevLoc != loc) {
- 911. - // if (wkcur.previousLayer) {
- 912. - // nav.go(wkcur.prevLoc);
- 913. - // } else {
- 914. - nav.setLoc(wkcur.prevLoc);
- 915. - // }
- 916. - // if (wkcur.previousLayer && wkcur.prevLoc.z) {
- 917. - // zNav({z: wkcur.prevLoc.z});
- 918. - // }
- 919. - } else {
- 920. - var locParts = loc.split('/');
- 921. - if (locParts.length > 1) {
- 922. - nav.setLoc(locParts[0]);
- 923. - }
- 924. - }
- 925. - layerQueue.noHistory();
- 926. - },
- 927. -
- 928. - showError: function(txt) {
- 929. - if (window.wkcur) {
- 930. - delete wkcur.wkRawLoading;
- 931. - addClass(wkcur.wkRightArrow, 'wk_arrow_progress');
- 932. - addClass(wkcur.wkLeftArrow, 'wk_arrow_progress');
- 933. - }
- 934. - var box = showFastBox({title: getLang('global_error')}, txt, getLang('global_close'));
- 935. - setTimeout(box.hide, 2000);
- 936. - return true;
- 937. - },
- 938. -
- 939. - wysiwygInit: function() {
- 940. - if (browser.ipod || browser.ipad || browser.iphone) return;
- 941. - var simpleToolBar = 'bold,italic,gray,underline,strike,left,center,right,marker_list,numeric_list,h1,h2,h3,image,video,audio,link,unlink';
- 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,';
- 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';
- 944. - window.editorName = 'pageWysiwyg';
- 945. - var editorParams = {
- 946. - editorName: editorName,
- 947. - replaceElemID: 'pages_html',
- 948. - contentCSS: '/css/al/wysiwyg.css',
- 949. - html: ge('pages_html').value,
- 950. - wiki: ge('pages_body') ? ge('pages_body').value : '',
- 951. - height: 326,
- 952. - simpleToolBar: simpleToolBar,
- 953. - extendedToolBar: extendedToolBar,
- 954. - defaultMode: 'simple',
- 955. - skinFile: 'pages',
- 956. - photoMinSize: { w: 50, h: 50 },
- 957. - photoMaxSize: { w: 607, h: 500 },
- 958. - userID: 0,
- 959. - userName: '',
- 960. - groupID: 0,
- 961. - oid: wkcur.oid,
- 962. - debug: false,
- 963. - layer: 1,
- 964. - toolWidth: 654,
- 965. - width: 608,
- 966. - note: wkcur.note ? wkcur.wkRaw : 0,
- 967. - onHeightChange: function() {
- 968. - WkView.onScroll();
- 969. - },
- 970. - onChange: WkView.onChange
- 971. - };
- 972. - window[editorName] = wkcur.editor = new Wysiwyg(editorParams);
- 973. - },
- 974. -
- 975. - onChange: function() {
- 976. - if (!wkcur.shown) return false;
- 977. - clearTimeout(wkcur.autosaveTimeout);
- 978. - wkcur.autosaveTimeout = setTimeout(function() {
- 979. - if (wkcur.note && wkcur.toStatus) {
- 980. - WkView.saveInfo(true);
- 981. - }
- 982. - }, 4000);
- 983. - },
- 984. -
- 985. - likeOver: function() {
- 986. - var icon = ge('wk_like_icon');
- 987. - if (!wkcur.liked) {
- 988. - setTimeout(animate.pbind(icon, {opacity: 1}, 200, false), 1);
- 989. - } else {
- 990. - setStyle(icon, {opacity: 1});
- 991. - }
- 992. - var linkSize = getSize(ge('wk_like_link'));
- 993. - var linkW = linkSize ? linkSize[0] : 20;
- 994. -
- 995. - showTooltip(icon.parentNode, {
- 996. - url: 'like.php',
- 997. - params: {act: 'a_get_stats', object: wkcur.like_obj || wkcur.wkRaw, from: 'wkview'},
- 998. - slide: 15,
- 999. - shift: [0, 8, 9],
- 1000. - ajaxdt: 100,
- 1001. - showdt: 400,
- 1002. - hidedt: 200,
- 1003. - className: 'rich like_tt',
- 1004. - init: function (tt) {
- 1005. - if (!tt.container) return;
- 1006. - var bp = geByClass1('bottom_pointer', tt.container, 'div');
- 1007. - var tp = geByClass1('top_pointer', tt.container, 'div');
- 1008. - setStyle(bp, {marginLeft: linkW + 2});
- 1009. - setStyle(tp, {marginLeft: linkW + 2});
- 1010. - }
- 1011. - });
- 1012. - },
- 1013. -
- 1014. - likeOut: function() {
- 1015. - if (!wkcur.liked) {
- 1016. - setTimeout(animate.pbind(ge('wk_like_icon'), {opacity: 0.4}, 200, false), 1);
- 1017. - }
- 1018. - },
- 1019. -
- 1020. - like: function() {
- 1021. - if (!vk.id) return;
- 1022. - var my = !wkcur.liked;
- 1023. -
- 1024. - ajax.post('like.php', {act: 'a_do_' + (my ? '' : 'un') + 'like', object: wkcur.like_obj || wkcur.wkRaw, hash: wkcur.likehash, from: 'wkview'}, {
- 1025. - onDone: function(count, title) {
- 1026. - return WkView.likeUpdate(my, count, title);
- 1027. - wkcur.likes = count;
- 1028. - wkcur.liked = my;
- 1029. - }
- 1030. - });
- 1031. - WkView.likeUpdate(my, wkcur.likes + (my ? 1 : -1));
- 1032. - },
- 1033. - likeShare: function(hash) {
- 1034. - var like_obj = wkcur.like_obj || wkcur.wkRaw,
- 1035. - el = ge('like_share_' + like_obj),
- 1036. - was = isChecked(el);
- 1037. - checkbox(el);
- 1038. - ajax.post('like.php', {act: 'a_do_' + (was ? 'un' : '') + 'publish', object: like_obj, hash: hash}, {
- 1039. - onDone: WkView.likeUpdate.pbind(true)
- 1040. - });
- 1041. - var countInput = ge('like_real_count_' + like_obj),
- 1042. - count = countInput ? countInput.value : val('like_count' + like_obj),
- 1043. - my = hasClass(ge('like_icon' + like_obj), 'my_like');
- 1044. -
- 1045. - WkView.likeUpdate(true, intval(count) + (my ? 0 : 1));
- 1046. - },
- 1047. - likeShareCustom: function () {
- 1048. - if (vk.id) {
- 1049. - showBox('like.php', {act: 'publish_box', object: wkcur.like_obj || wkcur.wkRaw, list: '', from: 'wkview'});
- 1050. - }
- 1051. - },
- 1052. -
- 1053. - likeUpdate: function(my, count, title) {
- 1054. - count = intval(count);
- 1055. -
- 1056. - var rows = ge('like_table_' + (wkcur.like_obj || wkcur.wkRaw));
- 1057. - var titleNode = ge('like_title_' + (wkcur.like_obj || wkcur.wkRaw)),
- 1058. - countNode = ge('wk_like_count');
- 1059. - var icon = ge('wk_like_icon');
- 1060. - var tt = icon.parentNode.tt || {}, opts = clone(tt.opts || {}), newleft = (my ? 0 : -36);
- 1061. -
- 1062. - if (title && titleNode) {
- 1063. - val(titleNode, title);
- 1064. - }
- 1065. - wkcur.likes = count;
- 1066. - animateCount(countNode, count);
- 1067. -
- 1068. - wkcur.liked = my;
- 1069. - toggleClass(icon, 'my_like', my);
- 1070. - if (my) {
- 1071. - setStyle(icon, {opacity: 1});
- 1072. - }
- 1073. - if (count) {
- 1074. - var styleName = wkcur.rtl ? 'right' : 'left';
- 1075. - if (tt.el && !isVisible(tt.container) && !title) {
- 1076. - rows.style[styleName] = newleft + 'px';
- 1077. - tooltips.show(tt.el, extend(opts, {showdt: 0}));
- 1078. - } else if (rows) {
- 1079. - var params = {};
- 1080. - params[styleName] = newleft;
- 1081. - animate(rows, params, 200);
- 1082. - }
- 1083. - removeClass(icon, 'no_likes');
- 1084. - } else {
- 1085. - if (tt.el) tt.hide();
- 1086. - addClass(icon, 'no_likes');
- 1087. - }
- 1088. - },
- 1089. -
- 1090. - showLikesPage: function(like_obj, published, offset) {
- 1091. - cur.likesBox.loadTabContent('like.php', {act: 'a_get_members', object: like_obj, published: published, offset: offset, wall: 1}, published);
- 1092. - },
- 1093. -
- 1094. - extPageSubscribe: function(btn, oid, hash, msg) {
- 1095. - var reqOptions = {
- 1096. - showProgress: lockButton.pbind(btn),
- 1097. - hideProgress: unlockButton.pbind(btn),
- 1098. - onDone: function () {
- 1099. - showDoneBox(msg, {w: 500, out: 5000});
- 1100. - removeClass(btn.parentNode.parentNode.parentNode.parentNode, 'wk_extpage_head_unsubscribed');
- 1101. - }
- 1102. - };
- 1103. - if (oid > 0) {
- 1104. - ajax.post('al_friends.php', {act: 'add', mid: oid, hash: hash, from: 'wkview_extpage'}, reqOptions);
- 1105. - } else {
- 1106. - ajax.post('al_groups.php', {act: 'a_enter', gid: -oid, hash: hash, from: 'wkview_extpage'}, reqOptions);
- 1107. - }
- 1108. - },
- 1109. -
- 1110. - wallBeforeInitPost: function (opts) {
- 1111. - if (window.tooltips) tooltips.destroyAll();
- 1112. -
- 1113. - if (wkcur.postInited) {
- 1114. - return false;
- 1115. - }
- 1116. - wkcur.pageReplaced = [];
- 1117. - var post = wkcur.post,
- 1118. - postEl, size, postPlaceholder;
- 1119. - while (true) {
- 1120. - postEl = ge('post' + post);
- 1121. - if (!postEl && cur.onepost && post == (cur.oid + '_' + cur.pid)) {
- 1122. - postEl = ge('fw_post');
- 1123. - }
- 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');
- 1125. - if (!postEl) {
- 1126. - break;
- 1127. - }
- 1128. - size = getSize(postEl);
- 1129. - postPlaceholder = ce('div', {className: 'wk_wall_post_placeholder', id: 'wk_wall_post_placeholder_' + postEl.id}, {width: size[0], height: size[1]});
- 1130. - postEl.parentNode.replaceChild(postPlaceholder, postEl);
- 1131. - wkcur.pageReplaced.push([postEl, postPlaceholder]);
- 1132. - }
- 1133. -
- 1134. - cur.wallLayer = post;
- 1135. -
- 1136. - if (opts.options.wall_tpl) {
- 1137. - extend(window.lang, opts.lang, opts.options.wall_tpl.lang);
- 1138. - extend(wkcur, {
- 1139. - wallType: opts.options.wall_type,
- 1140. - wallTpl: opts.options.wall_tpl,
- 1141. - wallMyDeleted: {},
- 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,
- 1143. - wallMyOpened: {},
- 1144. - wallMyReplied: {},
- 1145. - wallMyRepliesCnt: 0
- 1146. - });
- 1147. - WkView.wallInitUpdates();
- 1148. - wkcur.timeUpdateInt = setInterval(function () {Wall.updateTimes(wkcur.wkContent);}, 10000);
- 1149. - }
- 1150. -
- 1151. - wkcur._hide.push(WkView.wallDeinitPost);
- 1152. -
- 1153. - wkcur.postInited = true;
- 1154. - },
- 1155. - wallAfterInitPost: function () {
- 1156. - // debugLog('wall init', clone(wkcur));
- 1157. - var post = wkcur.post,
- 1158. - rf = ge('reply_field' + post);
- 1159. -
- 1160. - if (rf) {
- 1161. - placeholderSetup(rf, {pad: {margin: 0, padding: 0}})
- 1162. - }
- 1163. - WkView.wallUpdateReplies();
- 1164. - if (wkcur.hl_reply) {
- 1165. - setTimeout(Wall.highlightReply.pbind('post' + wkcur.hl_reply), 0);
- 1166. - } else {
- 1167. - setTimeout(function () {
- 1168. - wkLayerWrap.scrollTop = wkcur.toScroll || 0;
- 1169. - wkcur.toScroll = 0;
- 1170. - }, 0);
- 1171. - }
- 1172. - },
- 1173. - wallDeinitPost: function () {
- 1174. - // debugLog('wall deinit', clone(wkcur));
- 1175. - if (!wkcur.postInited) {
- 1176. - return false;
- 1177. - }
- 1178. - cur.wallLayer = false;
- 1179. - if (wkcur.edit) {
- 1180. - Wall.cancelEdit();
- 1181. - }
- 1182. - each (wkcur.pageReplaced, function () {
- 1183. - var postEl = this[0],
- 1184. - postPlaceholder = this[1];
- 1185. - if (postEl && postPlaceholder) {
- 1186. - postPlaceholder.parentNode.replaceChild(postEl, postPlaceholder);
- 1187. - }
- 1188. - })
- 1189. -
- 1190. - clearInterval(wkcur.updatesCheckInt);
- 1191. - clearInterval(wkcur.timeUpdateInt);
- 1192. -
- 1193. - if (window.tooltips) tooltips.destroyAll();
- 1194. -
- 1195. - delete cur.editing;
- 1196. - delete wkcur.postInited;
- 1197. - },
- 1198. - wallOnEdit: function (post, options) {
- 1199. - wkcur.edit = true;
- 1200. - val('wk_edit_link', options.lang.pages_view);
- 1201. - wkcur.editor = {changed: true};
- 1202. - },
- 1203. - wallOnEdited: function (post) {
- 1204. - wkcur.edit = false;
- 1205. - val('wk_edit_link', wkcur.editLang);
- 1206. - },
- 1207. - wallFixPost: function (link, hash, value) {
- 1208. - var post = wkcur.post;
- 1209. - ajax.post('al_wall.php', {act: 'a_fix_post', post: post, hash: hash, value: value}, {
- 1210. - progress: ge('wpe_prg' + post),
- 1211. - onDone: function () {
- 1212. - val(link, wkcur.lang[value ? 'wall_unfix_post' : 'wall_fix_post']);
- 1213. - link.onclick = function () {
- 1214. - return WkView.wallFixPost(link, hash, value ? 0 : 1);
- 1215. - }
- 1216. - }
- 1217. - });
- 1218. - return false;
- 1219. - },
- 1220. - wallPostDelete: function(act, hash, force) {
- 1221. - var post = wkcur.post;
- 1222. - if (cur.wallMyDeleted) {
- 1223. - cur.wallMyDeleted[post] = 1;
- 1224. - }
- 1225. - ajax.post('al_wall.php', {act: act, post: post, hash: hash, confirm: force ? 1 : 0, from: 'wkview'}, {onDone: function(msg, deleted, need_confirm) {
- 1226. - if (need_confirm) {
- 1227. - var box = showFastBox(msg, need_confirm, getLang('global_delete'), function() { box.hide(); WkView.wallPostDelete(act, hash, 1); }, getLang('box_cancel'));
- 1228. - return;
- 1229. - }
- 1230. - var p = ge('wl_post_body');
- 1231. - if (!p) return;
- 1232. - cur.pgPaused = true;
- 1233. - hide('wl_replies_wrap', 'wl_post_actions_wrap', 'wl_reply_form_wrap');
- 1234. - var del = p.nextSibling;
- 1235. - if (del && hasClass(del, 'wl_post_deleted')) {
- 1236. - val(del, msg);
- 1237. - } else {
- 1238. - p.parentNode.insertBefore(ce('div', {id: 'post_del' + post, innerHTML: msg, className: 'wl_post_deleted'}), p.nextSibling);
- 1239. - hide(p);
- 1240. - }
- 1241. - wkLayerWrap.scrollTop = 0;
- 1242. - }, progress: ge('wpe_prg' + post)});
- 1243. - },
- 1244. - wallPostRestore: function(hash) {
- 1245. - var post = wkcur.post;
- 1246. - if (cur.wallMyDeleted) {
- 1247. - cur.wallMyDeleted[post] = 0;
- 1248. - }
- 1249. - ajax.post('al_wall.php', {act: 'restore', post: post, hash: hash, from: 'wkview'}, {onDone: function() {
- 1250. - var p = ge('wl_post_body');
- 1251. - if (!p || isVisible(p)) return;
- 1252. - cur.pgPaused = false;
- 1253. - show('wl_replies_wrap', 'wl_post_actions_wrap', 'wl_reply_form_wrap');
- 1254. - var del = p.nextSibling;
- 1255. - show(p);
- 1256. - if (del && hasClass(del, 'wl_post_deleted')) {
- 1257. - re(del);
- 1258. - }
- 1259. - }});
- 1260. - },
- 1261. - wallUpdateRepliesOnScroll: function (resize) {
- 1262. - if (!wkcur.postInited) return;
- 1263. - var wndHeight = window.innerHeight || document.documentElement.clientHeight;
- 1264. -
- 1265. - var moreLink = ge('wl_replies_more_link');
- 1266. - if (moreLink && isVisible(moreLink)) {
- 1267. - var moreLinkY = getXY(moreLink, true)[1];
- 1268. - if (wndHeight + 500 > moreLinkY) {
- 1269. - moreLink.onclick();
- 1270. - }
- 1271. - }
- 1272. -
- 1273. - var replyForm = ge('wl_reply_form');
- 1274. - if (!replyForm || hasClass(replyForm, 'wl_post_reply_form_forbidden')) {
- 1275. - return;
- 1276. - }
- 1277. - var formWrap = ge('wl_reply_form_wrap'),
- 1278. - formY = getXY(formWrap, true)[1],
- 1279. - formSize = getSize(replyForm);
- 1280. - formH = formSize[1];
- 1281. -
- 1282. - if (resize && wkcur.fixedBottom === false && wndHeight - formH < formY + 20) {
- 1283. - wkLayerWrap.scrollTop += formY + 20 - (wndHeight - formH);
- 1284. - } else if (isVisible(formWrap) && wndHeight - formH < formY) {
- 1285. - if (!wkcur.fixedBottom || resize) {
- 1286. - wkcur.fixedBottom = true;
- 1287. - addClass(replyForm, 'wl_reply_form_fixed');
- 1288. - }
- 1289. - setStyle('wl_reply_form_wrap', {width: formSize[0], height: formSize[1], bottom: bottom});
- 1290. - var bottom = Math.min(0, wndHeight - getXY('wl_replies_wrap', true)[1] - formH);
- 1291. - setStyle(replyForm, {bottom: bottom});
- 1292. - } else {
- 1293. - if (wkcur.fixedBottom || resize) {
- 1294. - wkcur.fixedBottom = false;
- 1295. - removeClass(replyForm, 'wl_reply_form_fixed');
- 1296. - setStyle('wl_reply_form_wrap', {width: '', height: ''});
- 1297. - }
- 1298. - }
- 1299. - if (resize && wkcur.fixedBottom) {
- 1300. - setStyle(replyForm, {left: getXY(wkcur.wkContent)[0] + 'px'})
- 1301. - }
- 1302. - },
- 1303. - wallShowMoreReplies: function () {
- 1304. - if (wkcur.loadingReplies) {
- 1305. - return false;
- 1306. - }
- 1307. - var newOffset = wkcur.offset + wkcur.loaded,
- 1308. - limit = wkcur.limit,
- 1309. - repliesWrap = ge('replies' + wkcur.post);
- 1310. -
- 1311. - if (wkcur.count <= newOffset || !repliesWrap) {
- 1312. - return false;
- 1313. - }
- 1314. - wkcur.loadingReplies = true;
- 1315. - Wall.moreReplies(wkcur.post, (wkcur.reverse ? -1 : 1) * newOffset, limit, {
- 1316. - from: 'wkview',
- 1317. - append: true,
- 1318. - rev: wkcur.reverse ? 1 : 0,
- 1319. - onDone: function (replies, names, data) {
- 1320. - // debugLog((wkcur.reverse ? -1 : 1) * newOffset, limit, data);
- 1321. - extend(wkcur, {
- 1322. - count: data.count,
- 1323. - loaded: wkcur.loaded + data.num
- 1324. - });
- 1325. - WkView.wallUpdateReplies();
- 1326. - wkcur.loadingReplies = false;
- 1327. - },
- 1328. - onFail: function () {
- 1329. - wkcur.loadingReplies = false;
- 1330. - },
- 1331. - showProgress: function () {
- 1332. - hide('wl_replies_more_link');
- 1333. - show('wl_replies_more_progress');
- 1334. - },
- 1335. - hideProgress: function () {
- 1336. - show('wl_replies_more_link');
- 1337. - hide('wl_replies_more_progress');
- 1338. - }
- 1339. - });
- 1340. - return false;
- 1341. - },
- 1342. - wallShowPreviousReplies: function (hlReply) {
- 1343. - if (wkcur.loadingReplies || wkcur.reverse) {
- 1344. - return false;
- 1345. - }
- 1346. - var maxLimit = 100,
- 1347. - newOffset = Math.max(0, wkcur.offset - maxLimit),
- 1348. - limit = Math.min(maxLimit, wkcur.offset - newOffset),
- 1349. - repliesWrap = ge('replies' + wkcur.post);
- 1350. -
- 1351. - if (limit <= 0 || !repliesWrap) {
- 1352. - return false;
- 1353. - }
- 1354. - wkcur.loadingReplies = true;
- 1355. - var prevH = repliesWrap.offsetHeight;
- 1356. - Wall.moreReplies(wkcur.post, newOffset, limit, {
- 1357. - from: 'wkview',
- 1358. - onDone: function (replies, names, data) {
- 1359. - extend(wkcur, {
- 1360. - count: data.count,
- 1361. - offset: data.offset,
- 1362. - loaded: wkcur.loaded + data.num
- 1363. - });
- 1364. - if (hlReply) {
- 1365. - wkLayerWrap.scrollTop += repliesWrap.offsetHeight - prevH;
- 1366. - setTimeout(Wall.highlightReply.pbind('post' + hlReply), 0);
- 1367. - }
- 1368. - WkView.wallUpdateReplies();
- 1369. - wkcur.loadingReplies = false;
- 1370. - },
- 1371. - onFail: function () {
- 1372. - wkcur.loadingReplies = false;
- 1373. - },
- 1374. - showProgress: function () {
- 1375. - hide('wl_replies_header', 'wl_replies_header_toggler');
- 1376. - show('wl_replies_previous_progress');
- 1377. - },
- 1378. - hideProgress: function () {
- 1379. - show('wl_replies_header', 'wl_replies_header_toggler');
- 1380. - hide('wl_replies_previous_progress');
- 1381. - }
- 1382. - });
- 1383. - },
- 1384. - wallUpdateReplies: function () {
- 1385. - toggle('wl_replies_more_link', wkcur.offset + wkcur.loaded < wkcur.count);
- 1386. -
- 1387. - var header = ge('wl_replies_header'),
- 1388. - label = langNumeric(wkcur.count, wkcur.lang.wall_N_replies),
- 1389. - hasPrevious = false;
- 1390. -
- 1391. - if (!wkcur.reverse && wkcur.offset > 0) {
- 1392. - if (wkcur.offset > 100) {
- 1393. - label = langNumeric(100, wkcur.lang.wall_show_n_of_m_last).replace('{count}', wkcur.count);
- 1394. - } else {
- 1395. - label = langNumeric(wkcur.count, wkcur.lang.wall_show_all_n_replies);
- 1396. - }
- 1397. - hasPrevious = true;
- 1398. - }
- 1399. - val('wl_replies_header_label', label);
- 1400. - toggleClass(header, 'wl_replies_header_clickable', hasPrevious);
- 1401. -
- 1402. - var repliesWrap = ge('wl_replies_wrap'),
- 1403. - form = ge('wl_reply_form');
- 1404. - if (wkcur.count && repliesWrap && !isVisible(repliesWrap.firstChild)) {
- 1405. - show(repliesWrap.firstChild);
- 1406. - }
- 1407. - if (form) {
- 1408. - var formPlace1 = ge('wl_reply_form_reverse_wrap'),
- 1409. - formPlace2 = ge('wl_reply_form_wrap'),
- 1410. - formPlace = wkcur.reverse && repliesWrap && isVisible(repliesWrap.firstChild) && formPlace1 || formPlace2;
- 1411. -
- 1412. - toggle(formPlace1, formPlace == formPlace1);
- 1413. - toggle(formPlace2, formPlace == formPlace2);
- 1414. - toggleClass(form, 'wl_reply_form_reversed', formPlace == formPlace1);
- 1415. - if (form.parentNode != formPlace) {
- 1416. - formPlace.appendChild(form);
- 1417. - }
- 1418. - }
- 1419. -
- 1420. - WkView.wallUpdateRepliesOnScroll();
- 1421. - WkView.updateSize();
- 1422. - },
- 1423. - wallInitUpdates: function () {
- 1424. - var key = wkcur.options.add_queue_key;
- 1425. - if (!key || !window.Notifier) {
- 1426. - return;
- 1427. - }
- 1428. - var wasKey = wkcur.wallAddQueue,
- 1429. - checkCb = function () {
- 1430. - if (wkcur.wallAddQueue) Notifier.addKey(wkcur.wallAddQueue, Wall.updated.pbind(true));
- 1431. - };
- 1432. -
- 1433. - wkcur.wallAddQueue = key;
- 1434. - checkCb();
- 1435. - wkcur.updatesCheckInt = setInterval(checkCb, 10000);
- 1436. - },
- 1437. - wallCancelEditReply: function () {
- 1438. - var post = wkcur.post,
- 1439. - rf = ge('reply_field' + post),
- 1440. - composer = rf && data(rf, 'composer');
- 1441. - if (composer) {
- 1442. - Composer.reset(composer);
- 1443. - } else {
- 1444. - val(rf, '');
- 1445. - }
- 1446. - Wall.hideEditReply(post);
- 1447. - WkView.wallUpdateReplies();
- 1448. - },
- 1449. - wallInverseReplies: function () {
- 1450. - if (wkcur.loadingReplies) {
- 1451. - return false;
- 1452. - }
- 1453. - wkcur.loadingReplies = true;
- 1454. - wkcur.reverse = !wkcur.reverse;
- 1455. - wkcur.offset = 0;
- 1456. -
- 1457. - Wall.moreReplies(wkcur.post, wkcur.offset, wkcur.limit, {
- 1458. - from: 'wkview',
- 1459. - clear: true,
- 1460. - rev: wkcur.reverse ? 1 : 0,
- 1461. - onDone: function (replies, names, data) {
- 1462. - toggleClass('wl_replies_header_toggler', 'wl_replies_header_toggler_inversed', wkcur.reverse);
- 1463. - extend(wkcur, {
- 1464. - count: data.count,
- 1465. - loaded: data.num
- 1466. - });
- 1467. - WkView.wallUpdateReplies();
- 1468. - wkcur.loadingReplies = false;
- 1469. - },
- 1470. - onFail: function () {
- 1471. - wkcur.reverse = !wkcur.reverse;
- 1472. - wkcur.loadingReplies = false;
- 1473. - },
- 1474. - showProgress: function () {
- 1475. - hide('wl_replies_header', 'wl_replies_header_toggler');
- 1476. - show('wl_replies_previous_progress');
- 1477. - },
- 1478. - hideProgress: function () {
- 1479. - show('wl_replies_header', 'wl_replies_header_toggler');
- 1480. - hide('wl_replies_previous_progress');
- 1481. - }
- 1482. - });
- 1483. - },
- 1484. -
- 1485. - likesInit: function () {
- 1486. - re(cur.lSTL);
- 1487. - extend(wkcur, {
- 1488. - phCache: {},
- 1489. - phShown: {},
- 1490. - historyLen: 0,
- 1491. -
- 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})),
- 1493. - lSTLShown: 0,
- 1494. - lSTLWas: 0,
- 1495. - lSTLWasSet: 0
- 1496. - });
- 1497. - cur.lSTL = wkcur.lSTL;
- 1498. -
- 1499. - WkView.likesTabInit();
- 1500. -
- 1501. - addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 1502. - addEvent(window, 'resize', WkView.onResize);
- 1503. - onBodyResize();
- 1504. -
- 1505. - if (!cur.wallInited) {
- 1506. - Wall.initWallOptions(wkcur.wall_opts);
- 1507. - } else {
- 1508. - wkcur._oldReplyForm = cur.wallTpl.reply_form;
- 1509. - cur.wallTpl.reply_form = wkcur.wall_opts.wall_tpl.reply_form;
- 1510. - }
- 1511. -
- 1512. - if (cur.options === undefined) {
- 1513. - cur.options = {reply_names: {}};
- 1514. - } else if (cur.options.reply_names === undefined) {
- 1515. - cur.options.reply_names = {};
- 1516. - }
- 1517. - extend(cur.options.reply_names, wkcur.reply_names);
- 1518. -
- 1519. - wkcur._hide.push(function () {
- 1520. - removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 1521. - removeEvent(window, 'resize', WkView.onResize);
- 1522. - re(wkcur.lSTL, cur.lSTL);
- 1523. - if (wkcur._oldReplyForm) {
- 1524. - cur.wallTpl.reply_form = wkcur._oldReplyForm;
- 1525. - wkcur._oldReplyForm = false;
- 1526. - }
- 1527. - });
- 1528. - },
- 1529. - likesTabInit: function () {
- 1530. - if (wkcur.preload) {
- 1531. - ajax.preload('wkview.php', {
- 1532. - act: 'show',
- 1533. - w: wkcur.wkRaw,
- 1534. - offset: wkcur.offset
- 1535. - }, wkcur.preload);
- 1536. - }
- 1537. - },
- 1538. - likesTab: function (tab) {
- 1539. - ajax.post('wkview.php', {act: 'show', w: tab + '/' + wkcur.like_obj, part: 1}, {
- 1540. - cache: 1,
- 1541. - showProgress: setStyle.pbind('wk_likes_tabs_prg', {visibility: 'visible'}),
- 1542. - hideProgress: setStyle.pbind('wk_likes_tabs_prg', {visibility: 'hidden'}),
- 1543. - onDone: function (title, content, options) {
- 1544. - val('wk_likes_title', title);
- 1545. - val('wk_likes_content', content);
- 1546. - extend(wkcur, options);
- 1547. - WkView.likesTabInit();
- 1548. -
- 1549. - var oldTab = geByClass1('summary_tab_sel', ge('wk_likes_tabs')),
- 1550. - newTab = ge('wk_likes_tab' + tab);
- 1551. - replaceClass(oldTab, 'summary_tab_sel', 'summary_tab');
- 1552. - replaceClass(newTab.parentNode, 'summary_tab', 'summary_tab_sel');
- 1553. -
- 1554. - WkView.setLocation();
- 1555. - WkView.updateHeight();
- 1556. - WkView.likesOnScroll();
- 1557. - }
- 1558. - });
- 1559. - },
- 1560. - likesPreload: function () {
- 1561. - ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: wkcur.offset}, {cache: 1});
- 1562. - },
- 1563. - likesMore: function() {
- 1564. - if (isVisible('wk_likes_more_prg')) return;
- 1565. - ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: wkcur.offset}, {
- 1566. - onDone: function(rows, newOffset, needMore, names, noReplies) {
- 1567. - var cnt = ge('wk_likes_rows');
- 1568. - if (!cnt) return;
- 1569. -
- 1570. - if (noReplies) { // show all posts with hidden replies
- 1571. - var hidden = geByClass('wk_likes_hidden', cnt);
- 1572. - for (var i = 0, l = hidden.length; i < l; ++i) {
- 1573. - cnt.appendChild(hidden[i]);
- 1574. - removeClass(hidden[i], 'wk_likes_hidden');
- 1575. - }
- 1576. - }
- 1577. -
- 1578. - cnt.appendChild(cf(rows));
- 1579. - wkcur.offset = newOffset;
- 1580. - if (needMore) {
- 1581. - WkView.likesPreload();
- 1582. - } else {
- 1583. - hide('wk_likes_more_link');
- 1584. - }
- 1585. - WkView.updateHeight();
- 1586. - if (names) {
- 1587. - extend(cur.options.reply_names, names);
- 1588. - }
- 1589. - }, showProgress: function() {
- 1590. - hide('wk_likes_more_link');
- 1591. - show('wk_likes_more_prg');
- 1592. - }, hideProgress: function() {
- 1593. - show('wk_likes_more_link');
- 1594. - hide('wk_likes_more_prg');
- 1595. - }, cache: 1
- 1596. - });
- 1597. - },
- 1598. - likesBigphOver: function(obj, uid) {
- 1599. - if (!wkcur.lang || !wkcur.lang.global_photo_full_size || browser.mobile) return;
- 1600. - var o = obj.firstChild,
- 1601. - ch = wkcur.phCache[uid];
- 1602. - if (o.tagName != 'A' || o.className != 'wk_likes_likerph') {
- 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);
- 1604. - o.onclick = WkView.likesBigphClick.pbind(uid);
- 1605. - o._uid = uid;
- 1606. - }
- 1607. -
- 1608. - clearTimeout(o.hideTO);
- 1609. - animate(o, {marginTop: 75}, {duration: 200, transition: Fx.Transitions.easeOutCirc});
- 1610. - wkcur.phShown[uid] = o;
- 1611. -
- 1612. - if (!obj.onmouseout) obj.onmouseout = WkView.likesBigphOut.pbind(obj);
- 1613. - },
- 1614. - likesBigphOut: function(obj) {
- 1615. - var o = obj.firstChild;
- 1616. - if (!o || o.tagName != 'A' || o.className != 'wk_likes_likerph') return;
- 1617. -
- 1618. - clearTimeout(o.hideTO);
- 1619. - o.hideTO = setTimeout(function() {
- 1620. - animate(o, {marginTop: 100}, 200);
- 1621. - delete(wkcur.phShown[o._uid]);
- 1622. - }, 150);
- 1623. - },
- 1624. - likesBigphClick: function(uid, ev) {
- 1625. - if (checkEvent(ev) !== false) return;
- 1626. -
- 1627. - var ch = wkcur.phCache[uid]
- 1628. - o = wkcur.phShown[uid],
- 1629. - obj = domPN(o);
- 1630. -
- 1631. - if (!o || !obj) return;
- 1632. - if (ch === undefined) {
- 1633. - ch = wkcur.phCache[uid] = 'show';
- 1634. - ajax.post('al_photos.php', {act: 'fast_get_photo', oid: uid}, {onDone: function(res) {
- 1635. - if (!res) {
- 1636. - obj.onmouseover = function() {};
- 1637. - re(o);
- 1638. - return;
- 1639. - }
- 1640. - var sh = (wkcur.phCache[uid] == 'show');
- 1641. - wkcur.phCache[uid] = res;
- 1642. - o.href = '/photo' + res._id + '?all=1';
- 1643. - if (sh) WkView.likesBigphClick(uid);
- 1644. - }, onFail: function() {
- 1645. - obj.onmouseover = function() {};
- 1646. - re(o);
- 1647. - return true;
- 1648. - }});
- 1649. - }
- 1650. - if (ch == 'show') {
- 1651. - return cancelEvent(ev);
- 1652. - }
- 1653. - if (!ch) return;
- 1654. - extend(ch, {
- 1655. - jumpTo: {z: 'albums' + uid},
- 1656. - queue: 1
- 1657. - });
- 1658. - return showPhoto(ch._id, 'album' + uid + '_0/rev', ch, ev);
- 1659. - },
- 1660. - likesSTLDown: function(e) {
- 1661. - e = e || window.event;
- 1662. - if (checkEvent(e)) return;
- 1663. -
- 1664. - if (!__afterFocus) {
- 1665. - if (wkcur.lSTLWasSet && wkcur.lSTLWas) {
- 1666. - var to = wkcur.lSTLWas;
- 1667. - wkcur.lSTLWas = 0;
- 1668. - wkLayerWrap.scrollTop = to;
- 1669. - } else {
- 1670. - wkcur.lSTLWas = wkLayerWrap.scrollTop;
- 1671. - wkLayerWrap.scrollTop = 0;
- 1672. - }
- 1673. - }
- 1674. - return cancelEvent(e);
- 1675. - },
- 1676. - likesOnScroll: function (resize) {
- 1677. -
- 1678. - var st = wkLayerWrap.scrollTop,
- 1679. - mx = 200,
- 1680. - vis = wkcur.lSTLWas || (st > mx),
- 1681. - o = 0;
- 1682. -
- 1683. - wkcur.lSTL.style.marginTop = st + 'px';
- 1684. - if (!vis) {
- 1685. - if (wkcur.lSTLShown !== 0) {
- 1686. - hide(wkcur.lSTL);
- 1687. - wkcur.lSTLShown = 0;
- 1688. - }
- 1689. - } else {
- 1690. - if (wkcur.lSTLShown !== 1) {
- 1691. - show(wkcur.lSTL);
- 1692. - wkcur.lSTLShown = 1;
- 1693. - }
- 1694. - if (wkcur.lSTLWas && st > 500) {
- 1695. - wkcur.lSTLWas = 0;
- 1696. - }
- 1697. - if (st > mx) {
- 1698. - o = (st - mx) / mx;
- 1699. - if (wkcur.lSTLWasSet) {
- 1700. - wkcur.lSTLWasSet = 0;
- 1701. - val(domLC(wkcur.lSTL), getLang('global_to_top'));
- 1702. - removeClass(domLC(wkcur.lSTL), 'down');
- 1703. - }
- 1704. - } else {
- 1705. - o = (mx - st) / mx;
- 1706. - if (wkcur.lSTLWas) {
- 1707. - if (!wkcur.lSTLWasSet) {
- 1708. - wkcur.lSTLWasSet = 1;
- 1709. - val(domLC(wkcur.lSTL), '');
- 1710. - addClass(domLC(wkcur.lSTL), 'down');
- 1711. - }
- 1712. - }
- 1713. - }
- 1714. - }
- 1715. - setStyle(wkcur.lSTL, {opacity: Math.min(Math.max(o, 0), 1)});
- 1716. -
- 1717. - var bt = lastWindowHeight,
- 1718. - objMore = ge('wk_likes_more_link');
- 1719. - if (isVisible(objMore) && (bt > getXY(objMore, true)[1])) {
- 1720. - objMore.click();
- 1721. - }
- 1722. - },
- 1723. - likesBlacklistTip: function (el) {
- 1724. - showTooltip(el, {
- 1725. - text: wkcur.lang.like_block_liker,
- 1726. - shift: [13, 1, 1],
- 1727. - black: 1
- 1728. - });
- 1729. - },
- 1730. - likesBlacklist: function (el, oid, event) {
- 1731. - if (el.tt && el.tt.destroy) el.tt.destroy();
- 1732. - showBox('like.php', {act: 'spam', mid: oid, object: wkcur.like_obj});
- 1733. - return cancelEvent(event);
- 1734. - },
- 1735. - likesRecache: function(d) {
- 1736. - wkcur.offset += d;
- 1737. - for (var i in ajaxCache) {
- 1738. - if (i.match(new RegExp('^\\/wkview\.php\\#act=show', ''))) {
- 1739. - delete(ajaxCache[i]);
- 1740. - }
- 1741. - }
- 1742. - },
- 1743. - likesRemove: function(oid) {
- 1744. - re('wk_likes_liker_row' + oid);
- 1745. - WkView.likesRecache(-1);
- 1746. - WkView.onScroll();
- 1747. - if (!domFC(ge('wk_likes_rows'))) {
- 1748. - location.reload();
- 1749. - }
- 1750. - },
- 1751. -
- 1752. - historyInit: function () {
- 1753. - addEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 1754. - addEvent(window, 'resize', WkView.onResize);
- 1755. - onBodyResize();
- 1756. -
- 1757. - wkcur._hide.push(function () {
- 1758. - removeEvent(wkLayerWrap, 'scroll', WkView.onScroll);
- 1759. - removeEvent(window, 'resize', WkView.onResize);
- 1760. - });
- 1761. - },
- 1762. - historyOnScroll: function () {
- 1763. - if (wkcur.loadingHistory) {
- 1764. - return false;
- 1765. - }
- 1766. - var wndHeight = window.innerHeight || document.documentElement.clientHeight;
- 1767. -
- 1768. - var moreLink = ge('wk_history_more_link');
- 1769. - if (moreLink && isVisible(moreLink)) {
- 1770. - var moreLinkY = getXY(moreLink, true)[1];
- 1771. - if (wndHeight + 500 > moreLinkY) {
- 1772. - moreLink.onclick();
- 1773. - }
- 1774. - }
- 1775. - },
- 1776. - historyShowMore: function () {
- 1777. - if (wkcur.loadingHistory) {
- 1778. - return false;
- 1779. - }
- 1780. - var newOffset = wkcur.offset;
- 1781. - wkcur.loadingHistory = true;
- 1782. - ajax.post('wkview.php', {act: 'show', w: wkcur.wkRaw, offset: newOffset, part: 1}, {
- 1783. - onDone: function (options, rows) {
- 1784. - extend(wkcur, options);
- 1785. - ge('wk_history_rows').appendChild(cf(rows));
- 1786. - setTimeout(WkView.historyOnScroll, 500);
- 1787. -
- 1788. - toggle('wk_history_more_link', wkcur.offset < wkcur.count);
- 1789. - toggle('wk_history_empty', wkcur.offset >= wkcur.count && !domFC(ge('wk_history_rows')));
- 1790. - toggleClass('wk_history_more', 'wk_history_more_loading', wkcur.offset < wkcur.count && !domFC(ge('wk_history_rows')));
- 1791. - wkcur.loadingHistory = false;
- 1792. - },
- 1793. - onFail: function () {
- 1794. - wkcur.loadingHistory = false;
- 1795. - },
- 1796. - showProgress: function () {
- 1797. - hide('wk_history_more_link');
- 1798. - show('wk_history_more_progress');
- 1799. - },
- 1800. - hideProgress: function () {
- 1801. - show('wk_history_more_link');
- 1802. - hide('wk_history_more_progress');
- 1803. - }
- 1804. - });
- 1805. -
- 1806. - return false;
- 1807. - },
- 1808. -
- 1809. - activate: function(arrow) {
- 1810. - if (arrow && arrow.timeout) {
- 1811. - clearTimeout(arrow.timeout);
- 1812. - removeAttr(arrow, 'timeout');
- 1813. - } else if (isVisible(arrow)) {
- 1814. - fadeTo(arrow, 200, vk.pvdark ? 1 : 0.7);
- 1815. - }
- 1816. - },
- 1817. -
- 1818. - deactivate: function(arrow) {
- 1819. - if (!arrow || !isVisible(arrow) || arrow.timeout) {
- 1820. - return;
- 1821. - }
- 1822. - arrow.timeout = setTimeout(function() {
- 1823. - removeAttr(arrow, 'timeout');
- 1824. - fadeTo(arrow, 200, 0.4);
- 1825. - }, 1);
- 1826. - },
- 1827. -
- 1828. - activateArrow: function (next, event) {
- 1829. - var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'],
- 1830. - bg = wkcur[next ? 'wkRightArrowBg' : 'wkLeftArrowBg'].firstChild;
- 1831. -
- 1832. - if (arrow && arrow.timeout) {
- 1833. - clearTimeout(arrow.timeout);
- 1834. - removeAttr(arrow, 'timeout');
- 1835. - } else if (isVisible(arrow)) {
- 1836. - wkcur.arrowOver = next;
- 1837. - fadeTo(arrow, 200, vk.pvdark ? 1 : 0.7);
- 1838. - fadeTo(bg, 200, 0.15);
- 1839. - }
- 1840. - WkView.preloadArrow(next);
- 1841. - cancelEvent(event);
- 1842. - },
- 1843. - preloadArrow: function (next) {
- 1844. - var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'];
- 1845. -
- 1846. - if (!arrow.cached) {
- 1847. - arrow.cached = true;
- 1848. - var actions = WkView.getNextWkRaws(),
- 1849. - preloadWkRaw = actions[next ? 1 : 0];
- 1850. -
- 1851. - if (preloadWkRaw) {
- 1852. - ajax.post('wkview.php', extend({act: 'show', loc: nav.objLoc[0]}, {w: preloadWkRaw}), {cache: 1});
- 1853. - }
- 1854. - }
- 1855. - },
- 1856. - deactivateArrow: function (next, event) {
- 1857. - var arrow = wkcur[next ? 'wkRightArrow' : 'wkLeftArrow'],
- 1858. - bg = wkcur[next ? 'wkRightArrowBg' : 'wkLeftArrowBg'].firstChild;
- 1859. -
- 1860. - if (!arrow || !isVisible(arrow) || arrow.timeout || (wkcur.arrowClicked && (vkNow() - wkcur.arrowClicked < 100))) {
- 1861. - return;
- 1862. - }
- 1863. -
- 1864. - delete wkcur.arrowOver;
- 1865. - arrow.timeout = setTimeout(function() {
- 1866. - removeAttr(arrow, 'timeout');
- 1867. - fadeTo(arrow, 200, 0.4);
- 1868. - fadeTo(bg, 200, 0);
- 1869. - }, 1);
- 1870. - cancelEvent(event);
- 1871. - },
- 1872. -
- 1873. - back: function() {
- 1874. - if (wkcur.historyLen > 1) {
- 1875. - wkcur.doBack = 1;
- 1876. - wkcur.historyLen -= 1;
- 1877. - history.go(-1);
- 1878. - return true;
- 1879. - } else {
- 1880. - WkView.hide();
- 1881. - }
- 1882. - },
- 1883. -
- 1884. -
- 1885. - _eof: 1};try{stManager.done('wkview.js');}catch(e){}
- ------
- Файл - groups_edit.css (Старый размер - 23525 | Новый - 0):
- 0. - #groups_edit_css {
- 1. - display: none;
- 2. - }
- 3. -
- 4. - .group_edit {
- 5. - background: #F7F7F7;
- 6. - padding: 15px;
- 7. - }
- 8. - #group_edit_rss {
- 9. - padding-top: 6px;
- 10. - }
- 11. - .group_edit_label, .group_rss_label {
- 12. - width: 148px;
- 13. - padding: 4px 16px 9px;
- 14. - color: #707070;
- 15. - }
- 16. - .group_edit_labeled {
- 17. - padding: 4px 7px 9px;
- 18. - position: relative;
- 19. - border: 1px solid #F7F7F7;
- 20. - border-color: transparent;
- 21. - margin: -1px;
- 22. - }
- 23. - div.gedit_public_labeled {
- 24. - padding: 4px 0px 6px;
- 25. - }
- 26. - .gedit_public_feedback {
- 27. - margin-bottom: 6px;
- 28. - }
- 29. - .group_edit_field {
- 30. - padding: 0px 0px 9px;
- 31. - }
- 32. - .group_edit_info {
- 33. - color: #777;
- 34. - padding: 7px 20px 0px;
- 35. - }
- 36. - .group_edit_section {
- 37. - padding-top: 9px;
- 38. - }
- 39. - .group_edit_next {
- 40. - margin-top: 7px;
- 41. - }
- 42. - .group_save_button {
- 43. - margin-top: 10px;
- 44. - }
- 45. -
- 46. - .group_conv_header {
- 47. - color: #36638E;
- 48. - font-size: 1.09em;
- 49. - font-weight: bold;
- 50. - margin-bottom: 5px;
- 51. - padding: 0 10px 5px;
- 52. - border-bottom: 1px solid #DAE1E8;
- 53. - }
- 54. - .group_conv_tip {
- 55. - padding: 5px 20px 0;
- 56. - color: #777;
- 57. - }
- 58. - .group_conv_option {
- 59. - padding: 5px 19px;
- 60. - }
- 61. - .group_to_public_warning {
- 62. - padding: 10px 10px 12px;
- 63. - line-height: 120%;
- 64. - margin: 0 0 8px;
- 65. - border: 1px solid #DAE1E8;
- 66. - background: #F7F7F7;
- 67. - }
- 68. - .group_to_public_warning .listing {
- 69. - padding-left: 30px;
- 70. - padding-right: 30px;
- 71. - line-height: 140%;
- 72. - margin: 10px 0 0;
- 73. - }
- 74. -
- 75. - .group_to_public_comment {
- 76. - padding: 10px 10px 12px;
- 77. - line-height: 120%;
- 78. - margin: 0 0 8px;
- 79. - }
- 80. -
- 81. - .group_rss_label {
- 82. - width: 100px;
- 83. - }
- 84. - #group_rss_url {
- 85. - width: 240px;
- 86. - padding: 3px 6px;
- 87. - }
- 88. -
- 89. - .group_status_export_info {
- 90. - line-height: 150%;
- 91. - background-color: #F6F7F9;
- 92. - border: 1px solid #DBE0EA;
- 93. - padding: 8px 5px;
- 94. - margin-bottom: 10px;
- 95. - }
- 96. - .groups_twitter_icon {
- 97. - margin: 0px 5px;
- 98. - }
- 99. - .groups_twitter_info {
- 100. - margin: 0px 5px;
- 101. - width: 310px;
- 102. - }
- 103. -
- 104. - #group_edit_name {
- 105. - padding: 3px 5px;
- 106. - width: 254px;
- 107. - }
- 108. - #group_edit_desc {
- 109. - padding: 3px 6px;
- 110. - vertical-align: top;
- 111. - width: 252px;
- 112. - height: 50px;
- 113. - }
- 114. - #group_saved_msg {
- 115. - display: none;
- 116. - line-height: 160%;
- 117. - background: #F4EBBD;
- 118. - margin-bottom: 25px;
- 119. - }
- 120. -
- 121. - #group_edit_addr_table {
- 122. - border: 1px solid #C0CAD5;
- 123. - background: #FFF;
- 124. - width: 266px;
- 125. - }
- 126. - .group_edit_addr_label {
- 127. - padding: 3px 0px 3px 6px;
- 128. - color: #777;
- 129. - width: 1px;
- 130. - vertical-align: top;
- 131. - }
- 132. - .group_edit_addr_field {
- 133. - width: 100%;
- 134. - padding: 3px 0px 0px;
- 135. - vertical-align: top;
- 136. - }
- 137. - input#group_edit_addr {
- 138. - width: 100%;
- 139. - outline: none;
- 140. - border: 0px;
- 141. - padding: 0px;
- 142. - margin: 0px -1px;
- 143. - background: transparent;
- 144. - }
- 145. - #group_edit_about_addr {
- 146. - padding: 4px 0px 0px 10px;
- 147. - width: 134px;
- 148. - color: #777;
- 149. - }
- 150. - #group_website, #group_rss {
- 151. - padding: 3px 5px;
- 152. - width: 174px;
- 153. - }
- 154. - #event_phone, #event_mail {
- 155. - padding: 3px 5px;
- 156. - width: 254px;
- 157. - }
- 158. - .group_edit_field .selector_container td.selector {
- 159. - padding-top: 1px;
- 160. - }
- 161. -
- 162. - #group_bl_bar,
- 163. - #group_l_bar {
- 164. - padding: 10px;
- 165. - background: #F7F7F7;
- 166. - border-bottom: 1px solid #DAE1E8;
- 167. - }
- 168. - #group_bl_search,
- 169. - #group_l_search {
- 170. - padding: 5px 4px 5px 20px;
- 171. - width: 402px;
- 172. - height: 14px;
- 173. - line-height: 1.27em;
- 174. - outline: none;
- 175. - background: #FFF url(/images/magglass.png) no-repeat 5px 6px;
- 176. - }
- 177. - #group_bl_submit,
- 178. - #group_l_submit {
- 179. - padding-left: 8px;
- 180. - padding-right: 8px;
- 181. - width: 168px;
- 182. - text-align: center;
- 183. - }
- 184. - #group_bl_rows {
- 185. - padding: 0px 10px 10px;
- 186. - }
- 187. - .group_bl_row {
- 188. - padding: 10px 0;
- 189. - height: 50px;
- 190. - overflow: hidden;
- 191. - border-bottom: 1px solid #DAE2E8;
- 192. - }
- 193. - .group_bl_photo {
- 194. - width: 60px;
- 195. - height: 50px;
- 196. - overflow: hidden;
- 197. - }
- 198. - .group_bl_photo_img {
- 199. - width: 50px;
- 200. - }
- 201. - .group_bl_name {
- 202. - font-weight: bold;
- 203. - color: #45688E;
- 204. - }
- 205. - .group_bl_info {
- 206. - padding-top: 4px;
- 207. - color: #777;
- 208. - max-width: 400px;
- 209. - overflow: hidden;
- 210. - white-space: nowrap;
- 211. - text-overflow: ellipsis;
- 212. - -o-text-overflow: ellipsis;
- 213. - }
- 214. - .group_bl_block {
- 215. - padding-top: 1px;
- 216. - max-width: 400px;
- 217. - overflow: hidden;
- 218. - white-space: nowrap;
- 219. - }
- 220. - .group_bl_actions {
- 221. - width: 120px;
- 222. - }
- 223. - .group_bl_action {
- 224. - overflow: hidden;
- 225. - display: block;
- 226. - padding: 4px 6px;
- 227. - }
- 228. - .group_bl_action:hover {
- 229. - background: #E1E7ED;
- 230. - text-decoration: none;
- 231. - }
- 232. - .group_bl_row:last-child {
- 233. - border-bottom: 0;
- 234. - }
- 235. - .group_bl_rem {
- 236. - color: #777;
- 237. - }
- 238. - #group_bl_msg {
- 239. - display: none;
- 240. - margin: 15px 15px 10px;
- 241. - line-height: 160%;
- 242. - }
- 243. -
- 244. - .group_blb_user {
- 245. - padding: 26px 0;
- 246. - }
- 247. - .group_blb_user_thumb {
- 248. - width: 90px;
- 249. - height: 75px;
- 250. - overflow: hidden;
- 251. - }
- 252. - .group_blb_user_img {
- 253. - width: 75px;
- 254. - }
- 255. - .group_blb_user_info {
- 256. - }
- 257. - .group_blb_user_row {
- 258. - padding-top: 5px;
- 259. - color: #777;
- 260. - }
- 261. - .group_blb_user_name {
- 262. - line-height: 1.27em;
- 263. - font-size: 1.09em;
- 264. - font-weight: bold;
- 265. - color: #45688E;
- 266. - }
- 267. - .group_blb_block {
- 268. - width: 190px;
- 269. - padding-bottom: 26px;
- 270. - }
- 271. - div.group_blb_block_type {
- 272. - width: 260px;
- 273. - }
- 274. - .group_blb_header {
- 275. - color: #45688E;
- 276. - line-height: 1.27em;
- 277. - margin: 0;
- 278. - padding: 0 0 9px;
- 279. - font-size: 1.09em;
- 280. - font-weight: bold;
- 281. - }
- 282. - .group_blb_dd {
- 283. - height: 29px;
- 284. - }
- 285. - #group_blb_comment {
- 286. - width: 438px;
- 287. - outline: 0;
- 288. - padding: 6px 5px 8px;
- 289. - }
- 290. - #group_blb_comment_vis {
- 291. - margin-top: 12px;
- 292. - line-height: normal;
- 293. - }
- 294. - #group_blb_warn {
- 295. - color: #777;
- 296. - display: none;
- 297. - margin-top: 12px;
- 298. - }
- 299. - .group_blb_buttons {
- 300. - margin-top: 26px;
- 301. - height: 25px;
- 302. - line-height: normal;
- 303. - }
- 304. - #group_blb_cancel {
- 305. - margin: 0px 10px;
- 306. - }
- 307. -
- 308. - #group_bl_no, #group_l_no {
- 309. - font-size: 1.09em;
- 310. - padding: 100px 30px;
- 311. - text-align: center;
- 312. - color: #777;
- 313. - }
- 314. - #group_users_more {
- 315. - margin: 0px 10px 5px;
- 316. - display: block;
- 317. - padding: 10px;
- 318. - border-top: 1px solid #DAE1E8;
- 319. - text-align: center;
- 320. - }
- 321. - #group_users_more:hover {
- 322. - text-decoration: none;
- 323. - background: #E9EDF1;
- 324. - }
- 325. - #group_more_progress {
- 326. - margin: 0px auto;
- 327. - }
- 328. -
- 329. - #group_p_data {
- 330. - padding: 10px 10px 5px;
- 331. - background: #F7F7F7;
- 332. - }
- 333. - .group_p_rows {
- 334. - display: none;
- 335. - width: 457px;
- 336. - }
- 337. - .group_p_row {
- 338. - width: 431px;
- 339. - padding: 8px;
- 340. - background: #FFF;
- 341. - border: 1px solid #DAE1E8;
- 342. - margin-bottom: 5px;
- 343. - }
- 344. - .group_p_photo {
- 345. - width: 33px;
- 346. - height: 25px;
- 347. - overflow: hidden;
- 348. - }
- 349. - .group_p_photo_img {
- 350. - width: 25px;
- 351. - }
- 352. - .group_p_info {
- 353. - width: 395px;
- 354. - white-space: nowrap;
- 355. - overflow: hidden;
- 356. - text-overflow: ellipsis;
- 357. - -o-text-overflow: ellipsis;
- 358. - color: #777;
- 359. - }
- 360. - .group_p_section, .group_p_section_sel {
- 361. - display: block;
- 362. - width: 130px;
- 363. - padding: 5px 11px;
- 364. - }
- 365. - .group_p_section:hover {
- 366. - text-decoration: none;
- 367. - background: #E9EDF1;
- 368. - }
- 369. - .group_p_section_sel:hover {
- 370. - text-decoration: none;
- 371. - }
- 372. - .group_p_section_sel {
- 373. - padding: 4px 10px;
- 374. - background: #5e82a8;
- 375. - border: 1px solid #517295;
- 376. - color: #FFF;
- 377. - }
- 378. - .group_p_no_list {
- 379. - background: #FFFFFF;
- 380. - color: #777777;
- 381. - border: 1px solid #DAE1E8;
- 382. - font-size: 1.18em;
- 383. - margin: 0 0 3px;
- 384. - padding: 80px 0;
- 385. - text-align: center;
- 386. - width: 447px;
- 387. - }
- 388. - .group_p_td {
- 389. - vertical-align: top;
- 390. - }
- 391. - .group_p_label, .group_ps_label {
- 392. - width: 130px;
- 393. - padding: 9px 10px 0px;
- 394. - color: #777;
- 395. - }
- 396. - .group_ps_label {
- 397. - width: 110px;
- 398. - }
- 399. - .group_p_labeled, .group_ps_labeled {
- 400. - padding: 5px 0px;
- 401. - }
- 402. - #group_p_admin_position {
- 403. - width: 200px;
- 404. - }
- 405. - .group_ps_labeled #group_p_admin_position {
- 406. - width: 145px;
- 407. - }
- 408. - #group_admins_msg {
- 409. - display: none;
- 410. - margin-bottom: 10px;
- 411. - width: 425px;
- 412. - line-height: 160%;
- 413. - }
- 414. - #group_p_search {
- 415. - border-top: 1px solid #DAE2E8;
- 416. - margin: 5px 0;
- 417. - padding: 5px 0px;
- 418. - }
- 419. - #group_p_search_info, #group_p_approve_info {
- 420. - font-size: 0.9em;
- 421. - padding: 5px 1px 8px;
- 422. - }
- 423. - #group_p_search_name {
- 424. - width: 144px;
- 425. - }
- 426. - .group_p_search_button {
- 427. - margin: 8px 0px;
- 428. - }
- 429. - .group_ps_thumb {
- 430. - width: 110px;
- 431. - height: 100px;
- 432. - overflow: hidden;
- 433. - }
- 434. - .group_psmall_thumb {
- 435. - width: 60px;
- 436. - height: 50px;
- 437. - overflow: hidden;
- 438. - }
- 439. - #members_show_more_link, #admins_show_more_link, #requests_show_more_link, #invites_show_more_link {
- 440. - width: 449px;
- 441. - }
- 442. - #group_admins_rows {
- 443. - position: relative;
- 444. - }
- 445. - .group_p_rows .sort_helper {
- 446. - margin-bottom: 5px;
- 447. - }
- 448. -
- 449. - #group_l_msg {
- 450. - margin: 15px 15px 10px;
- 451. - line-height: 160%;
- 452. - display: none;
- 453. - }
- 454. - #group_l_rows {
- 455. - padding: 0px 10px 0px;
- 456. - position: relative;
- 457. - }
- 458. - .group_l_row {
- 459. - background: #FFF;
- 460. - border-bottom: 1px solid #E7EAED;
- 461. - padding: 10px 0px;
- 462. - }
- 463. - #group_l_rows .sort_helper {
- 464. - border-bottom: 1px solid #E7EAED;
- 465. - }
- 466. - .group_l_row:last-child {
- 467. - border-bottom: 1px solid #FFF;
- 468. - }
- 469. - .group_l_row.sort_taken, .group_l_row.sort_taken:last-child {
- 470. - background: #EDF1F5;
- 471. - border-bottom: 1px solid #EDF1F5;
- 472. - padding: 10px;
- 473. - margin: 0px -10px;
- 474. - opacity: 0.9;
- 475. - filter: alpha(opacity=90);
- 476. - }
- 477. - #group_l_rows .sort_helper.sort_helper_last {
- 478. - border-bottom: 1px solid #FFF;
- 479. - }
- 480. - .group_l_photo {
- 481. - width: 60px;
- 482. - height: 50px;
- 483. - overflow: hidden;
- 484. - }
- 485. - .group_l_photo_img {
- 486. - width: 50px;
- 487. - }
- 488. - .group_l_info {
- 489. - width: 420px;
- 490. - overflow: hidden;
- 491. - font-weight: bold;
- 492. - }
- 493. - .group_l_position {
- 494. - padding-top: 4px;
- 495. - font-weight: normal;
- 496. - }
- 497. - .group_l_x {
- 498. - background: url(/images/pics/statusx_op.gif) no-repeat;
- 499. - opacity: 0;
- 500. - filter: alpha(opacity=0);
- 501. - cursor: pointer;
- 502. - height: 17px;
- 503. - width: 17px;
- 504. - }
- 505. - .group_al_thumb {
- 506. - width: 110px;
- 507. - height: 100px;
- 508. - overflow: hidden;
- 509. - }
- 510. - #group_al_thumb_img {
- 511. - width: 100px;
- 512. - }
- 513. - .group_al_title {
- 514. - margin: 0 0 10px;
- 515. - width: 270px;
- 516. - overflow: hidden;
- 517. - }
- 518. - #group_al_title, #group_al_position {
- 519. - width: 262px;
- 520. - }
- 521. - .group_al_position {
- 522. - padding: 10px 4px 0px;
- 523. - color: #777;
- 524. - }
- 525. - #group_l_no {
- 526. - padding: 100px 130px;
- 527. - }
- 528. - .group_l_action {
- 529. - display: block;
- 530. - padding: 4px 6px;
- 531. - }
- 532. - .group_l_action:hover {
- 533. - text-decoration: none;
- 534. - background: #E1E7ED;
- 535. - }
- 536. - .group_l_progress {
- 537. - margin: 4px 6px;
- 538. - }
- 539. -
- 540. - .group_edit_at {
- 541. - padding: 4px 0px 0;
- 542. - }
- 543. - .group_edit_field .datepicker_control {
- 544. - padding-left: 4px;
- 545. - padding-right: 4px;
- 546. - }
- 547. - #group_edit_finish_label {
- 548. - padding-bottom: 5px;
- 549. - }
- 550. -
- 551. - #group_stickes_box h2 {
- 552. - padding-left: 1px;
- 553. - border-bottom: none;
- 554. - }
- 555. - .group_st_msg {
- 556. - padding: 0;
- 557. - margin: 0 auto 15px;
- 558. - width: 490px;
- 559. - line-height: 160%;
- 560. - font-size: 1.09em;
- 561. - }
- 562. - .group_st_row {
- 563. - margin: 0;
- 564. - }
- 565. - .group_st_label {
- 566. - width: 240px;
- 567. - padding: 4px 8px 9px 0;
- 568. - color: #555;
- 569. - }
- 570. - .group_st_labeled {
- 571. - padding: 4px 7px 9px 0;
- 572. - }
- 573. - .group_st_field {
- 574. - padding: 0 0 9px 0;
- 575. - }
- 576. - .group_st_field input {
- 577. - width: 335px;
- 578. - }
- 579. - .group_st_field textarea {
- 580. - width: 335px;
- 581. - height: 65px;
- 582. - }
- 583. - .group_st_field textarea.big_text {
- 584. - padding: 5px 4px 4px;
- 585. - font-size: 1.09em!important;
- 586. - }
- 587. - .group_st_field .selector_container td.selector {
- 588. - padding-top: 3px;
- 589. - padding-bottom: 2px;
- 590. - }
- 591. - .group_st_field .datepicker_control {
- 592. - padding-top: 4px;
- 593. - padding-bottom: 4px;
- 594. - }
- 595. - .firefox .group_st_field .datepicker_control {
- 596. - padding-top: 3px;
- 597. - padding-bottom: 3px;
- 598. - }
- 599. - .group_st_note {
- 600. - padding-top: 7px;
- 601. - color: #555;
- 602. - width: 337px;
- 603. - }
- 604. - #group_stickers_phone_table {
- 605. - border: 1px solid #C0CAD5;
- 606. - background: #FFF;
- 607. - width: 170px;
- 608. - }
- 609. - #group_stickers_phone_prefix {
- 610. - padding: 4px 0px 3px 6px;
- 611. - color: #777;
- 612. - width: 1px;
- 613. - vertical-align: top;
- 614. - font-size: 1.09em!important;
- 615. - }
- 616. - .group_stickers_phone_field {
- 617. - width: 100%;
- 618. - padding: 4px 0px 0px;
- 619. - vertical-align: top;
- 620. - }
- 621. - input#stickers_phone {
- 622. - width: 100%;
- 623. - outline: none;
- 624. - border: 0px;
- 625. - padding: 0px;
- 626. - margin: 0px -1px;
- 627. - background: transparent;
- 628. - }
- 629. - .group_st_from {
- 630. - padding-top: 3px;
- 631. - width: 30px;
- 632. - text-align: center;
- 633. - color: #555;
- 634. - }
- 635. - .group_st_at {
- 636. - padding: 5px 8px 0;
- 637. - color: #555;
- 638. - }
- 639. - .group_st_submit_row {
- 640. - padding: 5px 0 10px 0;
- 641. - }
- 642. - .group_st_img {
- 643. - padding-bottom: 15px;
- 644. - text-align: center;
- 645. - }
- 646. - .group_st_samples {
- 647. - margin: 0 0 20px 0;
- 648. - display: block;
- 649. - text-align: center;
- 650. - }
- 651. - .group_st_samples a {
- 652. - -moz-user-select: none;
- 653. - -khtml-user-select: none;
- 654. - -webkit-user-select: none;
- 655. - outline: none;
- 656. - }
- 657. - .group_st_samples a:hover {
- 658. - text-decoration: none;
- 659. - }
- 660. - .group_st_samples img {
- 661. - margin-right: 10px;
- 662. - }
- 663. - #stickers_error {
- 664. - margin-bottom: 10px;
- 665. - padding: 10px 15px;
- 666. - display: none;
- 667. - }
- 668. - .stickers_side_tt table .tt_text {
- 669. - line-height: 120%;
- 670. - color: #000;
- 671. - padding: 10px;
- 672. - width: 240px;
- 673. - }
- 674. - .stickers_side_tt_pointer {
- 675. - background: url(/images/ddtooltip.png) 0 0 no-repeat;
- 676. - width: 8px;
- 677. - height: 11px;
- 678. - position: absolute;
- 679. - left: -7px;
- 680. - top: 25px;
- 681. - overflow: hidden;
- 682. - z-index: 10;
- 683. - }
- 684. -
- 685. - #gedit_users_admsearch_wrap,
- 686. - #gedit_users_search_wrap {
- 687. - background: #F7F7F7;
- 688. - padding: 10px 10px 0px;
- 689. - }
- 690. - #gedit_users_admsearch_btn,
- 691. - #gedit_users_search_btn {
- 692. - width: 100px;
- 693. - }
- 694. - #gedit_users_admsearch_btn {
- 695. - width: 180px;
- 696. - }
- 697. - #gedit_users_search_inp {
- 698. - padding: 5px 20px 6px;
- 699. - width: 373px;
- 700. - background: url(/images/magglass.png) no-repeat scroll 5px 6px white;
- 701. - height: 13px;
- 702. - outline: none;
- 703. - }
- 704. - #gedit_users_search_inp.gedit_search_wide {
- 705. - width: 453px;
- 706. - }
- 707. - #gedit_users_search_inp::-ms-clear {
- 708. - display: none;
- 709. - }
- 710. - #gedit_reset_search {
- 711. - margin: 1px 0px 0px 392px;
- 712. - display: none;
- 713. - cursor: pointer;
- 714. - background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
- 715. - padding: 2px;
- 716. - width: 19px;
- 717. - height: 19px;
- 718. - opacity: 0.6;
- 719. - filter: alpha(opacity=60);
- 720. - position: absolute;
- 721. - z-index: 95;
- 722. - -webkit-transition: opacity 100ms linear;
- 723. - -moz-transition: opacity 100ms linear;
- 724. - -o-transition: opacity 100ms linear;
- 725. - transition: opacity 100ms linear;
- 726. - }
- 727. - #gedit_reset_search:hover {
- 728. - opacity: 1;
- 729. - }
- 730. - #gedit_reset_search.gedit_search_wide {
- 731. - margin-left: 472px;
- 732. - }
- 733. - #gedit_summary_tabs {
- 734. - padding: 2px 5px 3px;
- 735. - }
- 736. - .gedit_users_rows,
- 737. - .gedit_additional_users_rows {
- 738. - padding: 0px 10px;
- 739. - }
- 740. - .gedit_user {
- 741. - border-top: 1px solid #EDEDED;
- 742. - padding: 10px 0px;
- 743. - height: 100px;
- 744. - }
- 745. - .gedit_user:first-child {
- 746. - border-top: 0px;
- 747. - }
- 748. - .gedit_user_bigph_wrap {
- 749. - width: 110px;
- 750. - height: 100px;
- 751. - overflow: hidden;
- 752. - position: relative;
- 753. - }
- 754. - .gedit_user_thumb {
- 755. - width: 100px;
- 756. - height: 100px;
- 757. - display: block;
- 758. - overflow: hidden;
- 759. - }
- 760. - .gedit_user_img {
- 761. - width: 100px;
- 762. - }
- 763. - .gedit_user_info {
- 764. - width: 330px;
- 765. - padding-top: 4px;
- 766. - }
- 767. - .gedit_user_name,
- 768. - .gedit_user_uni {
- 769. - padding-bottom: 5px;
- 770. - }
- 771. - .gedit_user_lnk {
- 772. - font-weight: bold;
- 773. - color: #45688E;
- 774. - }
- 775. - .gedit_user_online {
- 776. - color: #BBB;
- 777. - padding-bottom: 5px;
- 778. - }
- 779. - b.gedit_mob_onl {
- 780. - background-position: -1px 0px;
- 781. - }
- 782. - .gedit_bigph_wrap {
- 783. - position: relative;
- 784. - height: 100px;
- 785. - overflow: hidden;
- 786. - }
- 787. - .gedit_bigph {
- 788. - position: absolute;
- 789. - color: #FFF;
- 790. - margin-top: 100px;
- 791. - background: #333;
- 792. - background: rgba(0, 0, 0, 0.5);
- 793. - width: 100px;
- 794. - height: 15px;
- 795. - line-height: 15px;
- 796. - padding: 4px 0px 6px 0px;
- 797. - text-align: center;
- 798. - filter: alpha(opacity=75);
- 799. - }
- 800. - @media all and (min-width:0) { /* IE9-10 */
- 801. - .gedit_bigph { filter: none; }
- 802. - }
- 803. - .gedit_bigph:hover {
- 804. - text-decoration: none;
- 805. - }
- 806. - .gedit_bigph_label {
- 807. - opacity: 0.75;
- 808. - -webkit-transition: opacity 100ms linear;
- 809. - -moz-transition: opacity 100ms linear;
- 810. - -o-transition: opacity 100ms linear;
- 811. - transition: opacity 100ms linear;
- 812. - padding: 0px 0px 1px 20px;
- 813. - background: url(/images/icons/photo_icons.png?2) no-repeat left -62px;
- 814. - }
- 815. - .is_rtl1 .gedit_bigph_label {
- 816. - padding: 0px 20px 1px 0px;
- 817. - background-position: right -62px;
- 818. - }
- 819. - .gedit_bigph:hover .gedit_bigph_label {
- 820. - opacity: 1;
- 821. - }
- 822. - .gedit_user_level {
- 823. - padding-bottom: 5px;
- 824. - font-weight: bold;
- 825. - }
- 826. - .gedit_users_none {
- 827. - font-size: 13px;
- 828. - text-align: center;
- 829. - color: #777;
- 830. - padding: 100px 20px;
- 831. - }
- 832. - .gedit_users_more {
- 833. - display: block;
- 834. - padding: 10px 0px;
- 835. - margin: 0px 10px 10px;
- 836. - border-top: 1px solid #EDEDED;
- 837. - text-align: center;
- 838. - }
- 839. - .gedit_users_more:hover {
- 840. - background: #E1E7ED;
- 841. - border-color: #DAE1E8;
- 842. - text-decoration: none;
- 843. - }
- 844. - .gedit_search_focused .gedit_user_highlight {
- 845. - background: #E1E7ED;
- 846. - border-bottom: 1px solid #DAE1E8;
- 847. - padding: 0px 1px 0px;
- 848. - margin: 0px -1px;
- 849. - *padding: 0px;
- 850. - *margin: 0px;
- 851. - }
- 852. - .gedit_user_cancel_button {
- 853. - margin: 0px 10px;
- 854. - }
- 855. - .gedit_user_buttons {
- 856. - margin-top: 10px;
- 857. - }
- 858. - .gedit_user_actions {
- 859. - width: 160px;
- 860. - }
- 861. - .gedit_user_action {
- 862. - overflow: hidden;
- 863. - display: block;
- 864. - padding: 4px 6px;
- 865. - }
- 866. - .gedit_user_action:hover {
- 867. - background: #E1E7ED;
- 868. - text-decoration: none;
- 869. - }
- 870. - .gedit_admbox_top,
- 871. - #gedit_hostbox_top {
- 872. - height: 50px;
- 873. - padding-bottom: 10px;
- 874. - overflow: hidden;
- 875. - }
- 876. - .gedit_admbox_thumb,
- 877. - #gedit_hostbox_thumb {
- 878. - width: 60px;
- 879. - height: 50px;
- 880. - display: block;
- 881. - overflow: hidden;
- 882. - }
- 883. - .gedit_admbox_img,
- 884. - #gedit_hostbox_img {
- 885. - width: 50px;
- 886. - }
- 887. - .gedit_admbox_info,
- 888. - .gedit_hostbox_info {
- 889. - width: 300px;
- 890. - }
- 891. - #gedit_hostbox_name {
- 892. - font-weight: bold;
- 893. - }
- 894. - #gedit_host_inp {
- 895. - width: 300px;
- 896. - }
- 897. - #gedit_host_dd {
- 898. - margin-top: 15px;
- 899. - }
- 900. - .gedit_admbox_header {
- 901. - font-size: 13px;
- 902. - font-weight: bold;
- 903. - color: #45688E;
- 904. - padding: 2px 0px 8px;
- 905. - }
- 906. - .gedit_admbox_desc {
- 907. - width: 320px;
- 908. - margin: 0px 3px 5px;
- 909. - }
- 910. - .gedit_admbox_desc_other {
- 911. - padding-top: 2px;
- 912. - display: block;
- 913. - line-height: 140%;
- 914. - color: #777;
- 915. - }
- 916. - #gedit_admbox_contact_info {
- 917. - padding: 0px 24px;
- 918. - }
- 919. - #gedit_admbox_contact_info.gedit_admbox_removing {
- 920. - padding: 0px 1px;
- 921. - }
- 922. - .gedit_admbox_radio,
- 923. - #gedit_admbox_check {
- 924. - margin-top: 6px;
- 925. - padding: 0px 1px;
- 926. - }
- 927. - .gedit_admbox_contact_row {
- 928. - padding-top: 10px;
- 929. - }
- 930. - .gedit_admbox_contact_fill {
- 931. - padding: 13px 0px 3px;
- 932. - }
- 933. - .gedit_admbox_contact_desc {
- 934. - padding: 3px 10px 0px;
- 935. - color: #777;
- 936. - }
- 937. - #gedit_admbox_position,
- 938. - #gedit_admbox_email,
- 939. - #gedit_admbox_phone {
- 940. - width: 175px;
- 941. - }
- 942. - .gedit_btns_text {
- 943. - padding: 6px 15px 0px;
- 944. - color: #777;
- 945. - }
- 946. - .gedit_admin_warn {
- 947. - line-height: 160%;
- 948. - }
- 949. -
- 950. - .group_edit .info_msg {
- 951. - background: #FFF;
- 952. - border: 1px solid #C2C3C7;
- 953. - }
- 954. - #gedit_ad_join_wrap {
- 955. - padding: 25px 0 10px 0;
- 956. - text-align: center;
- 957. - }
- 958. - #ge_ad_join_box .info_msg {
- 959. - padding: 16px 20px;
- 960. - border: none;
- 961. - background-color: #EEF0F2;
- 962. - }
- 963. - #ad_box_error {
- 964. - margin: 0 20px 20px 20px;
- 965. - padding: 10px 15px;
- 966. - display: none;
- 967. - }
- 968. - #ad_box_cat_notice {
- 969. - margin: 0 20px 20px 20px;
- 970. - padding: 10px 15px;
- 971. - display: none;
- 972. - }
- 973. - .ge_ad_box_cont {
- 974. - padding: 23px 0 28px;
- 975. - }
- 976. - .ge_ad_box_fields {
- 977. - padding-left: 227px;
- 978. - background: url(/images/join/adspost.png) no-repeat 27px 0px;
- 979. - }
- 980. - .ge_ad_label {
- 981. - padding: 20px 0 9px 0;
- 982. - font-weight: bold;
- 983. - font-size: 1.09em;
- 984. - color: #45688E;
- 985. - }
- 986. - .ge_ad_box_cont input.text {
- 987. - padding: 6px 8px 7px !important;
- 988. - width: 180px;
- 989. - }
- 990. - .ge_ad_box_note {
- 991. - padding-top: 8px;
- 992. - color: #888;
- 993. - }
- 994. - .ge_ad_box_btn {
- 995. - margin-top: 20px;
- 996. - }
- 997. - .ge_ad_hint {
- 998. - color: #9CABB8;
- 999. - font-size: 0.91em;
- 1000. - cursor: pointer;
- 1001. - }
- 1002. - .ge_ad_edit_hint {
- 1003. - color: #9CABB8;
- 1004. - font-weight: bold;
- 1005. - cursor: pointer;
- 1006. - }
- 1007. - .ge_ad_hint_tt .tail_wrap {
- 1008. - position: absolute;
- 1009. - top: auto;
- 1010. - bottom: -5px;
- 1011. - left: 17px;
- 1012. - z-index: 2001;
- 1013. - }
- 1014. - .ge_ad_hint_tt .tail {
- 1015. - background: url(/images/ddtooltip.png) -3px -5px no-repeat;
- 1016. - width: 11px;
- 1017. - height: 8px;
- 1018. - }
- 1019. - .ge_ad_hint_tt .toup .tail_wrap {
- 1020. - top: -7px;
- 1021. - bottom: auto;
- 1022. - }
- 1023. - .ge_ad_hint_tt .toup .tail {
- 1024. - background-position: -3px 2px;
- 1025. - }
- 1026. - .ge_ad_hint_tt .hint_wrap {
- 1027. - width: 255px;
- 1028. - padding: 8px 5px;
- 1029. - line-height: 160%;
- 1030. - color: #000000;
- 1031. - }
- 1032. - .ge_ad_tt_list {
- 1033. - list-style: url(/images/bullet.gif) outside;
- 1034. - padding: 0 0 0 15px;
- 1035. - margin: 0;
- 1036. - max-width: 240px;
- 1037. - color: #000;
- 1038. - }
- 1039. -
- 1040. - .group_ad_not_found {
- 1041. - margin: 20px 20px 15px;
- 1042. - padding: 20px 0;
- 1043. - line-height: 200%;
- 1044. - text-align: center;
- 1045. - color: #777;
- 1046. - }
- 1047. - .group_ad_not_found.table {
- 1048. - margin: 0px;
- 1049. - background-color: #f7f7f7;
- 1050. - }
- 1051. - .group_ad_table {
- 1052. - border-collapse: collapse;
- 1053. - width: 100%;
- 1054. - }
- 1055. - .group_ad_table th {
- 1056. - padding: 9px 15px 11px 5px;
- 1057. - background-color: #e9edf0;
- 1058. - color: #587183;
- 1059. - font-weight: bold;
- 1060. - }
- 1061. - .group_ad_table th:first-child {
- 1062. - padding-left: 10px;
- 1063. - }
- 1064. - .group_ad_table th.actions {
- 1065. - text-align: center;
- 1066. - width: 130px;
- 1067. - }
- 1068. - .group_ad_table th.info {
- 1069. - width: 150px;
- 1070. - }
- 1071. - .group_ad_table tr {
- 1072. - border-left: 1px solid #e9edf0;
- 1073. - border-right: 1px solid #e9edf0;
- 1074. - }
- 1075. - .group_ad_table tr.even {
- 1076. - background-color: #f5f7f7;
- 1077. - }
- 1078. - .group_ad_table tr:first-child {
- 1079. - border-top: 1px solid #e9edf0;
- 1080. - }
- 1081. - .group_ad_table tr:last-child {
- 1082. - border-bottom: 1px solid #e9edf0;
- 1083. - }
- 1084. - .group_ad_table td {
- 1085. - padding: 10px 5px;
- 1086. - text-align: left;
- 1087. - vertical-align: top;
- 1088. - line-height: 160%;
- 1089. - }
- 1090. - .group_ad_table td:first-child {
- 1091. - padding-left: 10px;
- 1092. - }
- 1093. - .group_ad_table td:last-child {
- 1094. - padding-right: 10px;
- 1095. - }
- 1096. - .group_ad_table td.not_found {
- 1097. - padding: 0px;
- 1098. - }
- 1099. - .group_ad_table .grey {
- 1100. - color: #666666;
- 1101. - display: inline-block;
- 1102. - min-width: 40px;
- 1103. - margin-right: 5px;
- 1104. - }
- 1105. - .group_ad_table .green {
- 1106. - color: #37702a;
- 1107. - }
- 1108. - .group_ad_table .red {
- 1109. - color: #aa3333;
- 1110. - }
- 1111. -
- 1112. - .group_ad_request_title {
- 1113. - max-width: 300px;
- 1114. - overflow: hidden;
- 1115. - text-overflow: ellipsis;
- 1116. - }
- 1117. - .group_ad_request_status {
- 1118. - line-height: 160%;
- 1119. - }
- 1120. - .group_ad_request_status .extra_info {
- 1121. - padding-bottom: 3px;
- 1122. - }
- 1123. - .group_ad_request_actions {
- 1124. - white-space: nowrap;
- 1125. - text-align: center !important;
- 1126. - }
- 1127. - .group_ad_request_actions a {
- 1128. - display: block;
- 1129. - padding-bottom: 3px;
- 1130. - }
- 1131. - .group_ad_request_button {
- 1132. - margin-bottom: 5px;
- 1133. - }
- 1134. - .group_ad_subtab1 {
- 1135. - float: left;
- 1136. - -moz-border-radius: 2px;
- 1137. - border-radius: 2px;
- 1138. - cursor: pointer;
- 1139. - margin: 3px 3px 0 0;
- 1140. - color: #2B587A;
- 1141. - }
- 1142. - .group_ad_subtab1.hidden {
- 1143. - display: none;
- 1144. - }
- 1145. - .group_ad_subtab1:hover {
- 1146. - background-color: #E1E7ED;
- 1147. - }
- 1148. - .group_ad_subtab1.active {
- 1149. - background-color: #597DA3;
- 1150. - color: white;
- 1151. - cursor: default;
- 1152. - }
- 1153. - .group_ad_subtab2 {
- 1154. - padding: 3px 6px 4px;
- 1155. - }
- 1156. - .group_ad_subtab_cnt {
- 1157. - display: inline-block;
- 1158. - padding-left: 3px;
- 1159. - font-weight: bold;
- 1160. - color: #6E859E;
- 1161. - }
- 1162. - .group_ad_subtab1.active .group_ad_subtab_cnt {
- 1163. - color: #d5dde3;
- 1164. - }
- 1165. - .is_rtl1 .group_ad_subtab_cnt {
- 1166. - padding-left: 0px;
- 1167. - padding-right: 3px;
- 1168. - }
- 1169. - #groups_ad_wrap {
- 1170. - padding: 0;
- 1171. - }
- 1172. - #groups_ad_wrap h2 {
- 1173. - margin-bottom: 7px;
- 1174. - font-size: 1.09em;
- 1175. - }
- 1176. - #group_ad_settings {
- 1177. - padding: 15px;
- 1178. - }
- 1179. - #group_ad_requests_list {
- 1180. - padding: 20px 15px;
- 1181. - background-color: #FFF;
- 1182. - border-top: 1px solid #D9E0E7;
- 1183. - }
- 1184. - #group_ad_requests_table {
- 1185. - margin-top: 10px;
- 1186. - }
- 1187. - #groups_ad_wrap .group_edit_label {
- 1188. - padding: 4px 10px 9px;
- 1189. - width: 215px;
- 1190. - }
- 1191. - #groups_ad_wrap .group_edit_labeled {
- 1192. - padding: 4px 0 9px;
- 1193. - }
- 1194. - #group_ad_settings .info_msg {
- 1195. - margin-bottom: 20px;
- 1196. - border-color: #BCC9D7;
- 1197. - }
- 1198. - #group_ad_settings .group_edit_label {
- 1199. - padding-left: 12px;
- 1200. - width: 115px;
- 1201. - }
- 1202. - #group_ad_status_selector,
- 1203. - #group_ad_cost_text {
- 1204. - border-bottom: 1px dashed #2B587A;
- 1205. - text-decoration: none;
- 1206. - }
- 1207. - #group_ad_cost {
- 1208. - margin-right: 5px;
- 1209. - width: 40px;
- 1210. - }
- 1211. - #group_ad_cost_link {
- 1212. - padding-top: 4px;
- 1213. - }
- 1214. - .group_ad_recom_cost {
- 1215. - padding-left: 8px;
- 1216. - color: #777;
- 1217. - }
- 1218. - .group_ad_saved {
- 1219. - padding-left: 15px;
- 1220. - color: #777;
- 1221. - opacity: 0;
- 1222. - }
- 1223. - #group_ad_bottom_info {
- 1224. - border-top: 1px solid #DAE1E8;
- 1225. - background-color: #F7F7F7;
- 1226. - text-align: center;
- 1227. - padding: 6px 20px;
- 1228. - color: #777;
- 1229. - }
- 1230. -
- 1231. - #group_ad_request_box {
- 1232. - padding: 20px;
- 1233. - background-color: #F7F7F7;
- 1234. - }
- 1235. - .group_ad_request_field {
- 1236. - padding-top: 14px;
- 1237. - }
- 1238. - .group_ad_request_time_label {
- 1239. - width: 100px;
- 1240. - color: #777;
- 1241. - line-height: 160%;
- 1242. - }
- 1243. - .group_ad_request_time {
- 1244. - font-weight: bold;
- 1245. - color: #909090;
- 1246. - line-height: 180%;
- 1247. - }
- 1248. - #group_ad_request_error {
- 1249. - margin: 0 0 15px 0;
- 1250. - display: none;
- 1251. - }
- 1252. - #group_ad_comment {
- 1253. - width: 338px;
- 1254. - height: 45px;
- 1255. - resize: none;
- 1256. - overflow: hidden;
- 1257. - display: block;
- 1258. - }
- 1259. - .groups_ad_request_submit {
- 1260. - padding-top: 20px;
- 1261. - }
- 1262. - .group_ad_request_time_at {
- 1263. - padding: 4px 8px 0;
- 1264. - }
- 1265. - a.group_ad_post_stats,
- 1266. - a.group_ad_post_link {
- 1267. - display: inline-block;
- 1268. - margin: 0 5px 0 0;
- 1269. - padding: 0;
- 1270. - width: 18px;
- 1271. - height: 18px;
- 1272. - background: #ebeff5 url(/images/icons/mono_iconset.gif) no-repeat 4px -204px;
- 1273. - }
- 1274. - a.group_ad_post_link {
- 1275. - background-position: 4px -233px;
- 1276. - }
- 1277. - a.group_ad_post_link.deleted {
- 1278. - opacity: 0.5;
- 1279. - filter: alpha(opacity=50);
- 1280. - cursor: default;
- 1281. - }
- 1282. - a.group_ad_post_stats:hover,
- 1283. - a.group_ad_post_link:hover {
- 1284. - background-color: #dde4ed;
- 1285. - }
- 1286. - a.group_ad_post_link.deleted:hover {
- 1287. - background-color: #ebeff5;
- 1288. - }
- 1289. -
- 1290. - .group_ad_post_more {
- 1291. - position: relative;
- 1292. - top: 2px;
- 1293. - font-weight: bold;
- 1294. - color: #91A4B8;
- 1295. - -webkit-transition: color 200ms linear;
- 1296. - -moz-transition: color 200ms linear;
- 1297. - -o-transition: color 200ms linear;
- 1298. - transition: color 200ms linear;
- 1299. - }
- 1300. - .group_ad_post_more:hover {
- 1301. - color: #45688E;
- 1302. - text-decoration: none;
- 1303. - }
- 1304. -
- 1305. - #ge_ad_notifications_box .info_msg {
- 1306. - padding: 16px 20px;
- 1307. - border: none;
- 1308. - background-color: #EEF0F2;
- 1309. - }
- 1310. - #ge_ad_notifications_error {
- 1311. - margin: 0 10px 10px 10px;
- 1312. - display: none;
- 1313. - }
- 1314. - #ge_ad_notifications_wrap {
- 1315. - padding: 20px 0;
- 1316. - }
- 1317. - #ge_ad_notifications {
- 1318. - border-collapse: collapse;
- 1319. - }
- 1320. - #ge_ad_notifications td {
- 1321. - padding: 0;
- 1322. - }
- 1323. - .ge_ad_notifications_label {
- 1324. - padding-right: 20px!important;
- 1325. - color: #707070;
- 1326. - text-align: right;
- 1327. - width: 200px;
- 1328. - }
- ------
Advertisement
Add Comment
Please, Sign In to add comment