mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
f18style.css: small fix, fhemweb: add l as shortcut to detail view
git-svn-id: https://svn.fhem.de/fhem/trunk@17048 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7b311bd032
commit
386efe1743
@ -51,8 +51,8 @@ div.block { border:1px solid gray; background: #F8F8E0; padding:0.7em; }
|
|||||||
.langLinks { font-size: 0.6em; }
|
.langLinks { font-size: 0.6em; }
|
||||||
|
|
||||||
/* Widgets */
|
/* Widgets */
|
||||||
.makeTable { display:inline; float:left; clear:left; /*detail-selector,slider*/
|
.makeTable { display:inline; float:left; clear:left; margin-bottom:20px; }
|
||||||
margin-top:10px; margin-bottom:20px;}
|
.makeTable:not(:first-child) { margin-top:10px; }
|
||||||
.makeSelect { display:inline; float:left; clear:left; }
|
.makeSelect { display:inline; float:left; clear:left; }
|
||||||
select { margin-left:5px; margin-right:5px; }
|
select { margin-left:5px; margin-right:5px; }
|
||||||
.slider { float:left; width:250px; height:26px; }
|
.slider { float:left; width:250px; height:26px; }
|
||||||
|
@ -166,24 +166,29 @@ FW_jqueryReadyFn()
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$("form").each(function(){ // shutdown handling
|
$("form").each(function(){ // main input special cases
|
||||||
var input = $(this).find("input.maininput");
|
var input = $(this).find("input.maininput");
|
||||||
if(!input.length)
|
if(!input.length)
|
||||||
return;
|
return;
|
||||||
$(this).on("submit", function(e) {
|
$(this).on("submit", function(e) {
|
||||||
var val = $(input).val();
|
var val = $(input).val();
|
||||||
|
if(val.match(/^\s*ver.*/)) { // version
|
||||||
if(val.match(/^\s*ver.*/)) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(input).val("");
|
$(input).val("");
|
||||||
return FW_showVersion(val);
|
return FW_showVersion(val);
|
||||||
|
|
||||||
} else if(val.match(/^\s*shutdown/)) {
|
} else if(val.match(/^\s*shutdown/)) { // shutdown
|
||||||
FW_cmd(FW_root+"?XHR=1&cmd="+val);
|
FW_cmd(FW_root+"?XHR=1&cmd="+val);
|
||||||
$(input).val("");
|
$(input).val("");
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} else if(val.match(/^\s*get\s+/)) {
|
} else if(val.match(/^\s*l\s/)) { // l dev
|
||||||
|
var m = val.match(/^\s*l\s+(.*)/);
|
||||||
|
location.href = FW_root+"?detail="+m[1];
|
||||||
|
e.preventDefault();
|
||||||
|
return false;
|
||||||
|
|
||||||
|
} else if(val.match(/^\s*get\s+/)) { // get
|
||||||
// make get use xhr instead of reload
|
// make get use xhr instead of reload
|
||||||
//return true;
|
//return true;
|
||||||
FW_cmd(FW_root+"?cmd="+encodeURIComponent(val)+"&XHR=1", function(data){
|
FW_cmd(FW_root+"?cmd="+encodeURIComponent(val)+"&XHR=1", function(data){
|
||||||
|
Loading…
Reference in New Issue
Block a user