HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
168 stars 19 forks source link

Expressions containing word do not display #90

Closed HugoFara closed 1 year ago

HugoFara commented 1 year ago

Bug posted by YeYueMX on Discord

Describe the bug Expressions containing word never display.

To Reproduce

  1. Create a multi-word
  2. Click a word in the multi-word
  3. "Expr:" line do not display

Additional context When clicking a word this part of code (word_click_event_do_text_text in jq_pgm.js) finds multi-words


  const multi_words = Array(7);
  for (let i = 0; i < 7; i++) { 
    multi_words[i] = $(this).attr('data_mw' + (i + 2)); 
  }

However, no code inserts a "data_mw{number}". A git blame should show the culprit here.

HugoFara commented 1 year ago

Fixed on local branch. I had to change some function signature so I will bundle the fix in version 2.8.0.