From fedbad35d6e031fb661145aba865fc9f5aa22f3f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 3 Dec 2014 16:40:45 +0800 Subject: [PATCH] #177 --- static/js/bottomGroup.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/static/js/bottomGroup.js b/static/js/bottomGroup.js index f19c888..d0c4e89 100644 --- a/static/js/bottomGroup.js +++ b/static/js/bottomGroup.js @@ -12,7 +12,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ var bottomGroup = { tabs: undefined, @@ -20,9 +20,18 @@ var bottomGroup = { init: function () { this._initTabs(); this._initFrame(); - + $('.bottom-window-group .output').click(function () { - $(this).focus(); + $(this).focus(); + }); + + $('.bottom-window-group .output .path').click(function (e) { + var path = $(e.target); + console.log(path.data("path")); + console.log(path.data("line")); + console.log(path.data("column")); + + // TODO: open editor }); }, _initFrame: function () {