Skip to content

Commit

Permalink
Use get_attr, and fix something that broke in the merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Håsäther committed Aug 5, 2010
1 parent f3587cf commit 74ec0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/style/css_inspector_actions.js
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/style/stylesheets.js
Expand Up @@ -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'" : "") +
Expand Down

0 comments on commit 74ec0cd

Please sign in to comment.