mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
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:
parent
e72b63778a
commit
47f902fe78
@ -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>
|
2012-02-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_reporting.php: cleaned source code style, and fixed the
|
* include/functions_reporting.php: cleaned source code style, and fixed the
|
||||||
|
@ -247,7 +247,12 @@ $url = "index.php?sec=eventos&sec2=operation/events/events&search=" .
|
|||||||
|
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
//Link to toggle filter
|
//Link to toggle filter
|
||||||
echo '<a href="#" id="tgl_event_control"><b>'.__('Event control filter').'</b> '.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> '.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> '.html_print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'), "id" => 'toggle_arrow')).'</a><br><br>';
|
||||||
|
}
|
||||||
|
|
||||||
//Start div
|
//Start div
|
||||||
echo '<div id="event_control" style="display:none">';
|
echo '<div id="event_control" style="display:none">';
|
||||||
@ -1328,6 +1333,43 @@ $(document).ready( function() {
|
|||||||
return false;
|
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);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
/* ]]> */
|
/* ]]> */
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user