Skip to content

Commit 4e3effd

Browse files
committed
Only bind the dropdowns once
1 parent 5f95942 commit 4e3effd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

warehouse/static/js/warehouse/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,8 @@ var bindDropdowns = function () {
193193
}
194194
};
195195

196-
// Bind the dropdowns when the page is ready
197-
docReady(bindDropdowns);
198-
199-
// Bind again when client-side includes have been loaded (for the logged-in
200-
// user dropdown)
196+
// Bind the dropdowns once the client-side includes have been loaded (for the
197+
// logged-in user dropdown)
201198
document.addEventListener("CSILoaded", bindDropdowns);
202199

203200
const application = Application.start();

0 commit comments

Comments
 (0)