ソースを参照

-Dashboard: Normalisation convention id de modal de configuration de widget

necron.s550 1 年間 前
コミット
7f6b49d93b

+ 13 - 14
plugin/dashboard/css/component.css

@@ -185,18 +185,17 @@
 .dashboard-configure-menu li:hover{
 	background: #f3f3f3;
 }
-
-.dashboardModal .widget-types{
-	padding: 0;
-	margin: 0;
-	display: grid;
-	grid-template-columns: auto auto auto;
-	list-style-type: none;
-}
-.dashboardModal .widget-types li{
-	border-radius: 2px;
-	padding: 5px;
-	margin: 5px;
-	background: #ebebeb;
-	list-style-type: none;
+.dashboard-modal .widget-types{
+    padding: 0;
+    margin: 0;
+    display: grid;
+    grid-template-columns: auto auto auto;
+    list-style-type: none;
+}
+.dashboard-modal .widget-types li{
+    border-radius: 2px;
+    padding: 5px;
+    margin: 5px;
+    background: #ebebeb;
+    list-style-type: none;
 }

+ 1 - 1
plugin/dashboard/dashboard.plugin.php

@@ -85,7 +85,7 @@ function dashboard_application_bottom(){
  </template>
 
 <!-- Modal Dashboard -->
-<div class="modal fade dashboardModal" id="dashboardModal"  tabindex="-1" role="dialog"aria-hidden="true">
+<div class="modal fade dashboard-modal" id="dashboard-modal"  tabindex="-1" role="dialog" aria-hidden="true">
 	<div class="modal-dialog modal-lg" role="document">
 		<div class="modal-content">
 			<div class="modal-header">

+ 1 - 2
plugin/dashboard/js/dashboard.js

@@ -240,8 +240,7 @@ class Dashboard {
 	}
 
 	configureWidget(id){
-		$('#dashboardModal').modal('show');
-		
+		$('#dashboard-modal').modal('show');
 		this.trigger('configure', id);
 	}