2012-11-08 Miguel de Dios <miguel.dedios@artica.es>

* operation/events/events.php, include/functions_tags.php: cleaned
	source code style.
	
	* godmode/events/event_edit_filter.php: fixed the lost vars in
	the javascript code for the none elements in the tag select widgets.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-11-08 12:24:27 +00:00
parent 7bd0abe2f8
commit 3973c62408
4 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2012-11-08 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/events.php, include/functions_tags.php: cleaned
source code style.
* godmode/events/event_edit_filter.php: fixed the lost vars in
the javascript code for the none elements in the tag select widgets.
2012-11-08 Sergio Martin <sergio.martin@artica.es>
* include/functions_graph.php

View File

@ -363,6 +363,9 @@ var select_without_tag_empty = <?php echo (int)$remove_without_tag_disabled;?>;
var origin_select_with_tag_empty = <?php echo (int)$add_with_tag_disabled;?>;
var origin_select_without_tag_empty = <?php echo (int)$add_without_tag_disabled;?>;
var val_none = 0;
var text_none = "<?php echo __('None'); ?>";
$(document).ready( function() {
$("#button-add_whith").click(function() {
click_button_add_tag("with");

View File

@ -698,14 +698,14 @@ function tags_get_policy_module_tags ($id_policy_module){
*
* @return mixed Array with tags.
*/
function tags_get_all_tags (){
function tags_get_all_tags () {
$tags = db_get_all_fields_in_table('ttag', 'name');
if ($tags === false)
return false;
$return = array();
foreach ($tags as $id => $tag){
foreach ($tags as $id => $tag) {
$return[$id] = $tag['name'];
}