Valentin CARRUESCO 5 years ago
parent
commit
04d35ccb88
2 changed files with 20 additions and 3 deletions
  1. 2 2
      plugin/hackpoint/hackpoint.plugin.php
  2. 18 1
      plugin/hackpoint/js/main.js

+ 2 - 2
plugin/hackpoint/hackpoint.plugin.php

@@ -7,8 +7,8 @@ function hackpoint_menu(&$menuItems){
 	if(!$myUser->can('hackpoint','read')) return;
 	$menuItems[] = array(
 		'sort'=>3,
-		'url'=>'index.php?module=hackpoint',
-		'label'=>'Hackpoint',
+		'url'=>'index.php',
+		'label'=>'Sketch',
 		'icon'=> 'fas fa-wrench',
 		'color'=> '#3498db'
 	);

+ 18 - 1
plugin/hackpoint/js/main.js

@@ -88,7 +88,24 @@ function hackpoint_sketch_search(callback){
 	$('#sketchs').fill({
 		action:'hackpoint_sketch_search',
 		filters : $('#filters').filters(),
-		sort : $('#sketchs').sortable_table('get')
+		sort : $('#sketchs').sortable_table('get'),
+		showing : function(li,i){
+			//affiche les menu de façon progressive
+	    	li.removeClass('hidden')
+	    	.css({
+	    		transform:'scale(0)',
+	    		opacity:0,
+	    		transition:'transform 0.2s ease-in-out,opacity 0.2s ease-in-out'
+	    	});
+	    	
+    		setTimeout(function(){
+				li
+				.css({
+					transform:'scale(1)',
+					opacity:1
+				});
+			},150*i);
+		}
 	},function(r){
 
 		if(!r.rows) $('.no-sketch').removeClass('hidden');