Skip to content

Commit

Permalink
Merge "Fix legacy drag and drop widgets"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 9, 2016
2 parents 2ac6a69 + cc4126f commit 20f00de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions horizon/static/horizon/js/horizon.firewalls.js
Expand Up @@ -40,7 +40,7 @@ horizon.firewalls = {
* rule id for rule_id.
**/
get_rule_element: function(rule_id) {
return $('li > label[for^="id_rule_' + rule_id + '"]');
return $('label[for^="id_rule_' + rule_id + '"]');
},

/*
Expand All @@ -51,7 +51,7 @@ horizon.firewalls = {
horizon.firewalls.rules_selected = [];
horizon.firewalls.rules_available = [];
$(this.get_rule_element("")).each(function(){
var $this = $(this);
var $this = $(this).parent();
var $input = $this.children("input");
var rule_property = {
name:$this.text().replace(/^\s+/,""),
Expand Down Expand Up @@ -147,7 +147,7 @@ horizon.firewalls = {
* router id for router_id.
**/
get_router_element: function(router_id) {
return $('li > label[for^="id_router_' + router_id + '"]');
return $('label[for^="id_router_' + router_id + '"]');
},

/*
Expand All @@ -158,7 +158,7 @@ horizon.firewalls = {
horizon.firewalls.routers_selected = [];
horizon.firewalls.routers_available = [];
$(this.get_router_element("")).each(function(){
var $this = $(this);
var $this = $(this).parent();
var $input = $this.children("input");
var router_property = {
name:$this.text().replace(/^\s+/,""),
Expand Down
4 changes: 2 additions & 2 deletions horizon/static/horizon/js/horizon.instances.js
Expand Up @@ -40,7 +40,7 @@ horizon.instances = {
* network id for network_id.
**/
get_network_element: function(network_id) {
return $('li > label[for^="id_network_' + network_id + '"]');
return $('label[for^="id_network_' + network_id + '"]');
},

/*
Expand All @@ -51,7 +51,7 @@ horizon.instances = {
horizon.instances.networks_selected = [];
horizon.instances.networks_available = [];
$(this.get_network_element("")).each(function () {
var $this = $(this);
var $this = $(this).parent();
var $input = $this.children("input");
var name = horizon.string.escapeHtml($this.text().replace(/^\s+/, ""));
var network_property = {
Expand Down

0 comments on commit 20f00de

Please sign in to comment.