Commit 2149273d authored by Tibor Katelbach's avatar Tibor Katelbach

twix to docs

parent 9c97a856
......@@ -361,6 +361,23 @@ jQuery(document).ready(function() {
else
initDocs("welcome", mainLanguage);
bindLinkDocs()
$("#show-menu-xs").click(function(){
if(!$(this).hasClass("show-dir")){
$(this).addClass("show-dir").data("title", "<?php echo Yii::t("common","Close") ?>").find("i").removeClass("fa-chevron-right").addClass("fa-times");
$("#menu-left").animate({ left : "0%" }, 400 );
}else{
$(this).removeClass("show-dir").data("title", "<?php echo Yii::t("common","Open filtering by type") ?>").find("i").removeClass("fa-times").addClass("fa-chevron-right");
$("#menu-left").animate({ left : "-56%" }, 400 );
}
});
});
function bindLinkDocs() {
$(".link-docs-menu").off().on("click",function(){
if($(this).hasClass("down-menu")){
......@@ -390,20 +407,7 @@ jQuery(document).ready(function() {
//else
navInDocs($(this).data("type"), $(this).data("dir"), $(this).data("get"));
});
$("#show-menu-xs").click(function(){
if(!$(this).hasClass("show-dir")){
$(this).addClass("show-dir").data("title", "<?php echo Yii::t("common","Close") ?>").find("i").removeClass("fa-chevron-right").addClass("fa-times");
$("#menu-left").animate({ left : "0%" }, 400 );
}else{
$(this).removeClass("show-dir").data("title", "<?php echo Yii::t("common","Open filtering by type") ?>").find("i").removeClass("fa-times").addClass("fa-chevron-right");
$("#menu-left").animate({ left : "-56%" }, 400 );
}
});
});
}
function initDocs(page, dir){
if(urlBackHistory.indexOf("#docs") >= 0){
if(userId!="")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment