//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('