Commit f582ed27bfe8127fdc89035f114e8be5eeb7d2dc

Authored by Tiago Guimarães
1 parent cb0f044f52

changed height and with of popup window

dspace-jspui/src/main/webapp/static/js/choice-support.js
... ... @@ -149,10 +149,10 @@ function DSpaceChoiceLookup(url, field, formID, valueInput, authInput,
149 149 var cOffset = 0;
150 150 if (inputField != null)
151 151 cOffset = $(inputField).cumulativeOffset();
152   - var width = 600; // XXX guesses! these should be params, or configured..
153   - var height = 470;
  152 + var width = 800; // XXX guesses! these should be params, or configured..
  153 + var height = 500;
154 154 var left; var top;
155   - if (window.screenX == null) {
  155 + /*if (window.screenX == null) {
156 156 left = window.screenLeft + cOffset.left - (width/2);
157 157 top = window.screenTop + cOffset.top - (height/2);
158 158 } else {
... ... @@ -160,7 +160,9 @@ function DSpaceChoiceLookup(url, field, formID, valueInput, authInput,
160 160 top = window.screenY + cOffset.top - (height/2);
161 161 }
162 162 if (left < 0) left = 0;
163   - if (top < 0) top = 0;
  163 + if (top < 0) top = 0;*/
  164 + top = 20;
  165 + left = 20;
164 166 var pw = window.open(url, 'ignoreme',
165 167 'width='+width+',height='+height+',left='+left+',top='+top+
166 168 ',toolbar=no,menubar=no,location=no,status=no,resizable');
... ...