From: Tom Needham Date: Mon, 9 Jan 2012 22:42:28 +0000 (+0000) Subject: improved ui for go to line button X-Git-Tag: v3.0~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a0ed930ef681a488d1b7f13e6f71b3d12318860;p=nextcloud-server.git improved ui for go to line button --- diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index ff5615518af..54f781cd9b3 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -60,7 +60,7 @@ function showControls(filename,writeperms){ // Load the new toolbar. var savebtnhtml; if(writeperms=="true"){ - var editorcontrols = '
'; + var editorcontrols = '
'; } var html = '
'; $('#controls').append(html); @@ -73,7 +73,7 @@ function showControls(filename,writeperms){ function bindControlEvents(){ $("#editor_save").die('click',doFileSave).live('click',doFileSave); $('#editor_close').die('click',hideFileEditor).live('click',hideFileEditor); - $('#gotolinebtn').die('click', goToLine).live('click', goToLine); + $('#gotolineval').die('keyup', goToLine).live('keyup', goToLine); $('#editorsearchval').die('keyup', doSearch).live('keyup', doSearch); $('#clearsearchbtn').die('click', resetSearch).live('click', resetSearch); $('#nextsearchbtn').die('click', nextSearchResult).live('click', nextSearchResult);