[hg] galaxy 3422: Make anchor ID/name editable in pages.
details: http://www.bx.psu.edu/hg/galaxy/rev/94741c94de0a changeset: 3422:94741c94de0a user: jeremy goecks <jeremy.goecks@emory.edu> date: Mon Feb 22 08:12:03 2010 -0500 description: Make anchor ID/name editable in pages. diffstat: templates/page/editor.mako | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 831bbcccc4b2 -r 94741c94de0a templates/page/editor.mako --- a/templates/page/editor.mako Mon Feb 22 07:43:12 2010 -0500 +++ b/templates/page/editor.mako Mon Feb 22 08:12:03 2010 -0500 @@ -138,7 +138,8 @@ // Set input elt class, value. var attribute_input = $(".wym_href"); attribute_input.addClass("wym_id").removeClass("wym_href"); - attribute_input.val( attribute_input.attr('id') ); + if (selected) + attribute_input.val( $(selected).attr('id') ); // Remove link. $(this).remove();
participants (1)
-
Greg Von Kuster