fixup some whitespace
authorDenis Ovsienko <denis@ovsienko.info>
Wed, 4 Jul 2018 14:18:37 +0000 (15:18 +0100)
committerDenis Ovsienko <denis@ovsienko.info>
Thu, 5 Jul 2018 10:45:54 +0000 (11:45 +0100)
* renderEntityTagsPortlet()
* listCells()
* spotEntity()
* switchportInfoJS()

[skip ci]

wwwroot/inc/database.php
wwwroot/inc/interface.php

index 55da7a4..3cd34cf 100644 (file)
@@ -495,7 +495,7 @@ function listCells ($realm, $parent_id = 0)
                                'id' => $tag_id,
                                'tag' => $taglist[$tag_id]['tag'],
                                'parent_id' => $taglist[$tag_id]['parent_id'],
-                               'color' =>  $taglist[$tag_id]['color'],
+                               'color' => $taglist[$tag_id]['color'],
                                'user' => $row['tag_user'],
                                'time' => $row['tag_time'],
                        );
@@ -608,7 +608,7 @@ function spotEntity ($realm, $id, $ignore_cache = FALSE)
                                        'id' => $row['tag_id'],
                                        'tag' => $taglist[$row['tag_id']]['tag'],
                                        'parent_id' => $taglist[$row['tag_id']]['parent_id'],
-                                       'color' =>  $taglist[$row['tag_id']]['color'],
+                                       'color' => $taglist[$row['tag_id']]['color'],
                                        'user' => $row['tag_user'],
                                        'time' => $row['tag_time'],
                                );
@@ -619,7 +619,7 @@ function spotEntity ($realm, $id, $ignore_cache = FALSE)
                                'id' => $row['tag_id'],
                                'tag' => $taglist[$row['tag_id']]['tag'],
                                'parent_id' => $taglist[$row['tag_id']]['parent_id'],
-                               'color' =>  $taglist[$row['tag_id']]['color'],
+                               'color' => $taglist[$row['tag_id']]['color'],
                                'user' => $row['tag_user'],
                                'time' => $row['tag_time'],
                        );
index 07bb62f..cc0744a 100644 (file)
@@ -4437,7 +4437,7 @@ function printTagCheckboxTable ($input_name, $preselect, $neg_preselect, $taglis
 function renderEntityTagsPortlet ($title, $tags, $preselect, $realm)
 {
        startPortlet ($title);
-       echo  '<a class="toggleTreeMode" style="display:none" href="#"></a>';
+       echo '<a class="toggleTreeMode" style="display:none" href="#"></a>';
        echo '<table border=0 cellspacing=0 cellpadding=3 align=center class="tagtree">';
        printOpFormIntro ('saveTags');
        printTagCheckboxTable ('taglist', $preselect, array(), $tags, $realm);
@@ -6216,7 +6216,7 @@ function switchportInfoJS($object_id)
        (
                'link' => array ('op' => 'get_link_status', 'gw' => 'getportstatus'),
                'conf' => array ('op' => 'get_port_conf', 'gw' => 'get8021q'),
-               'mac' =>  array ('op' => 'get_mac_list', 'gw' => 'getmaclist'),
+               'mac' => array ('op' => 'get_mac_list', 'gw' => 'getmaclist'),
                'portmac' => array ('op' => 'get_port_mac_list', 'gw' => 'getportmaclist'),
        );
        $breed = detectDeviceBreed ($object_id);