1require(['dojo/fx/Toggler','dojo/fx','dojo/dom','dojo/dom-class'],function(Toggler,fx,dom,domClass){dojo.global.fctSwitchDivWidget=function(id,idForm){var tmpId=idForm+'pageOngletContentWidget';var arrayDiv=dom.byId(tmpId).getElementsByTagName('div');for(var i=0;i<arrayDiv.length;i++){if(arrayDiv[i].getAttribute('isContainerPrtOnglet')){dom.byId(idForm+'pageOngletCat_inner'+arrayDiv[i].getAttribute('idEnc')).className='dijitTabInnerDiv';domClass.remove(dom.byId(idForm+'pageOngletSsMenu'+arrayDiv[i].getAttribute('idEnc')),'active');if(arrayDiv[i].getAttribute('idForm')==idForm&&arrayDiv[i].getAttribute('idEnc')!=id){var togglerHide=new Toggler({node:arrayDiv[i],showDuration:800,hideDuration:800,showFunc:fx.wipeIn,hideFunc:fx.wipeOut});togglerHide.hide()}}} 2dom.byId(idForm+'pageOngletCat_inner'+id).className='dijitTabInnerDiv2';domClass.add(dom.byId(idForm+'pageOngletSsMenu'+id),'active');var togglerShow=new Toggler({node:dom.byId(idForm+'pageOngletCat_'+id),showDuration:800,hideDuration:800,showFunc:fx.wipeIn,hideFunc:fx.wipeOut});togglerShow.show();return!1}});$(document).ready(function(){autoOpenModal=function(idModal){$('#'+idModal).modal('show')} 3closeModal=function(idModal){$('#'+idModal).modal('hide')}});function oSimpleModal(){this.id='popup';this.content='';this.buttons=[];this.modal=null;this.closeOnEscape=!1;this.draggable=!1;this.resizable=!1;this.onOpen=function(){};this.onClose=function(){};this.width='auto';this.height='auto';this.initialize=function(options){if(typeof options.content!="undefined")this.content=options.content;if(typeof options.buttons!="undefined")this.buttons=options.buttons;if(typeof options.closeOnEscape!="undefined")this.closeOnEscape=options.closeOnEscape;if(typeof options.draggable!="undefined")this.draggable=options.draggable;if(typeof options.resizable!="undefined")this.resizable=options.resizable;if(typeof options.onOpen==="function")this.onOpen=options.onOpen;if(typeof options.onClose==="function")this.onClose=options.onClose;if(typeof options.width==="function")this.width=options.width;if(typeof options.height==="function")this.height=options.height};this.open=function(){if($('#'+this.id).length<=0){$('body').append('<div id="'+this.id+'"></div><div id="'+this.id+'-overlay" class=""></div>')} 4var _this=this;this.modal=$("#"+_this.id).dialog({autoOpen:!0,modal:!0,width:_this.width,height:_this.height,closeOnEscape:_this.closeOnEscape,draggable:_this.draggable,resizable:_this.resizable,open:function(){_this.onOpen();$("#"+_this.id).html(_this.content)},close:function(){_this.onClose();$('.'+_this.id+'-overlay').remove();$('#'+_this.id).remove()},buttons:_this.buttons})} 5this.openFromAjax=function(url,data){if(typeof data==="undefined"){data={}} 6var _this=this;if($('#'+this.id).length<=0){$('body').append('<div id="'+this.id+'"></div><div id="'+this.id+'-overlay" class=""></div>')} 7var _this=this;this.modal=$("#"+_this.id).dialog({autoOpen:!0,modal:!0,width:_this.width,height:_this.height,closeOnEscape:_this.closeOnEscape,draggable:_this.draggable,resizable:_this.resizable,open:function(){_this.onOpen();$("#"+_this.id).html('<img src="/images/InProgress.gif" />');$.ajax({url:url,type:'GET',cache:!1,data:data,dataType:'json',success:function(jsonObj){if(jsonObj.success=='1'){$("#"+_this.id).html(jsonObj.content)}else if(typeof jsonObj.message!="undefined"){$("#"+_this.id).html(jsonObj.message)}else{$("#"+_this.id).html('An error occured.')}},error:function(xhr,status,error){$("#"+_this.id).html('An error occured.')}})},close:function(){_this.onClose();$('.'+_this.id+'-overlay').remove();$('#'+_this.id).remove()},buttons:_this.buttons})}};(function($){$.fn.addAlert=function(options){var settings=$.extend({html:'',type:'info',dismiss:!0,placement:'append'},options);console.log(settings);if(settings.dismiss){settings.html='<button type="button" class="close" data-dismiss="alert" aria-label="Close">'+'<span aria-hidden="true">×</span></button>'+settings.html} 8settings.type=settings.type.toLowerCase();if(settings.type!=='info'&&settings.type!=='warning'&&settings.type!=='danger'&&settings.type!=='success'){settings.type='info'}
9settings.html='<div class="alert alert-'+settings.type+' '+settings.classCustom+'" role="alert">'+settings.html+'</div>';if(settings.placement==='append'){$(this).append(settings.html)}else if(settings.placement==='prepend'){$(this).prepend(settings.html)}else if(settings.placement==='replace'){$(this).html(settings.html)}};$.fn.alertInfo=function(msg){var html='<p>'+msg+'</p>';$(this).addAlert({html:html,type:'info',placement:'replace'})};$.fn.alertWarning=function(msg){var html='<p>'+msg+'</p>';$(this).addAlert({html:html,type:'warning',placement:'replace'})};$.fn.alertDanger=function(msg){var html='<p>'+msg+'</p>';$(this).addAlert({html:html,type:'danger',placement:'replace'})};$.fn.alertSuccess=function(msg){var html='<p>'+msg+'</p>';$(this).addAlert({html:html,type:'success',placement:'replace'})}}(jQuery));$.fn.modal.Constructor.prototype.enforceFocus=function(){modal_this=this;$(document).on('focusin.modal',function(e){if(!modal_this.$element.has(e.target).length&&!$(e.target.parentNode).hasClass('cke_dialog_ui_input_select')&&!$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')&&$(e.target.parentNode).hasClass('unbugFocus')){modal_this.$element.focus()}})}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.