header.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <link rel="icon" href="/images/favicon.ico" type="image/x-icon">
  5. <title>Vesta - <?php echo "$TAB"; ?> </title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  7. <style type="text/css">
  8. body {
  9. margin: 0;
  10. margin-left: auto;
  11. margin-right: auto;
  12. font-family: Arial, Helvetica, sans-serif;
  13. background-color: #e5e5e5;
  14. }
  15. form {
  16. margin: 0;
  17. }
  18. .hidden {
  19. display: none;
  20. }
  21. .main {
  22. background-color: #ffffff;
  23. padding: 0 0 18px 0;
  24. box-shadow: 0 2px 4px rgba(100, 100, 100, 0.3);
  25. }
  26. .top {
  27. color: #ffd76e;
  28. padding: 0;
  29. font-family: Arial, Helvetica, sans-serif;
  30. margin: 0;
  31. width: 990px;
  32. font-size: 10pt;
  33. text-align: left;
  34. border: 0px;
  35. border-collapse:collapse;
  36. }
  37. .top thead td {
  38. background-color: #505050;
  39. border-bottom: 1px solid #fff;
  40. height: 25px;
  41. text-align: right;
  42. padding: 0 24px 0 0px;
  43. weight:120px;
  44. }
  45. .top thead td:first-child{
  46. border-left: 1px solid #fff;
  47. border-right:none;
  48. text-align:left;
  49. padding: 0 0 0 0;
  50. width:auto;
  51. }
  52. .top-link {
  53. padding: 5px 22px 4px;
  54. text-decoration: none;
  55. color: #fff;
  56. border-right: 1px solid #fff;
  57. }
  58. .top-link:hover {
  59. color: #fff;
  60. background-color: #999;
  61. }
  62. .top-link:active{
  63. color: #fff;
  64. background-color: #f79b44;
  65. }
  66. .top-selected-link {
  67. padding: 5px 22px;
  68. text-decoration: none;
  69. color: #555;
  70. background-color: #fff;
  71. border-right: 1px solid #fff;
  72. }
  73. .top-selected-link:hover {
  74. color: #174f82;
  75. }
  76. .top-selected-link:active {
  77. color: #fff;
  78. background-color: #f79b44;
  79. }
  80. .top-user {
  81. padding: 0 2px 0 0;
  82. text-decoration: none;
  83. color: #ffd76e;
  84. }
  85. .top-user:hover {
  86. color: #fff;
  87. }
  88. .top-user:active{
  89. color: #fff;
  90. background-color: #f79b44;
  91. }
  92. .top-logout {
  93. text-decoration: none;
  94. color: #d3d3d3;
  95. border: noner;
  96. }
  97. .top-logout:hover {
  98. color: #fff;
  99. }
  100. .top-logout:active {
  101. color: #fff;
  102. background-color: #f79b44;
  103. }
  104. .nav-logo {
  105. float:left;
  106. height:110px;
  107. width:161px;
  108. margin: 0;
  109. border-bottom: 1px solid #e3e3e3;
  110. }
  111. .nav-lnk {
  112. text-decoration: none;
  113. color: #323232;
  114. float:left;
  115. }
  116. .nav-lnk:active {
  117. color: #f79b44;
  118. }
  119. .nav-block {
  120. margin: 0;
  121. height:110px;
  122. width: 118px;
  123. float:left;
  124. cursor: pointer;
  125. border-bottom: 1px solid #e3e3e3;
  126. }
  127. .nav-block:hover {
  128. height:107px;
  129. border-bottom: 4px solid #f79b44;
  130. }
  131. .nav-selected-block {
  132. margin: 0;
  133. color: #174f82;
  134. height: 107px;
  135. width: 118px;
  136. float: left;
  137. background-color: #fff;
  138. border-bottom: 4px solid #777;
  139. cursor: pointer;
  140. }
  141. .nav-selected-block:hover {
  142. height:107px;
  143. border-bottom: 4px solid #f79b44;
  144. }
  145. .nav-selected-block:active {
  146. color: #f79b44;
  147. }
  148. .nav-header {
  149. padding: 14px 0 0 6px;
  150. margin: 0;
  151. letter-spacing: -1.0px;
  152. font-size: 16pt;
  153. font-weight: bold;
  154. }
  155. .nav-selected-header {
  156. padding: 14px 0 0 6px;
  157. margin: 0;
  158. letter-spacing: -1.0px;
  159. font-size: 16pt;
  160. font-weight: bold;
  161. }
  162. .nav-counters {
  163. padding: 1px 0 0 6px;
  164. margin: 0;
  165. height: 58px;
  166. line-height: 1.4em;
  167. font-size: 9pt;
  168. color: #555;
  169. decoration: none;
  170. }
  171. .submenu {
  172. margin-left: auto;
  173. margin-right: auto;
  174. width: 990px;
  175. font-family:Arial, Helvetica, sans-serif;
  176. height: 54px;
  177. font-size: 10pt;
  178. text-align: left;
  179. vertical-align:top;
  180. padding: 0px 10px 0px 0;
  181. background-color: none repeat scroll 0% 0% white;
  182. }
  183. .submenu td {
  184. vertical-align: middle;
  185. }
  186. .submenu-button-block {
  187. float: left;
  188. }
  189. .submenu-button {
  190. width: 130px;
  191. height: 24px;
  192. cursor: pointer;
  193. color: #333;
  194. background-color: #fafafa;
  195. border: 1px solid #c3c3c3;
  196. border-radius: 3px 3px 3px 3px;
  197. padding: 0;
  198. font-size: 12px;
  199. font-family:Arial, Helvetica, sans-serif;
  200. }
  201. @-moz-document url-prefix() {
  202. .submenu-button {
  203. padding-bottom: 2px;
  204. }
  205. }
  206. .submenu-button:hover {
  207. background-color: #f0f0f0;
  208. }
  209. .submenu-button:active {
  210. color: #fff;
  211. border: 1px solid #f79b44;
  212. background-color: #f79b44;
  213. }
  214. .submenu-select-block {
  215. float:left;
  216. padding-left: 18px;
  217. }
  218. .submenu-select-link {
  219. color: #6A6A6A;
  220. display: block;
  221. float: left;
  222. font-size: 8pt;
  223. letter-spacing: 0.1em;
  224. margin: 6px 6px 0 0;
  225. text-decoration: none;
  226. padding: 0 4px 0 12px
  227. }
  228. .submenu-select-link:hover {
  229. text-decoration: underline;
  230. }
  231. .submenu-select-link:active {
  232. color: #fff;
  233. background-color: #f79b44;
  234. text-decoration: underline;
  235. }
  236. .submenu-select-dropdown {
  237. font-family:Arial, Helvetica, sans-serif;
  238. color: #333333;
  239. display: block;
  240. float: left;
  241. height: 24px;
  242. margin: 0 4px 0 0;
  243. min-width: 138px;
  244. }
  245. .submenu-search-block {
  246. text-align: right;
  247. float: right;
  248. }
  249. .submenu-search-field {
  250. border: 1px solid #d3d3d3;
  251. border-radius: 3px 3px 3px 3px;
  252. color: #333;
  253. font-size: 14px;
  254. background-color: #fff;
  255. float: left;
  256. padding: 0px 3px 0px 3px;
  257. height: 22px;
  258. width: 250px;
  259. margin: 0 4px 0 0;
  260. }
  261. .bottom {
  262. background-color: #ebe9dc;
  263. color: #555;
  264. margin: 30px 0 0 0;
  265. padding: 4px 20px 8px 0;
  266. margin-left: auto;
  267. margin-right: auto;
  268. width: 990px;
  269. font-size: 8pt;
  270. text-align: center;
  271. vertical-align:top;
  272. line-height: 0.8em;
  273. border-top: 4px solid #d3d3d3;
  274. }
  275. .bottom a:link {
  276. font-size: 8pt;
  277. text-decoration: none;
  278. color: #555;
  279. }
  280. .bottom a:visited {
  281. text-decoration: none;
  282. color: #555;
  283. }
  284. .bottom a:hover {
  285. text-decoration: underline;
  286. color: #7fa1cb;
  287. }
  288. .vst {
  289. padding: 0 4px 0 4px;
  290. margin: 0;
  291. text-decoration: none;
  292. color: #999;
  293. font-size: 12pt;
  294. float: left;
  295. }
  296. .vst:hover {
  297. text-decoration: underline;
  298. }
  299. .vst:active {
  300. color: #fff;
  301. background-color: #f79b44;
  302. }
  303. .vst-selected {
  304. padding: 0 4px 0 4px;
  305. margin: 0;
  306. text-decoration: none;
  307. color: #174f82;
  308. font-size: 12pt;
  309. float: left;
  310. }
  311. .vst-selected:hover {
  312. text-decoration: underline;
  313. }
  314. .vst-selected:active {
  315. color: #fff;
  316. background-color: #f79b44;
  317. }
  318. .data {
  319. border-collapse:collapse;
  320. margin-left: auto;
  321. margin-right: auto;
  322. width: 990px;
  323. font-family:Arial, Helvetica, sans-serif;
  324. color: #e5a907;
  325. font-size: 12pt;
  326. text-align: left;
  327. vertical-align:top;
  328. margin: 0;
  329. behavior:url("/css/csshover3.htc");
  330. }
  331. .data a {
  332. text-decoration: none;
  333. }
  334. .data-row:hover {
  335. margin: 0;
  336. background-color: #f7f6ed;
  337. }
  338. .data-row:active {
  339. background-color: #f7f7d8;
  340. }
  341. .datarowhover {
  342. margin: 0;
  343. background-color: #f7f6ed;
  344. }
  345. .data-null {
  346. margin: 0;
  347. width: 990px;
  348. height: 10px;
  349. border-top:1px dotted #d3d3d3;
  350. }
  351. .data-spacer {
  352. margin: 0;
  353. width: 990px;
  354. }
  355. .data-add {
  356. margin: 0;
  357. background-color: #f7f6ed;
  358. border-left: 1px solid #e9e9e9;
  359. border-right: 1px solid #e9e9e9;
  360. border-bottom: 1px solid #e9e9e9;
  361. }
  362. .data-dotted {
  363. text-align: left;
  364. vertical-align:top;
  365. border-top:1px dotted #d3d3d3;
  366. padding: 0 0 26px 0;
  367. margin: 0;
  368. }
  369. .data-dotted td {
  370. margin: 0;
  371. }
  372. .data-col1 {
  373. text-align: left;
  374. padding:0;
  375. }
  376. .data-col1 tr td {
  377. padding:0 0 0 20px;
  378. }
  379. .data-col1 tr:first-child td {
  380. padding:23px 0 0 20px;
  381. }
  382. .data-col2 {
  383. text-align: left;
  384. padding: 0;
  385. overflow: hidden;
  386. }
  387. .data-col2 a:visited {
  388. color: green;
  389. }
  390. .data-col5 {
  391. table-layout: fixed;
  392. text-align: left;
  393. padding: 0;
  394. overflow: hidden;
  395. white-space: nowrap;
  396. }
  397. .data-date {
  398. padding: 0 0 0 18;
  399. letter-spacing: 0.3em;
  400. font-size: 8pt;
  401. color: #6A6A6A
  402. }
  403. .data-active {
  404. font-size: 8pt;
  405. letter-spacing: 0.1em;
  406. color: #81a64f;
  407. padding: 0 0 13 18;
  408. }
  409. .data-suspended {
  410. font-size: 8pt;
  411. letter-spacing: 0.1em;
  412. color: #de5543;
  413. padding: 0 0 13 18;
  414. }
  415. .data-controls {
  416. float: right;
  417. height: 16px;
  418. border-left: 1px solid #d3d3d3;
  419. font-size: 8pt;
  420. padding: 2px 12px 1px 6px;
  421. letter-spacing: 0.1em;
  422. color: #174f82;
  423. text-decoration: none;
  424. cursor: pointer;
  425. }
  426. .data-controls:hover {
  427. color: #fff;
  428. background-color: #f79b44;
  429. }
  430. .data-controls:active {
  431. background-color: #999
  432. }
  433. .data-controls img {
  434. border: 0px;
  435. }
  436. .data-count {
  437. font-family: Arial, Helvetica, sans-serif;
  438. background-color: #f3f3f3;
  439. color: #555;
  440. font-size: 8pt;
  441. margin: 18px 0 0 0;
  442. text-align:right;
  443. padding: 0 16px 0 0;
  444. }
  445. .chart1 {
  446. color:#000;
  447. font-size: 10pt;
  448. }
  449. .chart2 {
  450. color: #484243;
  451. font-size: 8pt;
  452. }
  453. .username {
  454. color: #323232;
  455. font-size: 16pt;
  456. line-height: 1.2em;
  457. }
  458. .domain {
  459. color: #323232;
  460. font-size: 16pt;
  461. line-height: 0.8em;
  462. }
  463. .cron {
  464. color: #323232;
  465. font-size: 18px;
  466. }
  467. .log {
  468. color: #323232;
  469. font-size: 12pt;
  470. }
  471. .aliases {
  472. font-size: 12pt;
  473. color: #99a7af;
  474. padding: 0 0 0 8px;
  475. }
  476. .nginx-ext {
  477. color: black;
  478. vertical-align:top;
  479. font-size: 10pt;
  480. }
  481. .fullname {
  482. font-size: 18px;
  483. color: #99a7af;
  484. padding: 0 0 0 8px;
  485. }
  486. .counter-name {
  487. white-space: nowrap;
  488. vertical-align:top;
  489. line-height: 1.3em;
  490. font-size: 10pt;
  491. color: #505050;
  492. padding: 0 4px 0 0;
  493. }
  494. .cron-counter-name {
  495. vertical-align:top;
  496. line-height: 0.8em;
  497. font-size: 8pt;
  498. padding: 4 0 0 0;
  499. color: #505050;
  500. }
  501. .counter-value {
  502. vertical-align:top;
  503. line-height: 1.2em;
  504. font-size: 10pt;
  505. color: #000;
  506. padding: 0 0 0 4px;
  507. }
  508. .log-counter-value {
  509. vertical-align:top;
  510. font-size: 12pt;
  511. color: #484243;
  512. }
  513. .cron-counter-value {
  514. vertical-align:top;
  515. line-height: 1.2em;
  516. font-size: 12pt;
  517. color: #484243;
  518. }
  519. .name {
  520. font-size: 16pt;
  521. color: #555;
  522. padding: 0 0 0 10px;
  523. }
  524. .vst-ok {
  525. font-size: 18px;
  526. color: #62a358;
  527. padding: 0 0 0 6px;
  528. }
  529. .vst-ok a{
  530. color: #58934f;
  531. text-decoration: none;
  532. }
  533. .vst-ok a:hover{
  534. text-decoration: underline;
  535. }
  536. .vst-error {
  537. font-size: 18px;
  538. color: #de6c5d;
  539. padding: 0 0 0 6px;
  540. }
  541. .vst-text {
  542. color: #323232;
  543. font-size: 12pt;
  544. }
  545. .vst-textinput {
  546. background-color: #fff;
  547. border: 1px solid #c0c0c0;
  548. border-radius: 3px 3px 3px 3px;
  549. color: #555;
  550. font-size: 18px;
  551. padding: 5px;
  552. width: 360px;
  553. height: 120px;
  554. }
  555. .vst-textinput:hover {
  556. border: 1px solid #f79b44;
  557. }
  558. .vst-textinput:focus {
  559. border: 1px solid #f79b44;
  560. }
  561. .vst-textinput:disabled {
  562. background-color: #f1f1f1;
  563. }
  564. .vst-input {
  565. background-color: #fff;
  566. border: 1px solid #c0c0c0;
  567. border-radius: 3px 3px 3px 3px;
  568. color: #555;
  569. font-size: 14pt;
  570. padding: 5px;
  571. width: 360px;
  572. height: 28px;
  573. }
  574. .vst-input:hover {
  575. border: 1px solid #f79b44;
  576. }
  577. .vst-input:focus {
  578. border: 1px solid #f79b44;
  579. }
  580. .vst-input:disabled {
  581. background-color: #f1f1f1;
  582. }
  583. .vst-list {
  584. font-family:Arial, Helvetica, sans-serif;
  585. font-size: 12pt;
  586. color: #555;
  587. height: 30px;
  588. min-width: 136px;
  589. }
  590. @-moz-document url-prefix() {
  591. .vst-list {
  592. padding-top: 2px;
  593. }
  594. }
  595. .vst-checkbox {
  596. padding: 5px;
  597. font-size: 12pt;
  598. }
  599. .vst-checkbox:hover {
  600. border: 1px solid #f79b44;
  601. }
  602. .button {
  603. filter:chroma(color=#000000);
  604. cursor: pointer;
  605. color: #202020;
  606. background-color: #fafafa;
  607. border: 1px solid #c0c0c0;
  608. border-radius: 3px 3px 3px 3px;
  609. font-size: 14px;
  610. padding: 2px 16px;
  611. width: 108px;
  612. height: 34px;
  613. }
  614. .button:hover {
  615. background-color: #f0f0f0;
  616. }
  617. .button:active {
  618. color: #fff;
  619. border: 1px solid #f79b44;
  620. background-color: #f79b44;
  621. }
  622. .genpass {
  623. color: #34536a;
  624. font-size: 8pt;
  625. padding: 0 5px;
  626. letter-spacing: 0.1em;
  627. text-decoration: underline;
  628. }
  629. .genpass:hover {
  630. color: #7fa1cb;
  631. }
  632. .genpass:active {
  633. background-color: #f79b44;
  634. color: #fff;
  635. }
  636. .vst-advanced {
  637. color: #34536a;
  638. font-size: 10pt;
  639. letter-spacing: 0.1em;
  640. text-decoration: none;
  641. padding: 0 2px;
  642. border-bottom: 1px solid #f79b44;
  643. }
  644. .vst-advanced:hover {
  645. color: #7fa1cb;
  646. }
  647. .vst-advanced:active {
  648. color: #fff;
  649. background-color: #f79b44;
  650. }
  651. .fixed{
  652. position: fixed;
  653. border: none;
  654. top: -3px;
  655. border-bottom: 1px solid #d3d3d3;
  656. background-color: #fff;
  657. }
  658. *html .fixed{
  659. position:absolute;
  660. position:fixed;
  661. _position:absolute;
  662. top:0;
  663. _top:expression( eval(document.body.scrollTop) + 'px' );
  664. }
  665. #vstobjects{
  666. padding-top: 192px;
  667. width: 996px;
  668. padding-left: 3px;
  669. min-height: 370px;
  670. }
  671. .login {
  672. font-family:Arial, Helvetica, sans-serif;
  673. margin: 80px 0 80px 0;
  674. padding: 0;
  675. background-color: #fff;
  676. text-align: left;
  677. vertical-align:top;
  678. width: 500px;
  679. box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
  680. }
  681. .login-box {
  682. text-align: left;
  683. vertical-align:top;
  684. color: #323232;
  685. }
  686. .login-bottom {
  687. color: #ebe9dc;
  688. text-align: right;
  689. vertical-align:top;
  690. width: 500px;
  691. height: 50px;
  692. background-color: #ebe9dc;
  693. padding: 0 8px 0 0;
  694. margin: 0;
  695. }
  696. .vestacp{
  697. font-size: 8pt;
  698. color: #323232;
  699. text-align: right;
  700. padding: 20px 0 0 0;
  701. }
  702. .error {
  703. font-size: 10pt;
  704. color: #dE6c5d;
  705. }
  706. </style>
  707. <!--[if IE]>
  708. <style type="text/css">
  709. html, body, div, span, applet, object, iframe {
  710. margin: 0;
  711. padding: 0;
  712. border: 0;
  713. font-size: 100%;
  714. font: inherit;
  715. vertical-align: baseline;
  716. }
  717. .fixed {
  718. margin-top: 0px;
  719. }
  720. .vst-advanced {
  721. text-decoration: underline;
  722. }
  723. #vstobjects{
  724. padding-top: 195px;
  725. min-height: 370px;
  726. height: auto !important;
  727. height: 370px;
  728. width: 996px;
  729. }
  730. .nav-logo {
  731. float:left;
  732. height:112px;
  733. width:161px;
  734. margin: 0;
  735. border-bottom: 1px solid #d3d3d3;
  736. }
  737. .nav-block {
  738. margin: 0;
  739. height:112px;
  740. width: 118px;
  741. float:left;
  742. cursor: pointer;
  743. border-bottom: 1px solid #d3d3d3;
  744. }
  745. .nav-block:hover {
  746. height:109px;
  747. border-bottom: 4px solid #f79b44;
  748. }
  749. .nav-selected-block {
  750. margin: 0;
  751. color: #174f82;
  752. height: 109px;
  753. width: 118px;
  754. float: left;
  755. background-color: #fff;
  756. border-bottom: 4px solid #777;
  757. cursor: pointer;
  758. }
  759. .nav-selected-block:hover {
  760. height:109px;
  761. border-bottom: 4px solid #f79b44;
  762. }
  763. </style>
  764. <![endif]-->
  765. <!--[if IE 7]>
  766. <style type="text/css">
  767. .data-col1 a {
  768. white-space: nowrap;
  769. }
  770. .submenu-button-block {
  771. width: 120px;
  772. }
  773. .submenu-search-block {
  774. width:369px;
  775. }
  776. .submenu-select-block {
  777. width:239px;
  778. }
  779. .submenu-select-dropdown {
  780. position: relative;
  781. top: 2px;
  782. }
  783. </style>
  784. <link rel="stylesheet" type="text/css" href="/css/ie.css" />
  785. <![endif]-->
  786. <link type="text/css" href="/css/jquery-custom-dialogs.css" rel="stylesheet" />
  787. <script type="text/javascript" src="/js/events.js"></script>
  788. <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
  789. <script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js"></script>
  790. <script language="JavaScript">
  791. var checked=false;
  792. var frmname='';
  793. function checkedAll(frmname) {
  794. var valus= document.getElementById(frmname);
  795. if (checked==false) {
  796. checked=true;
  797. } else {
  798. checked = false;
  799. }
  800. for (var i =0; i < valus.elements.length; i++) {
  801. valus.elements[i].checked=checked;
  802. }
  803. }
  804. </script>
  805. <script language="JavaScript">
  806. $('document').ready(function() {
  807. $('#vstobjects').bind('click', function(evt) { // observe change event on whole div#vstobjects
  808. var elm = evt.target; // grab element on which user clicked
  809. var parent = $(elm).hasClass('data-row') ? $(elm) : $(elm).parents('.data-row'); // check if outer element is row container and get it
  810. if (!$(parent).hasClass('selected')) {
  811. parent.addClass('selected'); // add class
  812. parent.find('.ch-toggle').attr('checked', true);
  813. // another actions on checked row
  814. }
  815. else {
  816. parent.removeClass('selected'); // remove class
  817. parent.find('.ch-toggle').attr('checked', false);
  818. // another actions on unchecked row
  819. }
  820. });
  821. });
  822. </script>
  823. </head>
  824. <body>