)]}'
{"horizon/static/horizon/js/horizon.tabs.js":[{"author":{"_account_id":14064,"name":"Kahou Lei","email":"kahou82@gmail.com","username":"kahou82"},"change_message_id":"f32d98c5b87fc58a563eb786297641ec15c792fa","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  });"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  // Enable keyboard navigation between tabs in a form."},{"line_number":71,"context_line":"  $(\".tab-content\").on(\"keydown\", \".tab-pane :input:visible:last\", function (evt) {"},{"line_number":72,"context_line":"    var $this \u003d $(this),"},{"line_number":73,"context_line":"      next_pane \u003d $this.closest(\".tab-pane\").next(\".tab-pane\");"},{"line_number":74,"context_line":"    // Capture the forward-tab keypress if we have a next tab to go to."}],"source_content_type":"text/javascript","patch_set":1,"id":"9a80dd14_2b14d89e","line":71,"updated":"2015-03-07 16:13:29.000000000","message":"You mention that we need to bind the highest level element of the document. How do you ensure that tab-content is always the highest element in the future? \nMaybe adding some comment here will help?","commit_id":"9e2c1e84ea201d0da99aba4b420dc2c202ecb769"},{"author":{"_account_id":8627,"name":"Chris Johnson","email":"wchrisjohnson@gmail.com","username":"wchrisjohnson"},"change_message_id":"80b7f11b5b96e2a55657d9f942472a410cbacd16","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  });"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  // Enable keyboard navigation between tabs in a form."},{"line_number":71,"context_line":"  $(\".tab-content\").on(\"keydown\", \".tab-pane :input:visible:last\", function (evt) {"},{"line_number":72,"context_line":"    var $this \u003d $(this),"},{"line_number":73,"context_line":"      next_pane \u003d $this.closest(\".tab-pane\").next(\".tab-pane\");"},{"line_number":74,"context_line":"    // Capture the forward-tab keypress if we have a next tab to go to."}],"source_content_type":"text/javascript","patch_set":1,"id":"9a80dd14_66336762","line":71,"in_reply_to":"9a80dd14_2b14d89e","updated":"2015-03-07 18:35:18.000000000","message":"The object of our interest is the \"tab-pane\" class. Based on a review of the current Horizon code, this class is alway used in the context of the \"tab-content\" class. What sort of comment would you like me to add?","commit_id":"9e2c1e84ea201d0da99aba4b420dc2c202ecb769"},{"author":{"_account_id":14064,"name":"Kahou Lei","email":"kahou82@gmail.com","username":"kahou82"},"change_message_id":"e125675258432f20484c77bb8998b08c40d838cd","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  });"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  // Enable keyboard navigation between tabs in a form."},{"line_number":71,"context_line":"  $(\".tab-content\").on(\"keydown\", \".tab-pane :input:visible:last\", function (evt) {"},{"line_number":72,"context_line":"    var $this \u003d $(this),"},{"line_number":73,"context_line":"      next_pane \u003d $this.closest(\".tab-pane\").next(\".tab-pane\");"},{"line_number":74,"context_line":"    // Capture the forward-tab keypress if we have a next tab to go to."}],"source_content_type":"text/javascript","patch_set":1,"id":"9a80dd14_c63df32c","line":71,"in_reply_to":"9a80dd14_66336762","updated":"2015-03-07 18:40:01.000000000","message":"Oh I just wonder that if we don\u0027t use tab-content as the highest level element of the document in the future, will it break the behavior? If not, then I think we are fine. If it does, I guess we just need to put some comment here indicate that the purpose?","commit_id":"9e2c1e84ea201d0da99aba4b420dc2c202ecb769"},{"author":{"_account_id":8627,"name":"Chris Johnson","email":"wchrisjohnson@gmail.com","username":"wchrisjohnson"},"change_message_id":"d2a1a42b7b768e319a8d9344e1535a6aafaf2de1","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  });"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  // Enable keyboard navigation between tabs in a form."},{"line_number":71,"context_line":"  $(\".tab-content\").on(\"keydown\", \".tab-pane :input:visible:last\", function (evt) {"},{"line_number":72,"context_line":"    var $this \u003d $(this),"},{"line_number":73,"context_line":"      next_pane \u003d $this.closest(\".tab-pane\").next(\".tab-pane\");"},{"line_number":74,"context_line":"    // Capture the forward-tab keypress if we have a next tab to go to."}],"source_content_type":"text/javascript","patch_set":1,"id":"9a80dd14_11e002f9","line":71,"in_reply_to":"9a80dd14_6d9c045e","updated":"2015-03-09 16:07:16.000000000","message":"Yeah Doug - agreed. I would suspect that this area of Horizon, like most parts, will get \"Angular-ized\" in the near term anyway, meaning this code will likely get refactored more completely. This is more of an effort to mitigate the (terrible) perf hit we see ATM with large numbers of users.","commit_id":"9e2c1e84ea201d0da99aba4b420dc2c202ecb769"},{"author":{"_account_id":8627,"name":"Chris Johnson","email":"wchrisjohnson@gmail.com","username":"wchrisjohnson"},"change_message_id":"94bf9d2f2d43acb25365035cebdd45d2e484f954","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  });"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  // Enable keyboard navigation between tabs in a form."},{"line_number":71,"context_line":"  $(\".tab-content\").on(\"keydown\", \".tab-pane :input:visible:last\", function (evt) {"},{"line_number":72,"context_line":"    var $this \u003d $(this),"},{"line_number":73,"context_line":"      next_pane \u003d $this.closest(\".tab-pane\").next(\".tab-pane\");"},{"line_number":74,"context_line":"    // Capture the forward-tab keypress if we have a next tab to go to."}],"source_content_type":"text/javascript","patch_set":1,"id":"9a80dd14_e1b6613d","line":71,"in_reply_to":"9a80dd14_c63df32c","updated":"2015-03-07 19:57:10.000000000","message":"This is all about context. The only context in which the below code should *ever* run is in the context of a tab group. I say that because the selector is \"tab-pane\", and the only place that class is used is within a tab group. The \"tab-content\" class is used to indicate a tab group. In this context, the highest level element that makes sense, that we need to bind to, is \"tab-content\". I\u0027ll be glad to make a note in the code if you think it\u0027s necessary...","commit_id":"9e2c1e84ea201d0da99aba4b420dc2c202ecb769"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"7b1a38140ec615213d6f302cc1f57ef01ca6571d","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  });"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  // Enable keyboard navigation between tabs in a form."},{"line_number":71,"context_line":"  $(\".tab-content\").on(\"keydown\", \".tab-pane :input:visible:last\", function (evt) {"},{"line_number":72,"context_line":"    var $this \u003d $(this),"},{"line_number":73,"context_line":"      next_pane \u003d $this.closest(\".tab-pane\").next(\".tab-pane\");"},{"line_number":74,"context_line":"    // Capture the forward-tab keypress if we have a next tab to go to."}],"source_content_type":"text/javascript","patch_set":1,"id":"9a80dd14_6d9c045e","line":71,"in_reply_to":"9a80dd14_e1b6613d","updated":"2015-03-09 15:46:52.000000000","message":"This code is meaningful only if there are multiple tabs.  Attaching the listener to the whole document is not a good idea (as you\u0027ve proven!).  The listener is attached at the level where it is meaningful.\n\nI think it might be clearer to attach behaviors based on attributes rather than using styles, but that\u0027s a pretty broad change.  This seem like a reasonable incremental patch that solves that problem at hand.","commit_id":"9e2c1e84ea201d0da99aba4b420dc2c202ecb769"}]}
