diff --git a/static/application.js b/static/application.js
index b354f419..952a5aa7 100644
--- a/static/application.js
+++ b/static/application.js
@@ -1048,6 +1048,18 @@ function buildLoadModelList(ar, menu, breadcrumbs, showdelete) {
if (breadcrumbs.length > 0) {
$("#loadmodellistbreadcrumbs").append("
")
}
+ //If we're in the custom load menu (we need to send the path data back in that case)
+ if(['NeoCustom', 'GPT2Custom'].includes(menu)) {
+ $("#loadmodel"+i).off("click").on("click", (function () {
+ return function () {
+ socket.send({'cmd': 'selectmodel', 'data': $(this).attr("name"), 'path': $(this).attr("pretty_name")});
+ highlightLoadLine($(this));
+ }
+ })(i));
+ $("#custommodelname").removeClass("hidden");
+ $("#custommodelname")[0].setAttribute("menu", menu);
+ }
+
for(i=0; i