diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-31 03:57:57 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-31 03:57:57 +0000 |
commit | 608b81cdaae88392dcec0bcde2ec9b8fb4ace634 (patch) | |
tree | a909fdbabae2cb8cd0fcc02e8125bb2531792ec5 /sca-cpp/trunk/modules/js/htdocs/ui.js | |
parent | 6afef449a6560d469102ab0298d4cc925d76aa0f (diff) |
Minor stylesheet changes.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1065479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/js/htdocs/ui.js')
-rw-r--r-- | sca-cpp/trunk/modules/js/htdocs/ui.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/js/htdocs/ui.js b/sca-cpp/trunk/modules/js/htdocs/ui.js index 31cdaed7c6..b2527dc66b 100644 --- a/sca-cpp/trunk/modules/js/htdocs/ui.js +++ b/sca-cpp/trunk/modules/js/htdocs/ui.js @@ -54,8 +54,8 @@ ui.menu = function(name, href) { } if (complete(this.href) != complete(window.top.location.pathname)) - return '<a href="' + this.href + '" target="_parent">' + this.name + '</a>'; - return '<span><b>' + this.name + '</b></span>'; + return '<a href="' + this.href + '" target="_parent"><span class=amenu>' + this.name + '</span></a>'; + return '<a href="' + this.href + '" target="_parent"><span class=smenu>' + this.name + '</span></a>'; }; } return new Menu(name, href); @@ -264,6 +264,16 @@ ui.installwidget = function() { }; /** + * Load an iframe into an element. + */ +ui.loadiframe = function(el, doc) { + var f = el + 'Frame'; + $(el).innerHTML = + '<iframe id="' + f + '" class="loadedframe" scrolling="no" frameborder="0" src="' + doc + '"></iframe>'; + return f; +}; + +/** * Convert a CSS position to a numeric position. */ ui.csspos = function(p) { |