Revision 116e778a
b/snf-astakos-app/astakos/im/static/im/css/dropkick.css | ||
---|---|---|
29 | 29 |
.form-row .dk_options a:hover, |
30 | 30 |
.form-row .dk_option_current a { text-shadow:none; background-color: #fff; text-decoration:none; color:#F89A1C} |
31 | 31 |
.form-row .dk_toggle { height:17px; overflow:hidden; } |
32 |
.form-row .dk_toggle span { width:240px; overflow:hidden; display:block; }
|
|
32 |
.form-row .dk_toggle span { width:220px;white-space: nowrap; overflow: hidden; /*text-overflow: ellipsis;*/ display:block; }
|
|
33 | 33 |
/* end custom theme */ |
34 | 34 |
|
35 | 35 |
|
b/snf-astakos-app/astakos/im/static/im/css/modules.css | ||
---|---|---|
236 | 236 |
table.alt-style tr th:first-child { padding-left:5px; overflow:hidden; } |
237 | 237 |
table.alt-style tr td a { margin:0; } |
238 | 238 |
table.alt-style tr td:first-child a { margin:0; } |
239 |
table.alt-style tr th.asc a { padding-right:20px; background:url(../images/arrow_th_bg.png) no-repeat right -48px; } |
|
240 |
table.alt-style tr th.desc a { padding-right:20px; background:url(../images/arrow_th_bg.png) no-repeat right 6px; } |
|
239 |
table.alt-style tr th a { padding-right:20px; } |
|
240 |
table.alt-style tr th.asc a { background:url(../images/arrow_th_bg.png) no-repeat right -48px; } |
|
241 |
table.alt-style tr th.desc a { background:url(../images/arrow_th_bg.png) no-repeat right 6px; } |
|
241 | 242 |
.content a.submit { margin:0; display:inline-block; margin:10px 0 ; height:auto; min-width:100px; text-align:center;} |
242 | 243 |
table.alt-style tr:nth-child(2n) td { background:#F2F2F2 } |
243 | 244 |
dl.alt-style dt { width:30%; float:left; color:#3582AC; font-weight:normal;} |
b/snf-astakos-app/astakos/im/static/im/js/common.js | ||
---|---|---|
78 | 78 |
|
79 | 79 |
|
80 | 80 |
setContainerMinHeight('.container .wrapper'); |
81 |
tableFixedCols('my-projects', 30);
|
|
81 |
tableFixedCols('my-projects', 20);
|
|
82 | 82 |
|
83 | 83 |
$('.show-extra').click(function(e) { |
84 | 84 |
e.preventDefault(); |
b/snf-astakos-app/astakos/im/static/im/js/jquery.dropkick-1.0.0.js | ||
---|---|---|
8 | 8 |
* <http://twitter.com/JamieLottering> |
9 | 9 |
* |
10 | 10 |
*/ |
11 |
|
|
11 | 12 |
(function ($, window, document) { |
12 | 13 |
|
14 |
function fixLabel (lbl){ |
|
15 |
if ( lbl.length > 30 ) { |
|
16 |
return lbl.substring(0,30)+'...'; |
|
17 |
} else { |
|
18 |
return lbl; |
|
19 |
} |
|
20 |
console.info(lbl.length); |
|
21 |
|
|
22 |
} |
|
23 |
|
|
13 | 24 |
var ie6 = false; |
14 | 25 |
|
15 | 26 |
// Help prevent flashes of unstyled content |
... | ... | |
108 | 119 |
data.label = $original.text(); |
109 | 120 |
data.options = $options; |
110 | 121 |
} |
111 |
|
|
122 |
data.label = fixLabel(data.label); |
|
112 | 123 |
// Build the dropdown HTML |
113 | 124 |
$dk = _build(dropdownTemplate, data); |
114 | 125 |
|
... | ... | |
175 | 186 |
$current = $dk.find('li').first() |
176 | 187 |
; |
177 | 188 |
|
178 |
$dk.find('.dk_label').text(listData.label);
|
|
189 |
$dk.find('.dk_label').text(fixLabel(listData.label));
|
|
179 | 190 |
$dk.find('.dk_options_inner').animate({ scrollTop: 0 }, 0); |
180 | 191 |
|
181 | 192 |
_setCurrent($current, $dk); |
... | ... | |
263 | 274 |
$select = data.$select; |
264 | 275 |
$select.val(value); |
265 | 276 |
|
266 |
$dk.find('.dk_label').text(label);
|
|
277 |
$dk.find('.dk_label').text(fixLabel(label));
|
|
267 | 278 |
|
268 | 279 |
reset = reset || false; |
269 | 280 |
|
b/snf-astakos-app/astakos/im/static/im/js/quotas.js | ||
---|---|---|
100 | 100 |
|
101 | 101 |
|
102 | 102 |
// if you fill _proxy fields do stuff |
103 |
$('.quotas-form .quota input[type="text"]').change(function () {
|
|
103 |
$('.quotas-form .quota input[type="text"]').keyup(function () {
|
|
104 | 104 |
|
105 | 105 |
if ( $('#icons span.info').hasClass('error-msg')){ |
106 | 106 |
$('#icons span.info').find('span').html('Here you add resources to your Project. Each resource you specify here, will be granted to *EACH* user of this Project. So the total resources will be: <Total number of members> * <amount_of_resource> for each resource.'); |
... | ... | |
194 | 194 |
|
195 | 195 |
// validation actions for int fields |
196 | 196 |
else { |
197 |
|
|
198 |
var is_int = value.match (new RegExp('^[0-9]*$')); |
|
197 |
var is_int = value.match (new RegExp('^[1-9][0-9]*$')); |
|
199 | 198 |
if ( !is_int ){ |
200 | 199 |
$(this).parents('.form-row').find('.error-msg').html('Enter a positive integer'); |
201 | 200 |
$(this).parents('.form-row').addClass('with-errors'); |
Also available in: Unified diff