//CHARGEMENT DE LA PAGE function init_plugin_git(){ switch($.urlParam('page')){ default: break; } git_git_repository_search(); } function hackpoint_resource_git_save(){ if($('.hackpoint').hasClass('readonly')) return; var data = {}; data.action = 'hackpoint_resource_git_save'; data.id = $('#sketch-editor').attr('data-id'); data.repository = $('#repository-form').attr("data-repository"); data.url = $('#url').val(); data.synchronise = $('#synchronise').prop('checked'); $('.sketch-preloader').show(); $.action(data,function(r){ $('#repository-form').attr("data-repository",r.repository); setTimeout(function(){ $('.sketch-preloader').fadeOut(200); },300); hackpoint_resource_git_explore(); }); } function hackpoint_resource_git_init(){ hackpoint_resource_git_explore(); } function hackpoint_resource_git_explore(){ var data = {}; data.action = 'hackpoint_resource_git_explore'; data.id = $('#sketch-editor').attr('data-id'); $('#git-browser').html('
Mise à jour du dépôt, veuillez patienter...
'); $.action(data,function(r){ setTimeout(function(){ $('.sketch-preloader').fadeOut(200); },300); $('#git-browser').html('
'); var documentApi = new DocumentApi('#file-browser',{ root : r.root }); documentApi.hidePanel('detail'); documentApi.rightEdit = false; documentApi.rightDelete = false; documentApi.rightPermission = false; documentApi.load(); init_components(); }); }