Commit 2461b0dd authored by ramiandrison gova's avatar ramiandrison gova

update gallery "create folder btn"

parent ae923ea1
......@@ -64,6 +64,8 @@ folder={
});
},
appendLevel: function(domTarget, inFolder, name, idFolder, contKey, docT){
if(docType=="") $(".btn-add-folder").hide();
if(docType!="") $(".btn-add-folder").show();
//mylog.log("folder.appendLevel", domTarget, inFolder, name, idFolder, contKey, docT);
className=(inFolder)? "btn btn-default": "bold text-dark";
foldKey=(notNull(idFolder)) ? idFolder : folderId;
......@@ -267,6 +269,7 @@ folder={
}
},
galleryGuide : function (domTarget, inFolder, level, name, docT, contentK, foldId){
$(".btn-add-folder").hide();
docType=(typeof docT != "undefined" ) ? docT : "";
contentKey=(typeof contentK != "undefined" ) ? contentK : "";
folderId=(typeof foldId != "undefined" ) ? foldId : "";
......
......@@ -211,7 +211,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->
if (!$(e.target).hasClass("toolsFolder") && !$(e.target).hasClass("toolsFolderOptions")) {
newCollection = "";
if ($(this).data("folder-name") != "")
newCollection = $(this).data("folder-name");
newCollection = $(this).data("folder-name");
contentKey = $(this).data("key");
docType = $(this).data("doctype");
folderId = $(this).data("folder");
......@@ -270,8 +270,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->
}
</script>
<script>
$(document).ready(function(){
/*$(document).ready(function(){
hashchange();
function hashchange(){
var arrayHash = (window.location.hash).split(".");
......@@ -284,5 +283,5 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->
jQuery(window).on('hashchange', function(){
hashchange();
});
})
})*/
</script>
\ No newline at end of file
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