inline edit only works on the first tab loaded in a tabbed panel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Timur Sufiev |
Bug Description
I am following the instruction regarding how to add in-line edit to the tables based on http://
I used admin -> volumes
I updated following block to the volumes tab table: openstack_
class UpdateRow(
ajax = True
def get_data(self, request, volume_id):
volume = cinder.
return volume
class UpdateCell(
def allowed(self, request, volume, cell):
return True
def update_cell(self, request, data, id,
obj = data
value = getattr(obj, 'name', None)
return True
class VolumesTable(
"""
name = tables.
name = tables.
......more code
I updated the following block to the volume types tab table: openstack_
class UpdateRow(
ajax = True
def get_data(self, request, volume_type_id):
volume_type = cinder.
return volume_type
class UpdateCell(
def allowed(self, request, volume_type, cell):
return True
def update_cell(self, request, data, volume_type_id,
obj = data
value = getattr(obj, 'name', None)
return True
class VolumeTypesTabl
# name = tables.
name = tables.
.....more code
I also add the similar code to snapshots table
The inline code for volumes table it works fine. The inline code for volume_types table seems to have problem. the inline code for snapshots table doesn't work either.
examine the element noticed the following difference:
element for the name cell in volumes table
when not hover:
<div class="
when hover:
<div class="
element for the name cell in volume_types table is missing display:none as styling even both of volumes and volume_types using the same openstack_
<div class="
If I add that display:none or display:block into <div class="
Looks like the in-line edit only allows the first tab's table in-line edit by default, it doesn't seem to allow in-line edit to work in multiple tables on different tabs
description: | updated |
Changed in horizon: | |
assignee: | nobody → Paul Karikh (pkarikh) |
tags: | added: horizon-core |
summary: |
- in-line edit doesn't work on the second tab or third tab + inline edit only works on the first tab loaded in a tabbed panel |
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in horizon: | |
assignee: | Paul Karikh (pkarikh) → Vlad Okhrimenko (vokhrimenko) |
Changed in horizon: | |
assignee: | Vlad Okhrimenko (vokhrimenko) → Timur Sufiev (tsufiev-x) |
Changed in horizon: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-1 → 2015.1.0 |
the code on volumes table and volume_types table