diff options
author | Simon Rettberg | 2019-12-16 17:39:25 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-16 17:39:25 +0100 |
commit | 22ec097e0134360bfaf9836b70983904055c78a3 (patch) | |
tree | ff813c5c8c7976b67250da4db0d8033da23eb99f /modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html | |
parent | Fix some more typos (diff) | |
download | slx-admin-22ec097e0134360bfaf9836b70983904055c78a3.tar.gz slx-admin-22ec097e0134360bfaf9836b70983904055c78a3.tar.xz slx-admin-22ec097e0134360bfaf9836b70983904055c78a3.zip |
[serversetup-bwlp-ipxe] Fix pre-filling title for menu entry
When adding a new item to a menu, the title should be set to the menu
entry's name. This broke when the UI was refactored in commit:0064f98651c62
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html b/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html index efff704f..d637f0d1 100644 --- a/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html +++ b/modules-available/serversetup-bwlp-ipxe/templates/menu-edit.html @@ -145,7 +145,7 @@ {{#entrylist}} <div id="entrydata-{{entryid}}" class="entrydata"> <div> - {{lang_entryTitle}}: <b>{{title}}</b> + {{lang_entryTitle}}: <b class="name">{{title}}</b> </div> {{#data}} {{#script}} @@ -358,7 +358,7 @@ $title.data('old', '#stop#'); return; } - var text = $('#' + entryId.replace(':', '\\:') + '-name').text(); + var text = $('#entrydata-' + entryId.replace(':', '\\:') + ' .name').text(); $title.val(text).data('old', text); }); }); |