Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -21,6 +21,8 @@ |
22 | 22 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
23 | 23 | */ |
24 | 24 | |
| 25 | +var dialogwidth = false; |
| 26 | + |
25 | 27 | function trlOpenJsEdit( page, group ) { |
26 | 28 | var url = wgScript + "?title=Special:Translate/editpage&suggestions=async&page=$1&loadgroup=$2"; |
27 | 29 | url = url.replace( "$1", page ).replace( "$2", group ); |
— | — | @@ -41,6 +43,8 @@ |
42 | 44 | |
43 | 45 | dialog.load(url, false, function() { |
44 | 46 | var form = jQuery("#"+ id + " form"); |
| 47 | + |
| 48 | + form.hide().show( "clip" ); |
45 | 49 | |
46 | 50 | form.find( ".mw-translate-next" ).click( function() { |
47 | 51 | trlLoadNext( page ); |
— | — | @@ -77,9 +81,15 @@ |
78 | 82 | |
79 | 83 | dialog.dialog({ |
80 | 84 | bgiframe: true, |
81 | | - width: parseInt(trlVpWidth()*0.8), |
| 85 | + width: dialogwidth ? dialogwidth : parseInt(trlVpWidth()*0.8), |
82 | 86 | title: page, |
83 | | - position: "top" |
| 87 | + position: "top", |
| 88 | + resize: function(event, ui) { |
| 89 | + jQuery("#"+ id + " textarea").width( "100%" ); |
| 90 | + }, |
| 91 | + resizeStop: function(event, ui) { |
| 92 | + dialogwidth = jQuery("#"+ id).width(); |
| 93 | + } |
84 | 94 | }); |
85 | 95 | |
86 | 96 | return false; |