');});$accordion.attr('id',accordion_id);if($accordion.find('.panel-collapse').length>1&&!is_collapsed){$accordion.find('.panel-collapse').first().addClass('in');}});jQuery('.bs-wrap-carousel').each(function(){var $carousel=jQuery(this),carousel_id=Math.random().toString(36).substr(2,9),$images=$carousel.find('img'),$slides=$carousel.find('.bs-wrap-slide'),$caption=$carousel.find('.bs-wrap-caption'),$indicators=$carousel.find('ol');$carousel.attr('id',carousel_id);$images.removeClass('media').removeClass('medialeft').removeClass('mediaright').removeClass('mediacenter');if(!$slides.length){$images.wrap('
');}if($caption.length){$caption.removeClass('caption').addClass('carousel-caption');}$carousel.find('.carousel-control').attr('href','#'+carousel_id);for(var i=0;i<$images.length;i++){$indicators.append('
');}$carousel.find('.item').first().addClass('active');$indicators.find('li').first().addClass('active');});jQuery('.bs-wrap-panel').each(function(){var $panel=jQuery(this),$panel_body=$panel.find('.panel-body'),$panel_heading=$panel.find('.panel-heading'),$first_title=$panel_body.find('> h4:first');if($first_title.length&&!$panel_heading.length){var $panel_heading=jQuery('
');$first_title.addClass('panel-title');$panel_heading.append($first_title);$panel.prepend($panel_heading);}});jQuery('.bs-wrap-modal').each(function(){if(jQuery(this).attr('data-show')==true){jQuery(this).modal('show');}else{jQuery(this).modal('hide');}});},0);});function addBtnActionToggleCommentBlock(btn,props,edid){jQuery(btn).click(function(){var comment='';var selection=DWgetSelection(document.getElementById('wiki__text'));if(selection.getLength()){comment=selection.getText();prevchar=selection.obj.value.substring(selection.start-1,selection.start);nextchar=selection.obj.value.substring(selection.end,selection.end+1);lastchar=comment.substr(-1,1);if(!prevchar)prevchar="\n";if(!nextchar)nextchar="\n";}if(comment==''){alert('no text selected');return false;}if(comment.match(/^\s*\/\*/)&&comment.match(/\*\/\s*$/)){if(prevchar=="\n"){comment=comment.replace(/^ *\/\*+ *\n?/,'');}else{comment=comment.replace(/^ *\/\*+ */,'');}comment=comment.replace(/ *\*+\/\s*$/,'');document.getElementById('wiki__text').focus();pasteText(selection,comment);}else{if(prevchar=="\n"&&lastchar=="\n"){comment="/*\n"+comment+" */\n";}else{if(comment.match(/^\n/)){comment=comment.replace(/^\n?/,"/*\n");comment=comment+" */";}else{comment="/* "+comment+" */";}if(!(prevchar.match(/\s/))){comment=" "+comment;}if(!(nextchar.match(/\s/))){comment=comment+" ";}}document.getElementById('wiki__text').focus();pasteText(selection,comment);}return true;});return false;}jQuery(function(){jQuery('#usrmgr__del').click(function(){return confirm(LANG.del_confirm);});});jQuery(function(){dw_locktimer.init(840,1);});