2012-02-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* operation/events/events_list.php: Changed arrow when event filter
	toggle is pushed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5575 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-02-13 16:07:18 +00:00
parent 9c5fe01bde
commit 4cbc1f870c
2 changed files with 48 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/events/events_list.php: Changed arrow when event filter
toggle is pushed.
2012-02-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: cleaned source code style, and fixed the

View File

@ -247,7 +247,12 @@ $url = "index.php?sec=eventos&amp;sec2=operation/events/events&amp;search=" .
echo "<br>";
//Link to toggle filter
echo '<a href="#" id="tgl_event_control"><b>'.__('Event control filter').'</b>&nbsp;'.html_print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'))).'</a><br><br>';
if (!empty($id_name)){
echo '<a href="#" id="tgl_event_control"><b>'.__('Event control filter').'</b>&nbsp;'.html_print_image ("images/go.png", true, array ("title" => __('Toggle filter(s)'), "id" => 'toggle_arrow')).'</a><br><br>';
}
else{
echo '<a href="#" id="tgl_event_control"><b>'.__('Event control filter').'</b>&nbsp;'.html_print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'), "id" => 'toggle_arrow')).'</a><br><br>';
}
//Start div
echo '<div id="event_control" style="display:none">';
@ -1327,6 +1332,43 @@ $(document).ready( function() {
return false;
});
// Change toggle arrow when it's clicked
$("#toggle_arrow").click(function() {
if ($("#toggle_arrow").attr("src").match(/[^\.]+down\.png/) == null){
var params = [];
params.push("get_image_path=1");
params.push("img_src=images/down.png");
params.push("page=include/ajax/skins.ajax");
params.push("only_src=1");
jQuery.ajax ({
data: params.join ("&"),
type: 'POST',
url: action="ajax.php",
async: false,
timeout: 10000,
success: function (data) {
$("#toggle_arrow").attr('src', data);
}
});
}else{
var params = [];
params.push("get_image_path=1");
params.push("img_src=images/go.png");
params.push("page=include/ajax/skins.ajax");
params.push("only_src=1");
jQuery.ajax ({
data: params.join ("&"),
type: 'POST',
url: action="ajax.php",
async: false,
timeout: 10000,
success: function (data) {
$("#toggle_arrow").attr('src', data);
}
});
}
});
});
/* ]]> */