Revision b75a5717
Added by koszko over 1 year ago
html/text_entry_list.js | ||
---|---|---|
162 | 162 |
[this.cancel_but, this.make_noneditable], |
163 | 163 |
[this.noneditable_view, this.make_editable], |
164 | 164 |
]) |
165 |
node.addEventListener("click", dialog.when_hidden(list.dialog_ctx, cb));
|
|
165 |
node.addEventListener("click", list.dialog_ctx.when_hidden(cb));
|
|
166 | 166 |
|
167 | 167 |
const enter_cb = e => (e.key === 'Enter') && enter_hit(); |
168 | 168 |
this.input.addEventListener("keypress", |
169 |
dialog.when_hidden(list.dialog_ctx, enter_cb));
|
|
169 |
list.dialog_ctx.when_hidden(enter_cb));
|
|
170 | 170 |
|
171 | 171 |
if (entry_idx > 0) { |
172 | 172 |
const prev_text = list.shown_texts[entry_idx - 1]; |
... | ... | |
227 | 227 |
|
228 | 228 |
const add_new = () => new Entry(null, this, 0); |
229 | 229 |
|
230 |
this.new_but.addEventListener("click", |
|
231 |
dialog.when_hidden(dialog_ctx, add_new)); |
|
230 |
this.new_but.addEventListener("click", dialog_ctx.when_hidden(add_new)); |
|
232 | 231 |
} |
233 | 232 |
|
234 | 233 |
async function repo_list(dialog_ctx) { |
Also available in: Unified diff
add a repo querying HTML interface