mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
dashboard_showfullsize not applied in room "all"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5333 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc148b1fb1
commit
8015566ce7
1
CHANGED
1
CHANGED
@ -1,6 +1,7 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
- SVN
|
- SVN
|
||||||
|
- bugfix: Dashboard: dashboard_showfullsize not applied in room "all"
|
||||||
- feature: new module 98_PID20.pm added (John / betateilchen)
|
- feature: new module 98_PID20.pm added (John / betateilchen)
|
||||||
- feature: new module 00_RPII2C.pm, 52_I2C_PCA9532.pm, 52_I2C_PCF8574.pm,
|
- feature: new module 00_RPII2C.pm, 52_I2C_PCA9532.pm, 52_I2C_PCF8574.pm,
|
||||||
52_I2C_SHT21.pm added (klausw)
|
52_I2C_SHT21.pm added (klausw)
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
# Custom CSS over new Attribute dashboard_customcss. Fix Bug that affect new groups.
|
# Custom CSS over new Attribute dashboard_customcss. Fix Bug that affect new groups.
|
||||||
# 2.07: Fix GroupWidget-Error with readingGroups in hiddenroom
|
# 2.07: Fix GroupWidget-Error with readingGroups in hiddenroom
|
||||||
# 2.08: Fix dashboard_webfrontendfilter Error-Message. Internal changes. Attribute dashboard_colwidth and dashboard_sorting removed.
|
# 2.08: Fix dashboard_webfrontendfilter Error-Message. Internal changes. Attribute dashboard_colwidth and dashboard_sorting removed.
|
||||||
|
# 2.09: dashboard_showfullsize not applied in room "all" resp. "Everything". First small implementation over Dashboard_DetailFN.
|
||||||
#
|
#
|
||||||
# Known Bugs/Todos:
|
# Known Bugs/Todos:
|
||||||
# BUG: Nicht alle Inhalte aller Tabs laden, bei Plots dauert die bedienung des Dashboards zu lange. -> elemente hidden?
|
# BUG: Nicht alle Inhalte aller Tabs laden, bei Plots dauert die bedienung des Dashboards zu lange. -> elemente hidden?
|
||||||
@ -94,15 +95,16 @@ my $fwjquery = "jquery.min.js";
|
|||||||
my $fwjqueryui = "jquery-ui.min.js";
|
my $fwjqueryui = "jquery-ui.min.js";
|
||||||
my $dashboardname = "Dashboard"; # Link Text
|
my $dashboardname = "Dashboard"; # Link Text
|
||||||
my $dashboardhiddenroom = "DashboardRoom"; # Hiddenroom
|
my $dashboardhiddenroom = "DashboardRoom"; # Hiddenroom
|
||||||
my $dashboardversion = "2.08";
|
my $dashboardversion = "2.09";
|
||||||
# -------------------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#############################################################################################
|
||||||
sub Dashboard_Initialize ($) {
|
sub Dashboard_Initialize ($) {
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
$hash->{DefFn} = "Dashboard_define";
|
$hash->{DefFn} = "Dashboard_define";
|
||||||
$hash->{UndefFn} = "Dashboard_undef";
|
$hash->{UndefFn} = "Dashboard_undef";
|
||||||
#$hash->{FW_detailFn} = "Dashboard_detailFn";
|
$hash->{FW_detailFn} = "Dashboard_DetailFN";
|
||||||
$hash->{AttrFn} = "Dashboard_attr";
|
$hash->{AttrFn} = "Dashboard_attr";
|
||||||
$hash->{AttrList} = "disable:0,1 ".
|
$hash->{AttrList} = "disable:0,1 ".
|
||||||
"dashboard_colcount:1,2,3,4,5 ".
|
"dashboard_colcount:1,2,3,4,5 ".
|
||||||
@ -160,7 +162,7 @@ sub Dashboard_Initialize ($) {
|
|||||||
|
|
||||||
$data{FWEXT}{jquery}{SCRIPT} = "/pgm2/".$fwjquery if (!$data{FWEXT}{jquery}{SCRIPT});
|
$data{FWEXT}{jquery}{SCRIPT} = "/pgm2/".$fwjquery if (!$data{FWEXT}{jquery}{SCRIPT});
|
||||||
$data{FWEXT}{jqueryui}{SCRIPT} = "/pgm2/".$fwjqueryui if (!$data{FWEXT}{jqueryui}{SCRIPT});
|
$data{FWEXT}{jqueryui}{SCRIPT} = "/pgm2/".$fwjqueryui if (!$data{FWEXT}{jqueryui}{SCRIPT});
|
||||||
$data{FWEXT}{testjs}{SCRIPT} = "/pgm2/dashboard.js";
|
$data{FWEXT}{z_dashboard}{SCRIPT} = "/pgm2/dashboard.js" if (!$data{FWEXT}{z_dashboard});
|
||||||
|
|
||||||
$data{FWEXT}{Dashboardx}{LINK} = "?room=".$dashboardhiddenroom;
|
$data{FWEXT}{Dashboardx}{LINK} = "?room=".$dashboardhiddenroom;
|
||||||
$data{FWEXT}{Dashboardx}{NAME} = $dashboardname;
|
$data{FWEXT}{Dashboardx}{NAME} = $dashboardname;
|
||||||
@ -168,6 +170,26 @@ sub Dashboard_Initialize ($) {
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub Dashboard_DetailFN() {
|
||||||
|
my ($name, $d, $room, $pageHash) = @_;
|
||||||
|
my $hash = $defs{$name};
|
||||||
|
|
||||||
|
my $ret = "";
|
||||||
|
$ret .= "<table class=\"block wide\" id=\"dashboardtoolbar\" style=\"width:100%\">\n";
|
||||||
|
$ret .= "<tr><td><div>\n";
|
||||||
|
$ret .= " <div> <a href=\"javascript:dashboard_setposition()\"><button id=\"dashboard_setpositionbutton\" type=\"button\" title=\"Set the Positions\" disabled>Set Positions</button></a>\n";
|
||||||
|
$ret .= " <a href=\"javascript:dashboard_tooglelock()\"><button id=\"dashboard_tooglelockbutton\" type=\"button\" title=\"Lock Dashboard\" disabled>Lock Dashboard</button></a>\n";
|
||||||
|
$ret .= " <a href=\"$FW_ME?room=$dashboardhiddenroom\"><button type=\"button\">Return to Dashboard</button></a>\n";
|
||||||
|
$ret .= " <div id=\"resultText\" style=\"padding-top: 8px;\"></div>\n";
|
||||||
|
$ret .= " </div>\n";
|
||||||
|
$ret .= " </div></td></tr>\n";
|
||||||
|
$ret .= "</table>\n";
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
#############################################################################################
|
||||||
|
#############################################################################################
|
||||||
|
|
||||||
sub DashboardAsHtml($)
|
sub DashboardAsHtml($)
|
||||||
{
|
{
|
||||||
my ($d) = @_;
|
my ($d) = @_;
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
// 2.03: Fix showhelper Bug on lock/unlock. The error that after a trigger action the curren tab is changed to the "old" activetab tab has
|
// 2.03: Fix showhelper Bug on lock/unlock. The error that after a trigger action the curren tab is changed to the "old" activetab tab has
|
||||||
// been fixed.
|
// been fixed.
|
||||||
// 2.04: Dashboard position near Top in showfullsize-mode. Restore ActiveTab funktion
|
// 2.04: Dashboard position near Top in showfullsize-mode. Restore ActiveTab funktion
|
||||||
|
// 2.04: dashboard_showfullsize not applied in room "all" resp. "Everything"
|
||||||
//
|
//
|
||||||
// Known Bugs/Todo's
|
// Known Bugs/Todo's
|
||||||
// See 95_Dashboard.pm
|
// See 95_Dashboard.pm
|
||||||
@ -234,13 +235,15 @@ $(document).ready( function () {
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------
|
||||||
$("body").attr("longpollfilter", ".*") //need for longpoll
|
$("body").attr("longpollfilter", ".*") //need for longpoll
|
||||||
|
|
||||||
if (params[13] == 1){ //disable roomlist and header
|
if (params[13] == 1){ //disable roomlist and header, but not in room Everything
|
||||||
|
if ($('#content').attr("room") != "all") {
|
||||||
$("#menuScrollArea").remove();
|
$("#menuScrollArea").remove();
|
||||||
$("#hdr").remove();
|
$("#hdr").remove();
|
||||||
$(".roomoverview:first").remove();
|
$(".roomoverview:first").remove();
|
||||||
$("br:first").remove();
|
$("br:first").remove();
|
||||||
$("#content").css({position: 'inherit'});
|
$("#content").css({position: 'inherit'});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$(".dashboard_column").sortable({
|
$(".dashboard_column").sortable({
|
||||||
connectWith: ['.dashboard_column', '.ui-row'],
|
connectWith: ['.dashboard_column', '.ui-row'],
|
||||||
@ -303,11 +306,6 @@ $(document).ready( function () {
|
|||||||
},
|
},
|
||||||
activate: function (event, ui) {
|
activate: function (event, ui) {
|
||||||
restoreOrder();
|
restoreOrder();
|
||||||
|
|
||||||
//var activeTab = ($( "#tabs" ).tabs( "option", "active" ))+1;
|
|
||||||
//if (params[11] != activeTab){
|
|
||||||
// FW_cmd(document.location.pathname+'?XHR=1&cmd.'+params[0]+'=attr '+params[0]+' dashboard_activetab '+activeTab);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if ($("#dashboard_tabnav").hasClass("dashboard_tabnav_bottom")) { $(".dashboard_tabnav").appendTo(".dashboard_tabs"); } //set Tabs on the Bottom
|
if ($("#dashboard_tabnav").hasClass("dashboard_tabnav_bottom")) { $(".dashboard_tabnav").appendTo(".dashboard_tabs"); } //set Tabs on the Bottom
|
||||||
|
Loading…
x
Reference in New Issue
Block a user