....................................../////.===Hehe-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 104.21.27.90  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.3
System : Linux 4e27b89abc44 6.8.0-147-generic #147-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 24 11:33:16 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /sites/xo-fab.com/www/media/com_accordeonmenuck/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /sites/xo-fab.com/www/media/com_accordeonmenuck/assets//__accordeonmenuck.js
/**
 * @name		Accordeon Menu CK params
 * @package		com_accordeonmenuck
 * @copyright	Copyright (C) 2016. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
 */

var $ck = jQuery.noConflict();

/**
* Insert image from com_media
*/
function jInsertFieldValue(value, id) {
	$ck('#'+id).val(value);
	$ck('#'+id).trigger('change');
}

function jInsertEditorText(value, id) {
	jInsertFieldValue(value, id);
}

/**
* Render the styles from the module helper
*/
function preview_stylesparams(button) {
	if (! button) button = '#ckpopupstyleswizard_makepreview';
	add_wait_icon(button);
	var myurl = 'index.php?option=com_accordeonmenuck&task=previewModuleStyles';
	$ck.ajax({
		type: "POST",
		url: myurl,
		data: {
			menuID: 'accordeonck_previewmodule',
			menustyles: make_json_fields('menustyles'),
			level1itemgroup: make_json_fields('level1itemgroup'),
			level1itemnormalstyles: make_json_fields('level1itemnormalstyles'),
			level1itemhoverstyles: make_json_fields('level1itemhoverstyles'),
			level1itemactivestyles: make_json_fields('level1itemactivestyles'),
			level1itemnormalstylesicon: make_json_fields('level1itemnormalstylesicon'),
			level1itemhoverstylesicon: make_json_fields('level1itemhoverstylesicon'),
			level2menustyles: make_json_fields('level2menustyles'),
			level2itemgroup: make_json_fields('level2itemgroup'),
			level2itemnormalstyles: make_json_fields('level2itemnormalstyles'),
			level2itemhoverstyles: make_json_fields('level2itemhoverstyles'),
			level2itemactivestyles: make_json_fields('level2itemactivestyles'),
			level2itemnormalstylesicon: make_json_fields('level2itemnormalstylesicon'),
			level2itemhoverstylesicon: make_json_fields('level2itemhoverstylesicon'),
			level3menustyles: make_json_fields('level3menustyles'),
			level3itemgroup: make_json_fields('level3itemgroup'),
			level3itemnormalstyles: make_json_fields('level3itemnormalstyles'),
			level3itemhoverstyles: make_json_fields('level3itemhoverstyles'),
			level3itemactivestyles: make_json_fields('level3itemactivestyles'),
			level3itemnormalstylesicon: make_json_fields('level1itemnormalstylesicon'),
			level3itemhoverstylesicon: make_json_fields('level1itemhoverstylesicon'),
			headingstyles: make_json_fields('headingstyles'),
			customcss: $ck('#customcss').val()
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,6).toLowerCase() != '|okck|' ) {
			 alert(response);
//			show_ckmodal(response);
		} else {
			response = response.replace(/\|okck\|/g , '');
			jQuery('#ckpopupstyleswizard_preview > .ckstyle').html(response);
			ckLoadGfontStylesheets();
		}
		remove_wait_icon(button);
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/**
* Loop through the params to save
*/
function save_stylesparams(button, id, layout) {
	if (! layout) layout = '';
	add_wait_icon(button);
	var myurl = 'index.php?option=com_accordeonmenuck&task=saveModuleStyles';
	$ck.ajax({
		type: "POST",
		url: myurl,
		data: {
			id: id,
			menuID: 'accordeonck_previewmodule',
			menustyles: make_json_fields('menustyles'),
			level1itemgroup: make_json_fields('level1itemgroup'),
			level1itemnormalstyles: make_json_fields('level1itemnormalstyles'),
			level1itemhoverstyles: make_json_fields('level1itemhoverstyles'),
			level1itemactivestyles: make_json_fields('level1itemactivestyles'),
			level1itemnormalstylesicon: make_json_fields('level1itemnormalstylesicon'),
			level1itemhoverstylesicon: make_json_fields('level1itemhoverstylesicon'),
			level2menustyles: make_json_fields('level2menustyles'),
			level2itemgroup: make_json_fields('level2itemgroup'),
			level2itemnormalstyles: make_json_fields('level2itemnormalstyles'),
			level2itemhoverstyles: make_json_fields('level2itemhoverstyles'),
			level2itemactivestyles: make_json_fields('level2itemactivestyles'),
			level2itemnormalstylesicon: make_json_fields('level2itemnormalstylesicon'),
			level2itemhoverstylesicon: make_json_fields('level2itemhoverstylesicon'),
			level3menustyles: make_json_fields('level3menustyles'),
			level3itemgroup: make_json_fields('level3itemgroup'),
			level3itemnormalstyles: make_json_fields('level3itemnormalstyles'),
			level3itemhoverstyles: make_json_fields('level3itemhoverstyles'),
			level3itemactivestyles: make_json_fields('level3itemactivestyles'),
			level3itemnormalstylesicon: make_json_fields('level1itemnormalstylesicon'),
			level3itemhoverstylesicon: make_json_fields('level1itemhoverstylesicon'),
			headingstyles: make_json_fields('headingstyles'),
			orientation: $ck('input[name=orientation]:checked').val(),
			customcss: $ck('#customcss').val()
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,1).toLowerCase() != '1' ) {
			 alert(response);
//			show_ckmodal(response);
		} else {
			var params = get_params_list();
			for (i=0;i<params.length;i++) {
				var param = params[i];
				var value = make_json_fields(param);
				if (window.parent.document.getElementById('jform_params_'+param)) window.parent.document.getElementById('jform_params_'+param).value = value;
			}
//			response = response.replace(/\|okck\|/g , '');
//			jQuery('#ckpopupstyleswizard_preview > .ckstyle').html(response);
//			ckLoadGfontStylesheets();
		}
		remove_wait_icon(button);
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

function ckLoadGfontStylesheets() {
	var gfonturl1 = $ck('#menustylestextisgfont').val() ? get_gfont_stylesheet($ck('#menustylesfontfamily').val())  : '';
	var gfonturl2 = $ck('#level2itemnormalstylestextisgfont').val() ?get_gfont_stylesheet($ck('#level2itemnormalstylesfontfamily').val()) : '';

	jQuery('#ckpopupstyleswizard_preview > .ckgfontstylesheet').html(gfonturl1 + gfonturl2);
}

function get_gfont_stylesheet(family) {
	if (! family) return '';
	return ("<link href='https://fonts.googleapis.com/css?family="+family+"' rel='stylesheet' type='text/css'>");
}

/**
* Encode the params in json
*/
function make_json_fields(prefix) {
	var fields = [];
	$ck('#ckpopupstyleswizard .' + prefix).each(function(i, field) {
		field = $ck(field);
		var  fieldobj = {};
		if ( field.attr('type') == 'radio' ) {
			if ( field.attr('checked') == 'checked' ) {
				fieldobj['id'] = field.attr('name');
				fieldobj['value'] = field.val();
				fields.push(fieldobj);
			}
		} else if ( field.attr('type') != 'radio' ) {
			fieldobj['id'] = field.attr('id');
			fieldobj['value'] = field.val();
			fields.push(fieldobj);
		}
	});
	fields = JSON.stringify(fields);

	return fields.replace(/"/g, "|qq|");
}

/**
* Set the params array
*/
function get_params_list() {
	var styles = new Array('menustyles'
						,'level1itemnormalstyles'
						,'level1itemgroup'
						,'level1itemnormalstylesicon'
						,'level1itemhoverstyles'
						,'level1itemactivestyles'
						,'level1itemnormalstylesicon'
						,'level1itemhoverstylesicon'
						,'level2menustyles'
						,'level2itemgroup'
						,'level2itemnormalstyles'
						,'level2itemnormalstylesicon'
						,'level2itemhoverstyles'
						,'level2itemactivestyles'
						,'level2itemnormalstylesicon'
						,'level2itemhoverstylesicon'
						,'level3menustyles'
						,'level3itemgroup'
						,'level3itemnormalstyles'
						,'level3itemnormalstylesicon'
						,'level3itemhoverstyles'
						,'level3itemactivestyles'
						,'level3itemnormalstylesicon'
						,'level3itemhoverstylesicon'
						,'headingstyles'
						,'customcss'
						);

	return styles;
}

/**
* Set the options array
*/
function get_options_list() {
	var options = new Array('orientation'
						);

	return options;
}

function add_wait_icon(button) {
	$ck(button).addClass('ckwait');
}

function remove_wait_icon(button) {
	$ck(button).removeClass('ckwait');
}

/**
* Save the param in the module options
*/
function ckSaveParam(id, param, value) {
	var myurl = 'index.php?option=com_accordeonmenuck&task=saveParam';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: false,
		data: {
			id: id,
			param: param,
			value: value
		}
	}).done(function(response) {
		response = response.trim();
		if (response != '1') {
			show_ckmodal(Joomla.JText._('CK_ERROR_SAVING_PARAM', 'Error when saving the param : ' + param) + '. ' + response);
			// alert(Joomla.JText._('CK_ERROR_SAVING_PARAM', 'Error when saving the param : ' + param) + '. ' + response);
		}
		if (window.parent.document.getElementById('jform_params_'+param)) window.parent.document.getElementById('jform_params_'+param).value = value;
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/**
* Loop through the params to load
*/
function load_stylesparams(id) {
	add_wait_icon('#ckpopupstyleswizard_makepreview');
	var styles_to_load = get_params_list();
	for (i=0;i<styles_to_load.length;i++) {
		$ck(document.body).append('<i class="hidden-loadingstylesparam '+i+'"></i>');
		load_stylesparam(id, styles_to_load[i]);
	}
	$ck(document.body).append('<i class="hidden-loadingstylesparam '+i+'"></i>');
	load_options(id);
	// var options_to_load = get_options_list();
	// for (i=0;i<options_to_load.length;i++) {
		// ckSetValueToField(options_to_load[i], value);
	// }
}

/**
* Load the param from the module options
*/
function load_options(id) {
	var myurl = 'index.php?option=com_accordeonmenuck&task=loadParam';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: true,
		data: {
			id: id,
			param: '',
			all: true
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,5).toLowerCase() == 'error' ) {
			show_ckmodal(response);
			// alert(response);
		} else {
			if ( response.length ) {
				var options = jQuery.parseJSON(response);
				// load all the options other than the styles params
				var options_to_load = get_options_list();
				for (i=0;i<options_to_load.length;i++) {
					// compatibility for old j!2.5 orientation value
					if ( options_to_load[i] === 'orientation' && options[options_to_load[i]] != 'vertical' && options[options_to_load[i]] != 'horizontal' ) {
						options[options_to_load[i]] = ( options[options_to_load[i]] === '1' ) ? 'vertical' : options[options_to_load[i]];
					}
					ckSetValueToField(options_to_load[i], options[options_to_load[i]]);
				}
			}
			if ($ck('.hidden-loadingstylesparam').length) $ck($ck('.hidden-loadingstylesparam')[0]).remove();
			// launch the preview once all settings have been applied
			if ( !$ck('.hidden-loadingstylesparam').length ) {
				// launch the preview
				preview_stylesparams('#ckpopupstyleswizard_makepreview');
				// init the colorpickers
				jscolor.init();
			}
		}
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/**
* Load the param from the module options
*/
function load_stylesparam(id, param) {
	var myurl = 'index.php?option=com_accordeonmenuck&task=loadParam';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: true,
		data: {
			id: id,
			param: param
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,5).toLowerCase() == 'error' ) {
			show_ckmodal(response);
			// alert(response);
		} else if ( response.length ) {
			if (param == 'customcss') {
				ckSetValueToField('customcss', response);
			} else {
			apply_stylesparam(param, response);
		}
		}
		if ($ck('.hidden-loadingstylesparam').length) $ck($ck('.hidden-loadingstylesparam')[0]).remove();
		if ( !$ck('.hidden-loadingstylesparam').length ) {
			// launch the preview
			preview_stylesparams('#ckpopupstyleswizard_makepreview');
			// init the colorpickers
			jscolor.init();
		}

	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/**
* Set the stored value for each field
*/
function apply_stylesparam(param, json_value) {
	var searchWords = ["usefont", "usemargin", "usebackground", "usegradient", "useroundedcorners", "useshadow", "useborders", "usetextshadow"];
	var fields = jQuery.parseJSON(json_value.replace(/\|qq\|/g, "\""));
	var i;

	for (i=0;i<fields.length;i++) {
		fieldobj = fields[i];
		fieldobj['id'] = fieldobj['id'].replace(param + '_', ''); // compatibility for old params
		ckSetValueToField(fieldobj['id'], fieldobj['value']);
		// look if the 'use' word is present, we launch the migration script
		/*if (!$ck(document.body).hasClass('migration_tested'+param) && multiSearchOr(fieldobj['id'], searchWords, false)) {
			$ck(document.body).addClass('migration_tested'+param);
				$ck(document.body).addClass('yes_do_migration'+param);
		}*/
	}
	// if needed, we launch the migration script
	/*if ($ck(document.body).hasClass('yes_do_migration'+param)) {
		process_automatic_migration(param, fields, searchWords)
	} */
}

/**
* Method to look for unwanted values coming from the old version
*/
function process_automatic_migration(param, fields, searchWords) {
	var i;
	var relations = get_relations_for_migration();
	for (i=0;i<fields.length;i++) {
		fieldobj = fields[i];
		fieldobj['id'] = fieldobj['id'].replace(param + '_', ''); // compatibility for old params
		if (parameter = multiSearchOr(fieldobj['id'], searchWords, true)) {
			var prefix = fieldobj['id'].replace(parameter, '');
			if (fieldobj['value'] != '1') {
				var elements_to_reset = relations[parameter].split(',');
				for (j=0;j<elements_to_reset.length;j++) {
					$ck('#'+prefix + elements_to_reset[j]).val('');
				}
			}
		}
	}
}

/**
* Set the relations between the old activation field and the dependant fields
* for the migration script
*/
function get_relations_for_migration() {
	return { "usefont" : "fontsize,fontcolor,fontweight,descfontsize,descfontcolor,textgfont"
		, "usemargin" : "margintop,marginright,marginbottom,marginleft,paddingtop,paddingright,paddingbottom,paddingleft"
		, "usebackground": "bgcolor1,bgopacity,bgimage,bgpositionxbgpositiony,bgimagerepeat"
		, "usegradient" : "bgcolor2"
		, "useroundedcorners" : "roundedcornerstl,roundedcornerstr,roundedcornersbr,roundedcornersbl"
		, "useshadow" : "shadowcolor,shadowblur,shadowspread,shadowoffsetx,shadowoffsety,shadowinset"
		, "useborders" : "bordercolor,bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth"
		, "usetextshadow" : "textshadowcolor,textshadowblur,textshadowoffsetx,textshadowoffsety"
		, "useparentitem" : "parentitemimage,parentitemimagepositionx,parentitemimagepositiony,parentitemimagerepeat,parentitempaddingtop,parentitempaddingright,parentitempaddingbottom,parentitempaddingleft"
		};
}

/**
* Search for a string from a list of words
* for the migration script
*/
function multiSearchOr(text, searchWords, textual){
	var searchExp = new RegExp(searchWords.join("$|"),"gi");
	if (matches = text.match(searchExp)) {
		$ck(document.body).addClass('migration_tested');
		if (textual == true) return matches[0];
		return true;
	}
	return false;
}


function ckSetValueToField(id, value) {
	var field = $ck('#' + id);
	if (!field.length) {
		if ($ck('#ckpopupstyleswizard input[name=' + id + ']').length) {
			$ck('#ckpopupstyleswizard input[name=' + id + ']').each(function(i, radio) {
				radio = $ck(radio);
				if (radio.val() == value) {
					radio.attr('checked', 'checked');
				} else {
					radio.removeAttr('checked');
				}
			});
		}
	} else {
		if (field.hasClass('color')) field.css('background',value);
		$ck('#' + id).val(value);
	}
}

/**
* Get the theme from the module options and load the needed stylesheets
*/
function load_module_theme(id) {
	var myurl = 'index.php?option=com_accordeonmenuck&task=loadParam';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: true,
		data: {
			id: id,
			param: 'theme'
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,5).toLowerCase() == 'error' ) {
			show_ckmodal(response);
			// alert(response);
			change_theme_stylesheet('blank');
		} else {
			change_theme_stylesheet(response);
		}
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/**
* Load the stylesheet from the module theme
*/
function change_theme_stylesheet(name) {
	$ck('.themethumb').removeClass('selected');
	$ck('.themethumb[data-name=' + name + ']').addClass('selected');
	$ck('#ckpopupstyleswizard_preview > .ckstylesheet').empty() //.append('<link rel="stylesheet" href="'+URIROOT+'/modules/mod_accordeonmenuck/themes/'+name+'/css/moo_maximenuhck.css" type="text/css" />')
		.append('<link rel="stylesheet" href="'+URIROOT+'/modules/mod_accordeonmenuck/themes/'+name+'/mod_accordeonmenuck_css.php?cssid=accordeonck_previewmodule" type="text/css" />');
}

/**
* Load the php module layout
*/
function change_layout(name, orientation) {
	add_wait_icon('#ckpopupstyleswizard_makepreview');
	if (! orientation) orientation = $ck('input[name=orientation]:checked').val();
	$ck('.layoutthumb').removeClass('selected');
	$ck('.layoutthumb[data-name=' + name + ']').addClass('selected');
	var myurl = 'index.php?option=com_accordeonmenuck&view=styles&layout=default_render_menu_module&modulelayout=' + name;
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: false,
		data: {
			orientation: orientation
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,5).toLowerCase() == 'error' ) {
			remove_wait_icon('#ckpopupstyleswizard_makepreview');
			show_ckmodal(response);
			// alert(response);
		} else {
			$ck('#ckpopupstyleswizard_preview > .inner').empty().append(response);
			remove_wait_icon('#ckpopupstyleswizard_makepreview');
			preview_stylesparams();
		}
		
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/*
* Change the menu orientation
*/
function change_menu_orientation(orientation) {
	change_layout($ck('.layoutthumb.selected').attr('data-name'), orientation);
	if ( orientation === 'vertical' ) {
		$ck('#ckpopupstyleswizard_preview > .inner').css('width', '200px');
	} else {
		$ck('#ckpopupstyleswizard_preview > .inner').css('width', '');
	}
}

/**
* Clear all fields
*/
function clear_fields() {
	var confirm_clear = confirm('This will delete all your settings and reset the styles. Do you want to continue ?');
	if (confirm_clear == false) return false;
	$ck('#ckpopupstyleswizard input').each(function(i, field) {
		field = $ck(field);
		if (field.attr('type') == 'radio') {
			field.removeAttr('checked');
		} else {
			field.val('');
			if (field.hasClass('color')) field.css('background','');
		}
	});
	// launch the preview
	preview_stylesparams('#ckpopupstyleswizard_makepreview');
	return true;
}

function disable_active_styles(tab) {
	$ck(tab).find('input:not(.undisabled)').attr('disabled', 'disabled');
}

function enable_active_styles(tab) {
	$ck(tab).find('input').removeAttr('disabled');
}

function ckCleanGfontName(field) {
	var myurl = 'index.php?option=com_accordeonmenuck&task=cleanGfontName';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: false,
		data: {
			gfont: $ck(field).val().replace("<", "").replace(">", "")
		}
	}).done(function(response) {
		response = response.trim();
		if ( response.substring(0,5).toLowerCase() == 'error' ) {
			show_ckmodal(response);
			// alert(response);
		} else {
			$ck(field).val(response);
		}
		ckCheckFontExists(field);
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

function ckCheckFontExists(field) {
	if (!field.value) return;
	var myurl = '//fonts.googleapis.com/css?family=' + field.value;
	$ck.ajax({
		url: myurl,
		data: {

		},
		statusCode: {
			200: function() {
				$ck(field).next('.isgfont').val('1');
				ckLoadGfontStylesheets();
			}
		}
	}).done(function(response) {
		$ck(field).next('.isgfont').val('0');
	}).fail(function() {
		alert(Joomla.JText._('CK_IS_NOT_GOOGLE_FONT', 'This is not a google font, check that it is loaded in your website'));
		$ck(field).next('.isgfont').val('0');
	});
}

function check_gradient_image_conflict(from, field) {
	if ($ck(from).val()) {
		if ($ck('#'+field).val()) {
			alert('Warning : you can not have a gradient and a background image at the same time. You must choose which one you want to use');
		}
	}
}

// to toggle the fullscreen mode of the sqeezebox
function toggle_fullscreen(doc) {
	$ck(doc.SqueezeBox.win).css({
		width: '100%',
		height: '100%',
		top: '0',
		left: '0'
	});
	$ck(doc.SqueezeBox.win).find('iframe').css({
		width: '100%',
		height: '100%',
		top: '0',
		left: '0'
	});
}

/**
* Load a modal window
*/
function show_ckmodal(txt) {
	$ck(document.body).append('<div id="ckmodal"><div id="ckmodal_title">ERROR MESSAGE FROM MAXIMENU CK PARAMS</div>'+txt+'</div>');
	SqueezeBox.initialize();
	SqueezeBox.open($('ckmodal'), {
		handler: 'adopt',
		size: {x: 600, y: 400}
	});
}

/**
* Migration tool to delete the margins
*/
function delete_values_normal_state(btn) {
	var areyousure = confirm('This will delete all the margins for this item - Normal State. Continue ?');
	if (areyousure == false) return;
	var item = $ck($ck(btn).parents('li')[0]);

	init_item_params_migration(item.attr('data-id'), 'normal', btn);
}

function delete_values_hover_state(btn) {
	var areyousure = confirm('This will delete all the margins for this item - Hover State. Continue ?');
	if (areyousure == false) return;
	var item = $ck($ck(btn).parents('li')[0]);

	init_item_params_migration(item.attr('data-id'), 'hover', btn);
}

function delete_values_active_state(btn) {
	var areyousure = confirm('This will delete all the margins for this item - Active State. Continue ?');
	if (areyousure == false) return;
	var item = $ck($ck(btn).parents('li')[0]);

	init_item_params_migration(item.attr('data-id'), 'active', btn);
}

function init_item_params_migration(id, state, btn) {
	var btnrow = $ck(btn).parents()[0];
	btnrow = $ck(btnrow);
	btnrow.append('<span class="ckwait" style="width:16px;display:inline-block;"></span>');
	var myurl = "index.php?option=com_accordeonmenuck&task=init_item_params_migration";
	jQuery.ajax({
	type: "POST",
	url: myurl,
	async: true,
	data: {
		id: id,
		state: state
		}
	}).done(function(response) { 
		response = response.trim();
		if (response != '1') {
			show_ckmodal(Joomla.JText._('CK_ERROR_SAVING_PARAM', 'Error when saving the params for the state : ' + state) + '. ' + response);
		} else {
//			if (value === '') 
				value = '&nbsp;';
			btnrow.find('.valueck').html(value);
			btnrow.find('.ckwait').remove();
		}
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

function delete_all_values() {
	var areyousure = confirm('This will delete all the margins for all items. Continue ?');
	if (areyousure == false) return;
	var items = $ck('#sortable li');

	items.each(function(i, el){
		el = $ck(el);
		$ck('.waitrow', el).append('<span class="ckwait" style="width:16px;display:inline-block;"></span>');
		var myurl = "index.php?option=com_accordeonmenuck&task=init_item_params_migration";
		jQuery.ajax({
		type: "POST",
		url: myurl,
		async: true,
		data: {
			id: el.attr('data-id'),
			state: 'all'
			}
		}).done(function(response) { 
			response = response.trim();
			if (response != '1') {
				show_ckmodal(Joomla.JText._('CK_ERROR_SAVING_PARAM', 'Error when saving the params for the state : ' + state) + '. ' + response);
			} else {
	//			if (value === '') 
					value = '&nbsp;';
				$ck('.valueck', el).html(value);
				$ck('.ckwait', el).remove();
			}
		}).fail(function() {
			alert(Joomla.JText._('CK_FAILED', 'Failed'));
		});
	});
	

}

function get_params_fields(prefix) {
	var fields = {};
	$ck('#ckpopupstyleswizard .' + prefix).each(function(i, field) {
		field = $ck(field);
		var  fieldobj = {};
		if ( field.attr('type') == 'radio' ) {
			if ( field.attr('checked') == 'checked' ) {
				fields[field.attr('name')] = field.val();
			}
		} else if ( field.attr('type') != 'radio' ) {
			fields[field.attr('id')] = field.val();
		}
	});
	return fields;
}

function exportparams(moduleid) {
	var fields = {};
	var params_list = get_params_list();
	var params = {};
	// make a global object with all fields name and value
	for (i=0;i<params_list.length;i++) {
		$ck.extend(params, get_params_fields(params_list[i]));
	}
	
	var maximenu_styles = JSON.stringify(params);
	maximenu_styles = maximenu_styles.replace(/"/g, "|qq|");

	var myurl = 'index.php?option=com_accordeonmenuck&task=exportParams';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: false,
		data: {
			jsonfields: maximenu_styles,
			moduleid: moduleid
		}
	}).done(function(response) {
		if (response == 'true') {
			if ($ck('#accordeonckexportfile').length) $ck('#accordeonckexportfile').remove();
			$ck('#ckExportPageDownload').append('<div id="accordeonckexportfile"><a class="btn" target="_blank" href="'+URIROOT+'/administrator/components/com_accordeonmenuck/export/exportAccordeonmenuckParams'+moduleid+'.mmck" download="exportAccordeonmenuckParams'+moduleid+'.mmck">'+Joomla.JText._('CK_DOWNLOAD', 'Download')+'</a></div>');
			CKBox.open({handler:'inline', content: 'accordeonckexportpopup', fullscreen: false, size: {x: '400px', y: '100px'}});
		} else {
			alert('test')
		}
	}).fail(function() {
		// alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
	return;
}

function importparams() {
	CKBox.open({id:'accordeonckimportbox', handler:'inline', content: 'accordeonckimportpopup', fullscreen: false, size: {x: '700px', y: '200px'}});
}

function uploadParamsFile(formData) {
	var myurl = 'index.php?option=com_accordeonmenuck&task=uploadParamsFile';
	$ck.ajax({
		type: "POST",
		url: myurl,
		async: false,
		data: formData,
		dataType: 'json',
		processData: false,  // indique à jQuery de ne pas traiter les données
		contentType: false   // indique à jQuery de ne pas configurer le contentType
	}).done(function(response) {
//		console.log(response);
		if(typeof response.error === 'undefined')
		{
			// Success
			importParamsFile(response.data);
		} else {
			console.log('ERROR: ' + response.error);
		}
	}).fail(function() {
		// alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

function importParamsFile(data) {
	var fields = jQuery.parseJSON(data.replace(/\|qq\|/g, "\""));
	for (var field in fields) {
		ckSetValueToField(field, fields[field])
	}

	// launch the preview
	preview_stylesparams('#ckpopupstyleswizard_makepreview');
	CKBox.close('#importPage');
}

function importParamsFirstUse(id) {
	var doimport = confirm('This is the first time you are using the Customizer for this module. Do you want to import the existing styles ?')
	if (! doimport) return;
	var myurl = 'index.php?option=com_accordeonmenuck&task=importModuleParamsFirstUse';
	$ck.ajax({
		type: "POST",
		url: myurl,
		data: {
			id: id
		}
	}).done(function(response) {
		var fields = jQuery.parseJSON(response.replace(/\|qq\|/g, "\""));
		for (var field in fields) {
				ckSetValueToField(field, fields[field]);
		}
		preview_stylesparams();
	}).fail(function() {
		alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

/**
 * Loads the file from the preset and apply it to all fields
 */
function ckLoadPreset(name) {
	var confirm_clear = clear_fields();
	if (confirm_clear == false) return;

	var button = '#ckpopupstyleswizard_makepreview .ckwaiticon';
	add_wait_icon(button);

	// remove the values for all the fields
	

	// ajax call to get the fields
	var myurl = 'index.php?option=com_accordeonmenuck&task=loadPresetFields';
	$ck.ajax({
		type: "POST",
		url: myurl,
		dataType: 'json',
		data: {
			folder: name
		}
	}).done(function(r) {
		if (r.result == 1) {
			var fields = r.fields;
			fields = fields.replace(/\|qq\|/g, '"');
			ckSetFieldsValue(fields);

			// get the value for the custom css
			ckLoadPresetCustomcss(name);
		} else {
			alert('Message : ' + r.message);
			remove_wait_icon(button);
		}
		
	}).fail(function() {
		//alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});

	
}

function ckLoadPresetCustomcss(name) {
	var button = '#ckpopupstyleswizard_makepreview .ckwaiticon';
	// add_wait_icon(button); // already loaded in the previous ajax function load_preset()
	// ajax call to get the custom css
	$ck.ajax({
		type: "POST",
		url: 'index.php?option=com_accordeonmenuck&task=loadPresetCustomcss',
		data: {
			folder: name
		}
	}).done(function(r) {
		if (r.substr(0, 7) == '|ERROR|') {
			alert('Message : ' + r);
		} else {
			$ck('#customcss_area').val(r);
			preview_stylesparams();
		}
		remove_wait_icon(button);
	}).fail(function() {
		//alert(Joomla.JText._('CK_FAILED', 'Failed'));
	});
}

function ckSetFieldsValue(fields) {
	var fields = JSON.parse(fields);
	for (field in fields) {
		ckSetValueToField(field, fields[field]);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit