Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -1,10 +1,6 @@ |
2 | 2 | // Author : ThomasV - License : GPL |
3 | 3 | |
4 | 4 | |
5 | | -/* Default size of the high resolution image in edit mode */ |
6 | | -self.proofreadPageDefaultEditWidth = 1024; |
7 | | - |
8 | | - |
9 | 5 | function pr_init_tabs(){ |
10 | 6 | var a = document.getElementById("p-namespaces"); |
11 | 7 | if(!a) a = document.getElementById("p-cactions"); |
— | — | @@ -708,6 +704,7 @@ |
709 | 705 | } else { |
710 | 706 | var w = parseInt(self.proofreadPageEditWidth); |
711 | 707 | if( !w ) w = self.proofreadPageDefaultEditWidth; |
| 708 | + if( !w ) w = 1024; /* Default size in edit mode */ |
712 | 709 | var view_url = pr_image_url( Math.min( w, self.proofreadPageWidth ) ); |
713 | 710 | //prevent the container from being resized once the image is downloaded. |
714 | 711 | img_width = pr_horiz?0:parseInt(pr_width/2-70)-20; |