From f2f6ed48634ee4d74dd780c66e58c6b1e00234dd Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 14 Feb 2012 23:47:19 -0800 Subject: Completing the anchor element Signed-off-by: Valerio Virgillito --- js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/panels/Components') diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js index bb6b049a..4a0ac2b5 100644 --- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js +++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js @@ -268,6 +268,8 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component case "anchor": el = NJUtils.makeNJElement("a", "Anchor", "component"); el.elementModel.pi = "AnchorPi"; + el.setAttribute("href", "http://www.motorola.com"); + el.innerHTML = "link"; break; case "button": el = NJUtils.makeNJElement(name, "Button", "component"); -- cgit v1.2.3