Repository: zeppelin Updated Branches: refs/heads/master 29b743609 -> 5eec213c8
[ZEPPELIN-1727] Shift + Enter runs two paras in particular scenario ### What is this PR for? 1. click *insert new* in p1(say code in p1 is %sh date -u ) 2. New para p2 is created and cursor is on the p2 editor. 3. Type code say %sh date -u and press shift + enter.(without clicking on p2's editor) The output of p1 and p2 will be same, p2 run triggered p1's run as well. This PR fixes the above scenario ### What type of PR is it? Bug fix ### Todos NA ### What is the Jira issue? ### How should this be tested? The steps mentioned in description of PR need s to be tested ### Screenshots (if appropriate) ![date](https://cloud.githubusercontent.com/assets/5082742/20718785/de157348-b67f-11e6-9aef-6de085c1dcfe.gif) ### Questions: * Does the licenses files need update? NA * Is there breaking changes for older versions? NA * Does this needs documentation? NA Author: karuppayya <karuppayya1...@gmail.com> Closes #1702 from karuppayya/ZEPPELIN-1727 and squashes the following commits: 5c1a2b7 [karuppayya] Address review comments 3dd7a5d [karuppayya] Fix para focus Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/5eec213c Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/5eec213c Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/5eec213c Branch: refs/heads/master Commit: 5eec213c8400557da47cb6f2631cb2ed31d23e2d Parents: 29b7436 Author: karuppayya <karuppayya1...@gmail.com> Authored: Wed Nov 30 19:16:19 2016 +0530 Committer: Lee moon soo <m...@apache.org> Committed: Thu Dec 1 08:01:10 2016 -0800 ---------------------------------------------------------------------- zeppelin-web/src/app/notebook/notebook.controller.js | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/5eec213c/zeppelin-web/src/app/notebook/notebook.controller.js ---------------------------------------------------------------------- diff --git a/zeppelin-web/src/app/notebook/notebook.controller.js b/zeppelin-web/src/app/notebook/notebook.controller.js index 99d4952..f078a31 100644 --- a/zeppelin-web/src/app/notebook/notebook.controller.js +++ b/zeppelin-web/src/app/notebook/notebook.controller.js @@ -367,6 +367,7 @@ _.each($scope.note.paragraphs, function(para) { if (para.id === paragraph.id) { para.focus = true; + $scope.$broadcast('focusParagraph', para.id, 0, false); } }); };