Changeset 11633 for branches

Show
Ignore:
Timestamp:
11/11/08 14:48:36 (8 weeks ago)
Author:
iclerencia@…
Message:

Fix a problem with the Module status widget
Fix some problems when closing widgets

Location:
branches/iclerencia/dashboard/client/ebox/src/templates/dashboard
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/iclerencia/dashboard/client/ebox/src/templates/dashboard/index.mas

    r11625 r11633  
    7070<script type="text/javascript"> 
    7171//<![CDATA[ 
    72 function closeWidget(widget) 
     72function closeWidget(wid) 
    7373{ 
    74     var name = 'widget_' + widget; 
     74    var name = 'widget_' + wid; 
    7575    var parent = $(name).parentNode.id; 
    7676    Element.remove(name); 
     
    7979        parameters: { dashboard: parent, widgets: Sortable.sequence(parent).join(',') } 
    8080    }); 
     81    var placeholder = name + '_placeholder'; 
     82    var parts = wid.split(':'); 
     83    if($(placeholder)) { 
     84        showModuleWidgets(parts[0]); 
     85    } 
    8186} 
    8287 
  • branches/iclerencia/dashboard/client/ebox/src/templates/dashboard/status.mas

    r10807 r11633  
    2121} 
    2222</%init> 
    23 <form action='/ebox/EBox/RestartService'> 
    2423<tr> 
    2524<td class='summaryKey'><% $item->{printableName} %></td> 
    2625<td class='summaryValue'><span class='sleft'><% $status_str %></span> 
    2726% if ($item->{running} or $item->{enabled}) { 
     27<form action='/ebox/EBox/RestartService'> 
    2828    <input type='hidden' name='module' value='<% $item->{name} %>'/> 
    2929    <span class='sright'> 
    3030        <input class='inputButtonRestart' type='submit' name='restart' value='<% $restart %>'/> 
    3131    </span> 
     32</form> 
    3233% } 
    3334</td> 
    3435</tr> 
    35 </form> 
    3636% settextdomain($domain);