diff --git a/html/ajax_dash.php b/html/ajax_dash.php index ec88e68ec..893de7a1c 100644 --- a/html/ajax_dash.php +++ b/html/ajax_dash.php @@ -28,7 +28,7 @@ if (!$_SESSION['authenticated']) { $type = mres($_POST['type']); if ($type == 'placeholder') { - $output = 'Please add a Widget to get started'; + $output = "

Click on Edit-Dashboard to add Widgets


Remember: You can only move & rezise widgets when you're in Edit-Mode.

"; $status = 'ok'; $title = 'Placeholder'; } diff --git a/html/pages/front/tiles.php b/html/pages/front/tiles.php index cae212029..8d8b1f011 100644 --- a/html/pages/front/tiles.php +++ b/html/pages/front/tiles.php @@ -41,7 +41,7 @@ foreach (dbFetchRows('SELECT user_widget_id,users_widgets.widget_id,title,widget $data[] = $items; } if (empty($data)) { - $data[] = array('user_widget_id'=>'0','widget_id'=>1,'title'=>'Add a widget','widget'=>'placeholder','col'=>1,'row'=>1,'size_x'=>2,'size_y'=>2,'refresh'=>60); + $data[] = array('user_widget_id'=>'0','widget_id'=>1,'title'=>'Add a widget','widget'=>'placeholder','col'=>1,'row'=>1,'size_x'=>6,'size_y'=>2,'refresh'=>60); } $data = serialize(json_encode($data)); $dash_config = unserialize(stripslashes($data)); @@ -445,10 +445,10 @@ foreach (dbFetchRows("SELECT * FROM `widgets` ORDER BY `widget_title`") as $widg dom = '
  • '+ '
    '+data.title+ ''+ - ''+ - '  '+ - '  '+ - ''+ + ''+ + '  '+ + '  '+ + ''+ '
    '+ '
    '+data.widget+'
    '+ '\var timeout'+data.user_widget_id+' = grab_data('+data.user_widget_id+','+data.refresh+',\''+data.widget+'\');\<\/script\>'+ @@ -461,6 +461,7 @@ foreach (dbFetchRows("SELECT * FROM `widgets` ORDER BY `widget_title`") as $widg if (gridster_state == 0) { $('.fade-edit').fadeOut(0); } + $('[data-toggle="tooltip"]').tooltip(); } function widget_settings(data) {