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
|
// Properties
|
||||||
this.doc = doc;
|
this.doc = doc;
|
||||||
this.selection = new es.Range();
|
this.selection = new es.Range();
|
||||||
this.previousSelection = null;
|
|
||||||
this.states = [[]];
|
this.states = [[]];
|
||||||
this.initializeState( this.states.length - 1 );
|
this.initializeState( this.states.length - 1 );
|
||||||
|
|
||||||
|
@ -69,10 +68,9 @@ es.SurfaceModel.prototype.select = function( selection, combine ) {
|
||||||
this.pushState();
|
this.pushState();
|
||||||
}
|
}
|
||||||
// Filter out calls to select if they do not change the selection values
|
// Filter out calls to select if they do not change the selection values
|
||||||
this.selection = selection;
|
var selectionChanged = !this.selection || (
|
||||||
var selectionChanged = !this.previousSelection || (
|
this.selection.from !== selection.from ||
|
||||||
this.previousSelection.from !== this.selection.from ||
|
this.selection.to !== selection.to
|
||||||
this.previousSelection.to !== this.selection.to
|
|
||||||
);
|
);
|
||||||
if ( !combine || selectionChanged ) {
|
if ( !combine || selectionChanged ) {
|
||||||
var lastAction = this.states[this.states.length - 1];
|
var lastAction = this.states[this.states.length - 1];
|
||||||
|
@ -82,11 +80,11 @@ es.SurfaceModel.prototype.select = function( selection, combine ) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
this.currentState.push( selection );
|
this.currentState.push( selection );
|
||||||
|
this.selection = selection;
|
||||||
if ( selectionChanged ) {
|
if ( selectionChanged ) {
|
||||||
this.emit( 'select', this.selection.clone() );
|
this.emit( 'select', this.selection.clone() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.previousSelection = this.selection.clone();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-moz-border-radius: 0.25em;
|
-moz-border-radius: 0.25em;
|
||||||
-o-border-radius: 0.25em;
|
-o-border-radius: 0.25em;
|
||||||
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-position: bottom left;
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
list-style-type: square;
|
list-style-type: square;
|
||||||
margin: .3em 0 0 1.5em;
|
margin: .3em 0 0 1.5em;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style-image: url(images/bullet-icon.png);
|
list-style-image: url(../es/images/bullet-icon.png);
|
||||||
}
|
}
|
||||||
.es-render ol {
|
.es-render ol {
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
|
|
Loading…
Reference in a new issue