Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/273658

Change subject: GotoLine: Don't throw an exception if the user cancels the 
prompt
......................................................................

GotoLine: Don't throw an exception if the user cancels the prompt

Change-Id: I540ba492cf3acda01ad61800561cda0276f36c76
---
M modules/jquery.codeEditor.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CodeEditor 
refs/changes/58/273658/1

diff --git a/modules/jquery.codeEditor.js b/modules/jquery.codeEditor.js
index b3a5457..b6914b3 100644
--- a/modules/jquery.codeEditor.js
+++ b/modules/jquery.codeEditor.js
@@ -120,7 +120,7 @@
                        },
                        aceGotoLineColumn: function () {
                                var lineinput = prompt( 'Enter line number:', 
'line:column' ),
-                                       matches = lineinput.split( ':' ),
+                                       matches = lineinput ? lineinput.split( 
':' ) : [],
                                        line = 0,
                                        column = 0;
 

-- 
To view, visit https://gerrit.wikimedia.org/r/273658
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I540ba492cf3acda01ad61800561cda0276f36c76
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to