https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101903
Revision: 101903
Author: inez
Date: 2011-11-03 22:49:14 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
Fix minor bug
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
Modified: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
===================================================================
--- trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-03 22:46:44 UTC (rev 101902)
+++ trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-03 22:49:14 UTC (rev 101903)
@@ -243,7 +243,7 @@
this.hideCursor();
} else {
this.showCursor(
-
this.documentView.getModel().getRelativeContentOffset( this.selection.start, -1
)
+
this.documentView.getModel().getRelativeContentOffset(
this.selection.getLength() ? this.selection.start : this.selection.to, -1 )
);
this.selection.from = this.selection.to;
this.documentView.clearSelection();
@@ -258,7 +258,7 @@
this.hideCursor();
} else {
this.showCursor(
-
this.documentView.getModel().getRelativeContentOffset( this.selection.end, 1 )
+
this.documentView.getModel().getRelativeContentOffset(
this.selection.getLength() ? this.selection.end : this.selection.to, 1 )
);
this.selection.from = this.selection.to;
this.documentView.clearSelection();
@@ -286,6 +286,7 @@
this.drawSelection();
this.hideCursor();
} else {
+ this.selection.from = this.selection.to;
this.documentView.clearSelection();
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs