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:
parent
7bd0abe2f8
commit
3973c62408
|
@ -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>
|
2012-11-08 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_graph.php
|
* include/functions_graph.php
|
||||||
|
|
|
@ -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_with_tag_empty = <?php echo (int)$add_with_tag_disabled;?>;
|
||||||
var origin_select_without_tag_empty = <?php echo (int)$add_without_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() {
|
$(document).ready( function() {
|
||||||
$("#button-add_whith").click(function() {
|
$("#button-add_whith").click(function() {
|
||||||
click_button_add_tag("with");
|
click_button_add_tag("with");
|
||||||
|
|
|
@ -698,14 +698,14 @@ function tags_get_policy_module_tags ($id_policy_module){
|
||||||
*
|
*
|
||||||
* @return mixed Array with tags.
|
* @return mixed Array with tags.
|
||||||
*/
|
*/
|
||||||
function tags_get_all_tags (){
|
function tags_get_all_tags () {
|
||||||
$tags = db_get_all_fields_in_table('ttag', 'name');
|
$tags = db_get_all_fields_in_table('ttag', 'name');
|
||||||
|
|
||||||
if ($tags === false)
|
if ($tags === false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$return = array();
|
$return = array();
|
||||||
foreach ($tags as $id => $tag){
|
foreach ($tags as $id => $tag) {
|
||||||
$return[$id] = $tag['name'];
|
$return[$id] = $tag['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue