[Alba-desarrollo] SVN Alba r4736 -
prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Jun 11 22:01:22 CEST 2007
Author: hsanchez
Date: 2007-06-11 17:01:21 -0300 (Mon, 11 Jun 2007)
New Revision: 4736
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listSuccess.php
Log:
Corrgiendo bug en javascript Ticket: #227
Modified: prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listSuccess.php 2007-06-11 19:49:28 UTC (rev 4735)
+++ prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listSuccess.php 2007-06-11 20:01:21 UTC (rev 4736)
@@ -2,18 +2,20 @@
<script>
function linkTo(flag) {
-
var objd = document.getElementById('division_id');
- var objp = document.getElementById('periodo_id');
var url = "<?php echo url_for('boletin/', false);?>/list/division_id/"+objd.options[objd.selectedIndex].value;
- if(flag == 1) {
+ if(flag == 1){
+ var objp = document.getElementById('periodo_id');
+ alert(objp.options[objp.selectedIndex].value);
url = url + "/periodo_id/"+objp.options[objp.selectedIndex].value;
}
- <? if($division_id) {?>
- var obja = document.getElementById('actividad_id');
- url = url + "/actividad_id/"+obja.options[obja.selectedIndex].value;
- <? } ?>
+ <?php if($division_id) {
+ if($actividad_id){?>
+ var obja = document.getElementById('actividad_id');
+ url = url + "/actividad_id/"+obja.options[obja.selectedIndex].value;
+ <?php }
+ } ?>
location.href = url;
}
</script>
@@ -92,4 +94,4 @@
<? } ?>
</fieldset>
</form>
-</div>
\ No newline at end of file
+</div>
Más información sobre la lista de distribución Alba-desarrollo