Эх сурвалжийг харах

Dashboard : suppression ancien boutton ajouter

idleman 2 жил өмнө
parent
commit
ba2e6f4013

+ 2 - 2
plugin/dashboard/css/main.css

@@ -19,7 +19,7 @@ html.module-index,
 }
 
 .dashboard-placeholder{
-	transition: background 0.2s ease-in-out;
+	transition: background 0.15s linear;
 	cursor: pointer;
 	position: relative;
 	border-radius: 10px;
@@ -40,7 +40,7 @@ html.module-index,
 	top: calc(50% - 15px);
 	left: calc(50% - 15px);
 	font-size: 30px;
-	transition: opacity 0.2s ease-in-out;
+	transition: opacity 0.15s linear;
 }
 .dashboard-placeholder:hover .placeholder-add{
 	opacity: 1;

+ 0 - 11
plugin/dashboard/js/component.js

@@ -62,18 +62,7 @@ function init_components_dashboard(input){
 		content : '<p>Wazup 2 ?</p>'
 	}]);*/
 
-	$('.btn-widget-add').click(function(){
 
-		$.action({
-			action : data.onAdd,
-			scope : data.scope,
-			uid : data.uid
-		},function(widget){
-			component.addWidgets([widget]);
-		});
-		
-	});
-	
 	component.on('placeholder-click',function(placeholder){
 		$.action({
 			action : data.onAdd,

+ 0 - 1
plugin/dashboard/page.list.dashboard.php

@@ -14,7 +14,6 @@ if(Dashboard::rowCount(array('scope'=>'home','uid'=>$myUser->login))==0){
 <div class="plugin-dashboard">
     <div class="row">
         <div class="col-md-12">
-            <div class="btn btn-light btn-widget-add mb-1"><i class="fas fa-plus"></i> Widget</div>
             <div data-type="dashboard" data-scope="home" data-uid="<?php echo $myUser->login ?>"></div>
         </div>
     </div>