Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

getInitialvalue was added to attributeEditor object. see issue5755

  • Loading branch information...
commit 5d32d8a92f32982f8f160ee728f092ba2f62d867 1 parent fb4bfbd
@farshidbeheshti farshidbeheshti authored SebastianZ committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 extension/content/firebug/html/htmlPanel.js
View
13 extension/content/firebug/html/htmlPanel.js
@@ -2262,6 +2262,19 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
var emptyAttr = {name: "", value: ""};
var sibling = insertWhere == "before" ? target.previousSibling : target;
return AttrTag.insertAfter({attr: emptyAttr}, sibling);
+ },
+
+ getInitialValue: function(target, value)
+ {
+ if(value == "")
+ return value;
+ var element = Firebug.getRepObject(target);
+ if(element && element instanceof window.Element)
+ {
+ var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
+ return element.getAttribute(attributeName);
+ }
+ return value;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.