mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Moved images to es
This commit is contained in:
parent
dfc33b332c
commit
049b82fb98
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
|
@ -13,7 +13,6 @@ es.SurfaceModel = function( doc ) {
|
|||
// Properties
|
||||
this.doc = doc;
|
||||
this.selection = new es.Range();
|
||||
this.previousSelection = null;
|
||||
this.states = [[]];
|
||||
this.initializeState( this.states.length - 1 );
|
||||
|
||||
|
@ -69,10 +68,9 @@ es.SurfaceModel.prototype.select = function( selection, combine ) {
|
|||
this.pushState();
|
||||
}
|
||||
// Filter out calls to select if they do not change the selection values
|
||||
this.selection = selection;
|
||||
var selectionChanged = !this.previousSelection || (
|
||||
this.previousSelection.from !== this.selection.from ||
|
||||
this.previousSelection.to !== this.selection.to
|
||||
var selectionChanged = !this.selection || (
|
||||
this.selection.from !== selection.from ||
|
||||
this.selection.to !== selection.to
|
||||
);
|
||||
if ( !combine || selectionChanged ) {
|
||||
var lastAction = this.states[this.states.length - 1];
|
||||
|
@ -82,11 +80,11 @@ es.SurfaceModel.prototype.select = function( selection, combine ) {
|
|||
);
|
||||
}
|
||||
this.currentState.push( selection );
|
||||
this.selection = selection;
|
||||
if ( selectionChanged ) {
|
||||
this.emit( 'select', this.selection.clone() );
|
||||
}
|
||||
}
|
||||
this.previousSelection = this.selection.clone();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
-moz-border-radius: 0.25em;
|
||||
-o-border-radius: 0.25em;
|
||||
border-radius: 0.25em;
|
||||
background-image: url(images/fade-up.png);
|
||||
background-image: url(../es/images/fade-up.png);
|
||||
background-position: bottom left;
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@
|
|||
list-style-type: square;
|
||||
margin: .3em 0 0 1.5em;
|
||||
padding: 0;
|
||||
list-style-image: url(images/bullet-icon.png);
|
||||
list-style-image: url(../es/images/bullet-icon.png);
|
||||
}
|
||||
.es-render ol {
|
||||
line-height: 1.5em;
|
||||
|
|
Loading…
Reference in a new issue