Permalink
Browse files

cambiando el indicador de ajax

  • Loading branch information...
1 parent 100073d commit 17e940bbfbeeca14f700cf418b67ddd0197261bc @ftoledo ftoledo committed Sep 26, 2012
@@ -157,7 +157,7 @@ function submitForm(){
<h1>Asignaturas</h1>
<?php use_helper('Javascript') ?>
<div id="horarios_list">
- <?php
+ <?php
if(count($horasMaterias)>0) {
foreach($horasMaterias as $idx => $oMateria) { ?>
<?php
@@ -168,7 +168,7 @@ function submitForm(){
// 'onMouseOver' => "this.T_SHADOWWIDTH=5;this.T_STICKY=1;this.T_OFFSETX=-20;return escape('".htmlentities(str_replace("\n","<br />",$oMateria->horarios_disponibles), ENT_QUOTES)."');"
));
echo "<br>(".$oMateria->cantidad. " Horas)";
- ?>
+ ?>
<?php echo draggable_element('horarioMaterias_'.$idx, array('revert' => true)) ?>
<br><br>
<?php }
@@ -187,9 +187,9 @@ function submitForm(){
<script type="text/javascript">
//<![CDATA[
-Droppables.add('wastebin', {accept:'horarioMaterias-items', hoverclass:'wastebin-active', onDrop:function(element,dropppableElement){Element.hide(element);
+Droppables.add('wastebin', {accept:'horarioMaterias-items', hoverclass:'wastebin-active', onDrop:function(element,dropppableElement){Element.hide(element);
var nombre = element.id.substr(0,element.id.indexOf("_"));
-new Ajax.Updater( nombre , 'calendario/remove/name/'+nombre, {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator')}, onLoading:function(request, json){Element.show('indicator')}, parameters:'id=' + encodeURIComponent(element.id)})}})
+new Ajax.Updater( nombre , 'calendario/remove/name/'+nombre, {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator-wrapper')}, onLoading:function(request, json){Element.show('indicator-wrapper')}, parameters:'id=' + encodeURIComponent(element.id)})}})
//]]>
</script>
<?php
@@ -199,10 +199,10 @@ function submitForm(){
'url' => 'calendario/add?name=eventname'.$event->id,
'accept' => 'horarioMaterias-items',
'hoverclass' => 'horarioMaterias-active',
- 'loading' => "Element.show('indicator')",
- 'complete' => "Element.hide('indicator')",
+ 'loading' => "Element.show('indicator-wrapper')",
+ 'complete' => "Element.hide('indicator-wrapper')",
'script' => 'true'
- ));
+ ));
}
echo javascript_include_tag('varios/wz_tooltip.js');
-?>
+?>
@@ -7,7 +7,7 @@
'url' => 'ciclolectivo/listarAlumnos',
'with' => "'division_id=' + $('pasaje_fk_division_id').value +'&division_no_id=' + value",
'script' => "true",
- 'before'=> "$('indicator').style.display='block'",
- 'complete'=> "$('indicator').style.display='none'",
+ 'before'=> "$('indicator-wrapper').style.display='block'",
+ 'complete'=> "$('indicator-wrapper').style.display='none'",
));
?>
@@ -63,15 +63,15 @@ function check_all(tag_name, valor) {
'url' => 'ciclolectivo/listarAlumnos',
'with' => "'division_id=' + $('pasaje_fk_division_id').value +'&division_no_id=' + value",
'script' => "true",
- 'before' => "$('indicator').style.display='block'",
- 'complete' => "$('indicator').style.display='none'",
+ 'before' => "$('indicator-wrapper').style.display='block'",
+ 'complete' => "$('indicator-wrapper').style.display='none'",
));
echo observe_field('pasaje_fk_ciclolectivo_id', array(
'update' => 'divisiones_destino',
'url' => 'ciclolectivo/cambiarCicloAjax',
'with' => "'ciclolectivo_id=' + value",
'script' => "true",
- 'before' => "$('indicator').style.display='block'",
- 'complete' => "$('indicator').style.display='none'",
+ 'before' => "$('indicator-wrapper').style.display='block'",
+ 'complete' => "$('indicator-wrapper').style.display='none'",
));
-?>
+?>
@@ -10,17 +10,17 @@
<?php echo javascript_tag("
function filrarAlumnosSinDivision(sin_division)
{
- $('indicator').style.display='block',
+ $('indicator-wrapper').style.display='block',
new Ajax.Updater(
'rel_alumno_division_fk_alumno_id',
'" . url_for('relAlumnoDivision/ajaxAlumnos') . "',
{
- asynchronous:true,
+ asynchronous:true,
evalScripts:false,
- onComplete: $('indicator').style.display='none',
- parameters: {
- sin_division: sin_division
- }
+ onComplete: $('indicator-wrapper').style.display='none',
+ parameters: {
+ sin_division: sin_division
+ }
}
);
}
@@ -42,7 +42,7 @@ function filrarAlumnosSinDivision(sin_division)
));
echo $value ? $value : '&nbsp;'
?>
- <input type="checkbox" id="chkAlumnosSinDivision" onclick="filrarAlumnosSinDivision(this.checked)"/>Mostrar solo alumnos sin división asignada
+ <input type="checkbox" id="chkAlumnosSinDivision" onclick="filrarAlumnosSinDivision(this.checked)"/>Mostrar solo alumnos sin división asignada
</div>
</div>

0 comments on commit 17e940b

Please sign in to comment.