mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-13 09:12:19 +00:00
floorplan: drag&drop won't switch device-status anymore
git-svn-id: https://svn.fhem.de/fhem/trunk@8753 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec66c2cbd8
commit
f2bec095c4
@ -77,6 +77,14 @@ $(document).ready(function($){
|
||||
$( 'input#fp_ar_input_left[class="' + device + '"]' ).val(X);
|
||||
$( 'input#fp_ar_input_top[class="' + device + '"]' ).val(Y);
|
||||
|
||||
event = event || window.event;
|
||||
//event.preventDefault();
|
||||
if (typeof event.stopPropagation != "undefined") {
|
||||
event.stopPropagation();
|
||||
} else {
|
||||
event.cancelBubble = true;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
stop: function( event, ui) {
|
||||
@ -94,7 +102,9 @@ $(document).ready(function($){
|
||||
var cmd = "attr " + device + " fp_" + fp_name + " " + Y + "," + X + "," + style + "," + text + "," + text2;
|
||||
FW_cmd('/fhem/floorplan/'+fp_name+'?XHR=1&cmd='+cmd);
|
||||
|
||||
// return false;
|
||||
// prevent from further propagating event
|
||||
$( event.originalEvent.target ).one('click', function(e){ e.stopImmediatePropagation(); } );
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user