Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use get_attr, and fix something that broke in the merge.

  • Loading branch information...
commit 74ec0cdd9f114bc3ec5cb674200594babfa03558 1 parent f3587cf
@hzr hzr authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/style/css_inspector_actions.js
  2. +1 −1  src/style/stylesheets.js
View
4 src/style/css_inspector_actions.js
@@ -165,8 +165,8 @@ cls.CSSInspectorActions = function(id)
{
var is_disabled = target.checked;
var rule_id = parseInt(target.getAttribute("data-rule-id"));
- var rt_id = parseInt(target.parentNode.parentNode.parentNode.getAttribute("rt-id"));
- var obj_id = parseInt(target.parentNode.parentNode.getAttribute("obj-id"));
+ var rt_id = parseInt(target.get_attr("parent-node-chain", "rt-id"));
+ var obj_id = parseInt(target.get_attr("parent-node-chain", "obj-id"));
if (is_disabled)
{
View
2  src/style/stylesheets.js
@@ -575,7 +575,7 @@ cls.Stylesheets = function()
this.create_declaration = function create_declaration(prop, value, is_important, rule_id, is_disabled, origin)
{
value = helpers.escapeTextHtml(value);
- return (!(origin == ORIGIN_USER_AGENT || rule_id == undefined) ? "<input type='checkbox'" +
+ return (!(origin == ORIGIN_USER_AGENT || origin == ORIGIN_LOCAL) ? "<input type='checkbox'" +
" title='" + (is_disabled ? "Enable" : "Disable") + "'" +
" class='enable-disable'" +
(!is_disabled ? " checked='checked'" : "") +
Please sign in to comment.
Something went wrong with that request. Please try again.