floorplan: drag&drop won't switch device-status anymore

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8753 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ulimaass
2015-06-15 17:11:49 +00:00
parent d10a724290
commit ec8b253028

View File

@@ -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(); } );
}
});