Index: trunk/extensions/VisualEditor/modules/es/inspectors/es.LinkInspector.js |
— | — | @@ -12,7 +12,6 @@ |
13 | 13 | // Properties |
14 | 14 | this.$clearButton = $( '<div class="es-inspector-clearButton"></div>' ).prependTo( this.$ ); |
15 | 15 | this.$.prepend( '<div class="es-inspector-title">Link inspector</div>' ); |
16 | | - this.$form = $( '<form></form>' ).appendTo( this.$ ); |
17 | 16 | this.$locationLabel = $( '<label>Page title</label>' ).appendTo( this.$form ); |
18 | 17 | this.$locationInput = $( '<input type="text">' ).appendTo( this.$form ); |
19 | 18 | |
Index: trunk/extensions/VisualEditor/modules/es/bases/es.Inspector.js |
— | — | @@ -18,12 +18,18 @@ |
19 | 19 | this.context = context; |
20 | 20 | this.$ = $( '<div class="es-inspector"></div>' ); |
21 | 21 | this.$closeButton = $( '<div class="es-inspector-closeButton"></div>' ).appendTo( this.$ ); |
| 22 | + this.$form = $( '<form></form>' ).appendTo( this.$ ); |
22 | 23 | |
23 | 24 | // Events |
24 | 25 | var _this = this; |
25 | 26 | this.$closeButton.click( function() { |
26 | 27 | _this.context.closeInspector(); |
27 | 28 | } ); |
| 29 | + this.$form.submit( function( e ) { |
| 30 | + _this.context.closeInspector(); |
| 31 | + e.preventDefault(); |
| 32 | + return false; |
| 33 | + } ); |
28 | 34 | }; |
29 | 35 | |
30 | 36 | /* Methods */ |