divx118

patch to block mouseover

Nov 16th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. --- www/app/FloorplanController.js 2015-11-08 13:17:36.456871903 +0100
  2. +++ FloorplanController.js 2015-11-16 11:32:32.455694730 +0100
  3. @@ -276,6 +276,9 @@
  4. if (existing != undefined) {
  5. if ($scope.debug > 2) $.cachenoty=generate_noty('info', '<b>Refreshing Device ' + dev.name + ((compoundDevice) ? ' - ' + item.Type : '') + '</b>', 2000);
  6. dev.htmlMinimum(existing.parentNode);
  7. + if (dev.name.substring(0,2) == "ir") {
  8. + document.getElementById(existing.id+"_Icon").onmouseover="";
  9. + }
  10. }
  11. }
  12. catch(err) {
  13. @@ -333,6 +336,10 @@
  14. if (dev.onFloorplan == true) {
  15. try {
  16. dev.htmlMinimum(elDevices);
  17. + var existing = document.getElementById(dev.uniquename);
  18. + if (dev.name.substring(0,2) == "ir") {
  19. + document.getElementById(existing.id+"_Icon").onmouseover="";
  20. + }
  21. }
  22. catch(err) {
  23. generate_noty('error', '<b>Device draw error</b><br>'+err, false);
Advertisement
Add Comment
Please, Sign In to add comment