Commit 5874a4c6 authored by ramiandrison gova's avatar ramiandrison gova

update in gallery

parent 2461b0dd
......@@ -64,8 +64,10 @@ folder={
});
},
appendLevel: function(domTarget, inFolder, name, idFolder, contKey, docT){
if(docType=="") $(".btn-add-folder").hide();
if(docType!="") $(".btn-add-folder").show();
if(docType=="")
$(".btn-add-folder").hide();
else
$(".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;
......
......@@ -269,19 +269,3 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->
});
}
</script>
<script>
/*$(document).ready(function(){
hashchange();
function hashchange(){
var arrayHash = (window.location.hash).split(".");
$('.btn-add-folder').show();
if ((arrayHash[arrayHash.length-1] == "gallery" && arrayHash[arrayHash.length-2] == "view") ||
(arrayHash[arrayHash.length-1] == "slider" && arrayHash[arrayHash.length-2] == "key"))
$('.btn-add-folder').hide();
}
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