add a new rule at the end of all existing rule
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Won't Fix
|
Medium
|
Rahul | |||
R3.2 |
Won't Fix
|
Undecided
|
Rahul | |||
Trunk |
Fix Committed
|
Medium
|
Suresh Akula |
Bug Description
When playing with rules, we have two options to add new rules: “+” on the title, that refers to ‘add a new rule at the end of all existing rules’, and the ‘+’ located at the end of each rule that means ‘add a new rule just next to me’ … This was working in 2.21. But no more in 3.0.1
Have inspected "+" element and compared versions 2.21-102 and 3.0.1.0-23 3.1.0.0-25
On 2.21-102 html element looks like:
<i class="icon-plus" onclick=
on 3.x.x version it looks like:
<a data-bind="click: function() { $root.addRule(); }"><i class="
policymodel.js addRule function desn't take arguments like 'this element' to append new rule element just to it, so new rule is simply added to the ruleList rulesList.
addRule: function() {
var rulesList = this.model(
},
In 2.21-102 we have line "parentEl.
function appendRuleEntry
var ruleEntry = createRuleEntry
if (defaultRow) {
} else {
var parentEl = who.parentNode.
}
scrollUp(
}
description: | updated |
information type: | Proprietary → Public |
tags: | added: ui |
Backbone based editable grids didn't support insertion at a particular index. Functionality could not be supported while moving to MVC based code.