equal
deleted
inserted
replaced
857 </xsl:text> |
857 </xsl:text> |
858 <xsl:text> this.lift = 0; |
858 <xsl:text> this.lift = 0; |
859 </xsl:text> |
859 </xsl:text> |
860 <xsl:text> this.opened = false; |
860 <xsl:text> this.opened = false; |
861 </xsl:text> |
861 </xsl:text> |
|
862 <xsl:text> this.bound_inhibit_click_elsewhere = this.inhibit_click_elsewhere.bind(this); |
|
863 </xsl:text> |
862 <xsl:text> }, |
864 <xsl:text> }, |
863 </xsl:text> |
865 </xsl:text> |
864 <xsl:text> on_selection_click: function(selection) { |
866 <xsl:text> on_selection_click: function(selection) { |
865 </xsl:text> |
867 </xsl:text> |
866 <xsl:text> console.log("selected "+selection); |
868 <xsl:text> console.log("selected "+selection); |
867 </xsl:text> |
869 </xsl:text> |
868 <xsl:text> this.close(); |
870 <xsl:text> this.close(); |
869 </xsl:text> |
871 </xsl:text> |
870 <xsl:text> this.set_selection(selection); |
872 <xsl:text> let orig = this.indexes[0]; |
|
873 </xsl:text> |
|
874 <xsl:text> let idx = this.offset ? orig - this.offset : orig; |
|
875 </xsl:text> |
|
876 <xsl:text> apply_hmi_value(idx, selection); |
871 </xsl:text> |
877 </xsl:text> |
872 <xsl:text> }, |
878 <xsl:text> }, |
873 </xsl:text> |
879 </xsl:text> |
874 <xsl:text> on_button_click: function() { |
880 <xsl:text> on_button_click: function() { |
875 </xsl:text> |
881 </xsl:text> |
961 </xsl:text> |
967 </xsl:text> |
962 <xsl:text> return count; |
968 <xsl:text> return count; |
963 </xsl:text> |
969 </xsl:text> |
964 <xsl:text> }, |
970 <xsl:text> }, |
965 </xsl:text> |
971 </xsl:text> |
|
972 <xsl:text> inhibit_click_elsewhere: function(e) { |
|
973 </xsl:text> |
|
974 <xsl:text> console.log("inhibit", e); |
|
975 </xsl:text> |
|
976 <xsl:text> console.log(e.target.parentNode, this.text_elt); |
|
977 </xsl:text> |
|
978 <xsl:text> if(e.target.parentNode !== this.text_elt) |
|
979 </xsl:text> |
|
980 <xsl:text> e.stopPropagation(); |
|
981 </xsl:text> |
|
982 <xsl:text> }, |
|
983 </xsl:text> |
966 <xsl:text> close: function(){ |
984 <xsl:text> close: function(){ |
967 </xsl:text> |
985 </xsl:text> |
968 <xsl:text> this.reset_text(); |
986 <xsl:text> this.reset_text(); |
969 </xsl:text> |
987 </xsl:text> |
970 <xsl:text> this.reset_box(); |
988 <xsl:text> this.reset_box(); |
971 </xsl:text> |
989 </xsl:text> |
972 <xsl:text> this.element.appendChild(this.button_elt); |
990 <xsl:text> this.element.appendChild(this.button_elt); |
|
991 </xsl:text> |
|
992 <xsl:text> this.apply_cache(); |
|
993 </xsl:text> |
|
994 <xsl:text> document.removeEventListener("click", this.bound_inhibit_click_elsewhere, true); |
973 </xsl:text> |
995 </xsl:text> |
974 <xsl:text> this.opened = false; |
996 <xsl:text> this.opened = false; |
975 </xsl:text> |
997 </xsl:text> |
976 <xsl:text> }, |
998 <xsl:text> }, |
977 </xsl:text> |
999 </xsl:text> |
1101 </xsl:text> |
1123 </xsl:text> |
1102 <xsl:text> this.adjust_box_to_text(); |
1124 <xsl:text> this.adjust_box_to_text(); |
1103 </xsl:text> |
1125 </xsl:text> |
1104 <xsl:text> this.element.removeChild(this.button_elt); |
1126 <xsl:text> this.element.removeChild(this.button_elt); |
1105 </xsl:text> |
1127 </xsl:text> |
1106 <xsl:text> /* TODO disable interaction with background */ |
1128 <xsl:text> this.element.parentNode.appendChild(this.element.parentNode.removeChild(this.element)); |
|
1129 </xsl:text> |
|
1130 <xsl:text> // disable interaction with background |
|
1131 </xsl:text> |
|
1132 <xsl:text> document.addEventListener("click", this.bound_inhibit_click_elsewhere, true); |
1107 </xsl:text> |
1133 </xsl:text> |
1108 <xsl:text> this.opened = true; |
1134 <xsl:text> this.opened = true; |
1109 </xsl:text> |
1135 </xsl:text> |
1110 <xsl:text> }, |
1136 <xsl:text> }, |
1111 </xsl:text> |
1137 </xsl:text> |
1325 </xsl:for-each> |
1351 </xsl:for-each> |
1326 <xsl:text> }, |
1352 <xsl:text> }, |
1327 </xsl:text> |
1353 </xsl:text> |
1328 <xsl:text> on_op_click: function(opstr) { |
1354 <xsl:text> on_op_click: function(opstr) { |
1329 </xsl:text> |
1355 </xsl:text> |
1330 <xsl:text> let new_val = change_hmi_value(this.indexes[0], opstr); |
1356 <xsl:text> let orig = this.indexes[0]; |
|
1357 </xsl:text> |
|
1358 <xsl:text> let idx = this.offset ? orig - this.offset : orig; |
|
1359 </xsl:text> |
|
1360 <xsl:text> let new_val = change_hmi_value(idx, opstr); |
1331 </xsl:text> |
1361 </xsl:text> |
1332 <xsl:text> }, |
1362 <xsl:text> }, |
1333 </xsl:text> |
1363 </xsl:text> |
1334 <xsl:text> on_edit_click: function(opstr) { |
1364 <xsl:text> on_edit_click: function(opstr) { |
1335 </xsl:text> |
1365 </xsl:text> |
1341 </xsl:text> |
1371 </xsl:text> |
1342 <xsl:text> }, |
1372 <xsl:text> }, |
1343 </xsl:text> |
1373 </xsl:text> |
1344 <xsl:text> edit_callback: function(new_val) { |
1374 <xsl:text> edit_callback: function(new_val) { |
1345 </xsl:text> |
1375 </xsl:text> |
1346 <xsl:text> apply_hmi_value(this.indexes[0], new_val); |
1376 <xsl:text> let orig = this.indexes[0]; |
|
1377 </xsl:text> |
|
1378 <xsl:text> let idx = this.offset ? orig - this.offset : orig; |
|
1379 </xsl:text> |
|
1380 <xsl:text> apply_hmi_value(idx, new_val); |
1347 </xsl:text> |
1381 </xsl:text> |
1348 <xsl:text> }, |
1382 <xsl:text> }, |
1349 </xsl:text> |
1383 </xsl:text> |
1350 </xsl:template> |
1384 </xsl:template> |
1351 <xsl:template name="jump_widget_activity"> |
1385 <xsl:template name="jump_widget_activity"> |