footer.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. </div>
  2. <script src="/js/jquery.finder.js"></script>
  3. <script type="text/javascript">
  4. lastScrollTop = 0;
  5. $(document).ready(function() {
  6. var isMobile = false; //initiate as false
  7. // device detection
  8. if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
  9. || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))){
  10. isMobile = true;
  11. $('body').addClass('mobile');
  12. }
  13. hover_menu();
  14. $(window).scroll(function(){hover_menu()});
  15. $('.l-sort-toolbar .sort-by').click(function(){
  16. $('.context-menu.sort-order').toggle().css({left: $(this).position().left - 10});
  17. });
  18. // CREATE BUTTON
  19. $('.l-sort__create-btn').hover(function(){
  20. $(".l-sort__create-btn").append("<div id='add-icon'></div>");
  21. $(".l-sort__create-btn").append("<div id='tooltip'>"+$('.l-sort__create-btn').attr('title').replace(' ','&nbsp;')+"</div>");
  22. }, function(){
  23. $("#add-icon").remove();
  24. $("#tooltip").remove();
  25. });
  26. // SEARCH BOX
  27. $('.l-sort-toolbar__search, .l-sort-toolbar__search-box .search-input').hover(function(){
  28. clearTimeout(VE.tmp.search_display_interval);
  29. clearTimeout(VE.tmp.search_hover_interval);
  30. VE.tmp.search_display_interval = setTimeout(function(){$('.search-input').addClass('activated');}, 150);
  31. }, function(){
  32. clearTimeout(VE.tmp.search_display_interval);
  33. clearTimeout(VE.tmp.search_hover_interval);
  34. VE.tmp.search_hover_interval = setTimeout(function(){
  35. if(!VE.tmp.search_activated && !$(".search-input").val().length){
  36. $(".search-input").removeClass('activated');
  37. }
  38. }, 600);
  39. });
  40. $('.search-input').focus(function(){
  41. VE.tmp.search_activated = 1;
  42. clearTimeout(VE.tmp.search_hover_interval);
  43. });
  44. $('.search-input').blur(function(){
  45. VE.tmp.search_activated = 0;
  46. clearTimeout(VE.tmp.search_hover_interval);
  47. VE.tmp.search_hover_interval = setTimeout(function(){
  48. if(!$(".search-input").val().length){
  49. $(".search-input").removeClass('activated');
  50. }
  51. }, 600);
  52. });
  53. // TIMER
  54. if($('.movement.left').length){
  55. VE.helpers.refresh_timer.right = $('.movement.right');
  56. VE.helpers.refresh_timer.left = $('.movement.left');
  57. VE.helpers.refresh_timer.start();
  58. $('.pause').click(function(){
  59. VE.helpers.refresh_timer.stop();
  60. $('.pause').addClass('hidden');
  61. $('.play').removeClass('hidden');
  62. $('.refresh-timer').addClass('paused');
  63. });
  64. $('.play').click(function(){
  65. VE.helpers.refresh_timer.start();
  66. $('.pause').removeClass('hidden');
  67. $('.play').addClass('hidden');
  68. $('.refresh-timer').removeClass('paused');
  69. });
  70. }
  71. // SORTING
  72. $('#vstobjects input, #vstobjects select, #vstobjects textarea').change(function(){VE.tmp.form_changed=1});
  73. $('.sort-order span').click(function(){
  74. $('.context-menu.sort-order').toggle();
  75. if($(this).hasClass('active'))
  76. return;
  77. $('.sort-order span').removeClass('active');
  78. $(this).addClass('active');
  79. VE.tmp.sort_par = $(this).parent('li').attr('entity');
  80. VE.tmp.sort_as_int = $(this).parent('li').attr('sort_as_int');
  81. VE.tmp.sort_direction = $(this).hasClass('up')*1 || -1;
  82. $('.l-sort .sort-by span b').html($(this).parent('li').find('.name').html());
  83. $('.l-sort .sort-by i').removeClass('l-icon-up-arrow l-icon-down-arrow');
  84. $(this).hasClass('up') ? $('.l-sort .sort-by i').addClass('l-icon-up-arrow') : $('.l-sort .sort-by i').addClass('l-icon-down-arrow');
  85. $('.units .l-unit').sort(function (a, b) {
  86. if(VE.tmp.sort_as_int)
  87. return parseInt($(a).attr(VE.tmp.sort_par)) >= parseInt($(b).attr(VE.tmp.sort_par)) ? VE.tmp.sort_direction : VE.tmp.sort_direction * -1;
  88. else
  89. return $(a).attr(VE.tmp.sort_par) <= $(b).attr(VE.tmp.sort_par) ? VE.tmp.sort_direction : VE.tmp.sort_direction * -1;
  90. }).appendTo(".l-center.units");
  91. });
  92. // STARS
  93. $('.l-unit .l-icon-star').click(function(){
  94. var l_unit = $(this).parents('.l-unit');
  95. if(l_unit.hasClass('l-unit--starred')){
  96. // removing star
  97. $.ajax({
  98. method: "POST",
  99. url: "/delete/favorite/index.php",
  100. data: { v_section: l_unit.attr('v_section'), v_unit_id: l_unit.attr('v_unit_id') }
  101. });
  102. l_unit.attr({'sort-star': 0});
  103. l_unit.removeClass('l-unit--starred');
  104. }
  105. else{
  106. $.ajax({
  107. method: "POST",
  108. url: "/add/favorite/index.php",
  109. data: { v_unit_id: l_unit.attr('v_unit_id'), v_section: l_unit.attr('v_section') }
  110. });
  111. l_unit.attr({'sort-star': 1});
  112. l_unit.addClass('l-unit--starred');
  113. }
  114. });
  115. // Shortcuts
  116. shortcut.add("Ctrl+Enter", function(){
  117. $('form#vstobjects').submit();
  118. }, {
  119. 'type': 'keydown',
  120. 'propagate': false,
  121. 'disable_in_input': false,
  122. 'target': document
  123. }
  124. );
  125. shortcut.add("Ctrl+Backspace", function(){
  126. if(VE.tmp.form_changed && $('form#vstobjects .button.cancel')[0]){
  127. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('form#vstobjects input.cancel').attr('onclick').replace("location.href='", "").replace("'",""));
  128. } else if($('form#vstobjects .button.cancel')[0]){
  129. location.href=$('form#vstobjects input.cancel').attr('onclick').replace("location.href='", "").replace("'","");
  130. } else if($('#vstobjects a.button.cancel')[0]){
  131. location.href=$('#vstobjects a.button.cancel').attr('href');
  132. }
  133. }, {
  134. 'type': 'keydown',
  135. 'propagate': false,
  136. 'disable_in_input': false,
  137. 'target': document
  138. }
  139. );
  140. shortcut.add("f", function(){
  141. $('.search-input').addClass('activated').focus();
  142. }, {
  143. 'type': 'keydown',
  144. 'propagate': false,
  145. 'disable_in_input': true,
  146. 'target': document
  147. }
  148. );
  149. $(window).bind('keypress', function(evt) {
  150. var tag = evt.target.tagName.toLowerCase();
  151. if (evt.charCode == 97 && tag != 'input' && tag != 'textarea' && tag != 'selectbox') {
  152. evt.preventDefault();
  153. if (!evt.ctrlKey && !evt.shiftKey) {
  154. if ($('.l-sort__create-btn')[0]) {
  155. location.href=$('.l-sort__create-btn').attr('href');
  156. }
  157. }
  158. else {
  159. if ($('.l-unit .ch-toggle:eq(0)').attr('checked')) {
  160. $('.l-unit').removeClass('selected');
  161. $('.l-unit .ch-toggle').attr('checked', false);
  162. }
  163. else {
  164. $('.l-unit').addClass('selected');
  165. $('.l-unit .ch-toggle').attr('checked', true);
  166. }
  167. }
  168. }
  169. });
  170. shortcut.add("1", function(){
  171. if(VE.tmp.form_changed){
  172. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(1) a').attr('href'));
  173. } else {
  174. location.href=$('.l-stat .l-stat__col:nth-of-type(1) a').attr('href');
  175. }
  176. }, {
  177. 'type': 'keydown',
  178. 'propagate': false,
  179. 'disable_in_input': true,
  180. 'target': document
  181. }
  182. );
  183. shortcut.add("2", function(){
  184. if(VE.tmp.form_changed){
  185. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(2) a').attr('href'));
  186. } else {
  187. location.href=$('.l-stat .l-stat__col:nth-of-type(2) a').attr('href');
  188. }
  189. }, {
  190. 'type': 'keydown',
  191. 'propagate': false,
  192. 'disable_in_input': true,
  193. 'target': document
  194. }
  195. );
  196. shortcut.add("3", function(){
  197. if(VE.tmp.form_changed){
  198. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(3) a').attr('href'));
  199. } else {
  200. location.href=$('.l-stat .l-stat__col:nth-of-type(3) a').attr('href');
  201. }
  202. }, {
  203. 'type': 'keydown',
  204. 'propagate': false,
  205. 'disable_in_input': true,
  206. 'target': document
  207. }
  208. );
  209. shortcut.add("4", function(){
  210. if(VE.tmp.form_changed){
  211. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(4) a').attr('href'));
  212. } else {
  213. location.href=$('.l-stat .l-stat__col:nth-of-type(4) a').attr('href');
  214. }
  215. }, {
  216. 'type': 'keydown',
  217. 'propagate': false,
  218. 'disable_in_input': true,
  219. 'target': document
  220. }
  221. );
  222. shortcut.add("5", function(){
  223. if(VE.tmp.form_changed){
  224. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(5) a').attr('href'));
  225. } else {
  226. location.href=$('.l-stat .l-stat__col:nth-of-type(5) a').attr('href');
  227. }
  228. }, {
  229. 'type': 'keydown',
  230. 'propagate': false,
  231. 'disable_in_input': true,
  232. 'target': document
  233. }
  234. );
  235. shortcut.add("6", function(){
  236. if(VE.tmp.form_changed){
  237. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(6) a').attr('href'));
  238. } else {
  239. location.href=$('.l-stat .l-stat__col:nth-of-type(6) a').attr('href');
  240. }
  241. }, {
  242. 'type': 'keydown',
  243. 'propagate': false,
  244. 'disable_in_input': true,
  245. 'target': document
  246. }
  247. );
  248. shortcut.add("7", function(){
  249. if(VE.tmp.form_changed){
  250. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect'), '', $('.l-stat .l-stat__col:nth-of-type(7) a').attr('href'));
  251. } else {
  252. location.href=$('.l-stat .l-stat__col:nth-of-type(7) a').attr('href');
  253. }
  254. }, {
  255. 'type': 'keydown',
  256. 'propagate': false,
  257. 'disable_in_input': true,
  258. 'target': document
  259. }
  260. );
  261. shortcut.add("h", function(){
  262. $('.shortcuts').toggle();
  263. }, {
  264. 'type': 'keydown',
  265. 'propagate': false,
  266. 'disable_in_input': true,
  267. 'target': document
  268. }
  269. );
  270. shortcut.add("Esc", function(){
  271. $('.shortcuts').hide();
  272. $('input, checkbox, textarea, select').blur();
  273. }, {
  274. 'type': 'keydown',
  275. 'propagate': false,
  276. 'disable_in_input': false,
  277. 'target': document
  278. }
  279. );
  280. shortcut.add("Left", function(){
  281. VE.navigation.move_focus_left();
  282. }, {
  283. 'type': 'keydown',
  284. 'propagate': false,
  285. 'disable_in_input': true,
  286. 'target': document
  287. }
  288. );
  289. shortcut.add("Right", function(){
  290. VE.navigation.move_focus_right();
  291. }, {
  292. 'type': 'keydown',
  293. 'propagate': false,
  294. 'disable_in_input': true,
  295. 'target': document
  296. }
  297. );
  298. shortcut.add("down", function(){
  299. VE.navigation.move_focus_down();
  300. }, {
  301. 'type': 'keydown',
  302. 'propagate': false,
  303. 'disable_in_input': true,
  304. 'target': document
  305. }
  306. );
  307. shortcut.add("up", function(){
  308. VE.navigation.move_focus_up();
  309. }, {
  310. 'type': 'keydown',
  311. 'propagate': false,
  312. 'disable_in_input': true,
  313. 'target': document
  314. }
  315. );
  316. shortcut.add("l", function(){
  317. var elm = $('.units.active .l-unit.focus .shortcut-l');
  318. if(elm.length){
  319. VE.navigation.shortcut(elm);
  320. }
  321. }, {
  322. 'type': 'keydown',
  323. 'propagate': false,
  324. 'disable_in_input': true,
  325. 'target': document
  326. }
  327. );
  328. shortcut.add("s", function(){
  329. var elm = $('.units.active .l-unit.focus .shortcut-s');
  330. if(elm.length){
  331. VE.navigation.shortcut(elm);
  332. }
  333. }, {
  334. 'type': 'keydown',
  335. 'propagate': false,
  336. 'disable_in_input': true,
  337. 'target': document
  338. }
  339. );
  340. shortcut.add("w", function(){
  341. var elm = $('.units.active .l-unit.focus .shortcut-w');
  342. if(elm.length){
  343. VE.navigation.shortcut(elm);
  344. }
  345. }, {
  346. 'type': 'keydown',
  347. 'propagate': false,
  348. 'disable_in_input': true,
  349. 'target': document
  350. }
  351. );
  352. shortcut.add("d", function(){
  353. var elm = $('.units.active .l-unit.focus .shortcut-d');
  354. if(elm.length){
  355. VE.navigation.shortcut(elm);
  356. }
  357. }, {
  358. 'type': 'keydown',
  359. 'propagate': false,
  360. 'disable_in_input': true,
  361. 'target': document
  362. }
  363. );
  364. shortcut.add("r", function(){
  365. var elm = $('.units.active .l-unit.focus .shortcut-r');
  366. if(elm.length){
  367. VE.navigation.shortcut(elm);
  368. }
  369. }, {
  370. 'type': 'keydown',
  371. 'propagate': false,
  372. 'disable_in_input': true,
  373. 'target': document
  374. }
  375. );
  376. shortcut.add("n", function(){
  377. var elm = $('.units.active .l-unit.focus .shortcut-n');
  378. if(elm.length){
  379. VE.navigation.shortcut(elm);
  380. }
  381. }, {
  382. 'type': 'keydown',
  383. 'propagate': false,
  384. 'disable_in_input': true,
  385. 'target': document
  386. }
  387. );
  388. shortcut.add("u", function(){
  389. var elm = $('.units.active .l-unit.focus .shortcut-u');
  390. if(elm.length){
  391. VE.navigation.shortcut(elm);
  392. }
  393. }, {
  394. 'type': 'keydown',
  395. 'propagate': false,
  396. 'disable_in_input': true,
  397. 'target': document
  398. }
  399. );
  400. shortcut.add("Delete", function(){
  401. var elm = $('.units.active .l-unit.focus .shortcut-delete');
  402. if(elm.length){
  403. VE.navigation.shortcut(elm);
  404. }
  405. }, {
  406. 'type': 'keydown',
  407. 'propagate': false,
  408. 'disable_in_input': true,
  409. 'target': document
  410. }
  411. );
  412. shortcut.add("Enter", function(){
  413. if(VE.tmp.form_changed){
  414. if(!$('.ui-dialog').is(':visible')){
  415. VE.helpers.createConfirmationDialog($('.confirmation-text-redirect')[0], '', $(VE.navigation.state.menu_selector + '.focus a').attr('href'));
  416. } else { // if dialog is opened - submitting confirm box by "enter" shortcut
  417. $('.ui-dialog button.submit').click();
  418. }
  419. } else {
  420. if(!$('.ui-dialog').is(':visible')){
  421. var elm = $('.units.active .l-unit.focus .shortcut-enter');
  422. if(elm.length){
  423. VE.navigation.shortcut(elm);
  424. } else {
  425. VE.navigation.enter_focused();
  426. }
  427. } else { // if dialog is opened - submitting confirm box by "enter" shortcut
  428. $('.ui-dialog button.submit').click();
  429. }
  430. }
  431. }, {
  432. 'type': 'keydown',
  433. 'propagate': false,
  434. 'disable_in_input': true,
  435. 'target': document
  436. }
  437. );
  438. $('.shortcuts .close').click(function(){
  439. $('.shortcuts').hide();
  440. });
  441. $('.to-shortcuts').click(function(){
  442. $('.shortcuts').toggle();
  443. });
  444. $(document).click(function(evt){
  445. //close notification popup
  446. if(!$(evt.target).hasClass('l-profile__notifications') && $(evt.target).parents('ul.notification-container').length == 0){
  447. $('.notification-container').hide();
  448. $('.l-profile__notifications').removeClass('active');
  449. }
  450. });
  451. // focusing on the first input at form
  452. if( location.href.indexOf('lead=') == -1 && !$('.ui-dialog').is(':visible') ){
  453. $('#vstobjects .vst-input:not([disabled]), #vstobjects .vst-list:not([disabled])').first().focus();
  454. }
  455. $('.l-profile__notifications').click(function(){
  456. if(!$('.l-profile__notifications').hasClass('active')){
  457. VE.notifications.get_list();
  458. $('.l-profile__notifications').addClass('active');
  459. left = $('.l-profile__notifications').offset().left - $('.notification-container').outerWidth() + 28;
  460. $('.notification-container').css({left: left+'px'});
  461. } else {
  462. $('.notification-container').hide();
  463. $('.l-profile__notifications').removeClass('active');
  464. }
  465. });
  466. VE.navigation.init();
  467. VE.core.register();
  468. if (location.href.search(/list/) != -1) {
  469. var shift_select_ref = $('body').finderSelect({
  470. children: '.l-unit',
  471. 'onFinish': function(evt) {
  472. var ref = $(evt.target);
  473. $('.l-content').find('.l-unit .ch-toggle').attr('checked', false);
  474. $('.l-content').find('.l-unit.selected .ch-toggle').attr('checked', true);
  475. if ($('.l-content').find('.l-unit.selected').length == $('.l-content').find('.l-unit').length) {
  476. $('.toggle-all').addClass('clicked-on');
  477. }
  478. },
  479. 'toggleAllHook': function() {
  480. if ($('.l-unit').length == $('.ch-toggle:checked').length) {
  481. $('.l-unit.selected').removeClass('selected');
  482. $('.ch-toggle').attr('checked', false);
  483. $('#toggle-all').attr('checked', false);
  484. }
  485. else {
  486. $('.ch-toggle').attr('checked', true);
  487. $('#toggle-all').attr('checked', true);
  488. }
  489. }
  490. });
  491. $('table').on('mousedown', 'td', function(e) {
  492. if (e.ctrlKey) {
  493. e.preventDefault();
  494. }
  495. });
  496. }
  497. //
  498. $('form#objects').bind('submit', function(evt) {
  499. $('.l-unit.selected').find('.ch-toggle').attr('checked', true);
  500. });
  501. });
  502. </script>
  503. <div title="Confirmation" class="confirmation-text-redirect hidden">
  504. <p class="confirmation"><?=__('LEAVE_PAGE_CONFIRMATION')?></p>
  505. </div>
  506. <div class="shortcuts" style="display:none">
  507. <div class="header">
  508. <div class="title">Shortcuts</div>
  509. <div class="close"></div>
  510. </div>
  511. <ul>
  512. <li><span class="key">a</span><?=__('Add New object')?></li>
  513. <li><span class="key">Ctrl + Enter</span><?=__('Save Form')?></li>
  514. <li><span class="key">Ctrl + Backspace</span><?=__('Cancel saving form')?></li>
  515. <li class="step-top"><span class="key">1</span><?=__('Go to USER list')?></li>
  516. <li><span class="key">2</span><?=__('Go to WEB list')?></li>
  517. <li><span class="key">3</span><?=__('Go to DNS list')?></li>
  518. <li><span class="key">4</span><?=__('Go to MAIL list')?></li>
  519. <li><span class="key">5</span><?=__('Go to DB list')?></li>
  520. <li><span class="key">6</span><?=__('Go to CRON list')?></li>
  521. <li><span class="key">7</span><?=__('Go to BACKUP list')?></li>
  522. </ul>
  523. <ul>
  524. <li><span class="key">f</span><?=__('Focus on search')?></li>
  525. <li class="step-top"><span class="key">h</span><?=__('Display/Close shortcuts')?></li>
  526. <li class="step-top"><span class="key bigger">&larr;</span><?=__('Move backward through top menu')?></li>
  527. <li><span class="key bigger">&rarr;</span><?=__('Move forward through top menu')?></li>
  528. <li><span class="key">Enter</span><?=__('Enter focused element')?></li>
  529. <li class="step-top"><span class="key bigger">&uarr;</span><?=__('Move up through elements list')?></li>
  530. <li><span class="key bigger">&darr;</span><?=__('Move down through elements list')?></li>
  531. </ul>
  532. </div>
  533. </body>
  534. </html>