can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20397: LJSUP-10083: Add syntax highlighting to ...

Committer: dpetrov
LJSUP-10083: Add syntax highlighting to the s2 layers editor
U   trunk/htdocs/js/s2edit/s2gui.js
Modified: trunk/htdocs/js/s2edit/s2gui.js
===================================================================
--- trunk/htdocs/js/s2edit/s2gui.js	2011-10-20 12:34:05 UTC (rev 20396)
+++ trunk/htdocs/js/s2edit/s2gui.js	2011-10-20 13:26:36 UTC (rev 20397)
@@ -180,6 +180,10 @@
 
 function s2jumpToPos(pos, line)
 {
+	if (s2isAceActive()) {
+		aceEditor.gotoLine(line, 0);
+		return;
+	}
 	var main = s2getCodeArea();
 
 	nxpositionCursor(main, pos);

Tags: can3p, dpetrov, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments