diff --git a/static/css/note.css b/static/css/note.css index bada97e..f2692f2 100644 --- a/static/css/note.css +++ b/static/css/note.css @@ -120,14 +120,13 @@ ol li { font-size: 90%; } -.radio_link { +.radio_label { color: #000000; - text-decoration: none; } -.radio_link:hover { +.radio_label:hover { color: #ff6600; - text-decoration: none; + cursor: pointer; } .invite { diff --git a/static/js/Editor.js b/static/js/Editor.js index 229c671..be08e36 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -186,26 +186,6 @@ Editor.prototype.finish_init = function () { var invite_button = getElement( "invite_button" ); if ( invite_button ) { - if ( getElement( "access_choices" ) ) { - var collaborators_radio = getElement( "collaborators_radio" ); - connect( "collaborators_link", "onclick", function ( event ) { - collaborators_radio.checked = true; - event.stop(); - } ); - - var viewers_radio = getElement( "viewers_radio" ); - connect( "viewers_link", "onclick", function ( event ) { - viewers_radio.checked = true; - event.stop(); - } ); - - var owners_radio = getElement( "owners_radio" ); - connect( "owners_link", "onclick", function ( event ) { - owners_radio.checked = true; - event.stop(); - } ); - } - var invite_form = getElement( "invite_form" ); connect( invite_button, "onclick", function ( event ) { signal( self, "submit_form", "/users/send_invites", invite_form, function ( result ) { diff --git a/static/js/Wiki.js b/static/js/Wiki.js index c41080a..160d4a1 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1286,16 +1286,16 @@ Wiki.prototype.share_notebook = function () { if ( share_notebook_frame ) share_notebook_frame.editor.shutdown(); - var collaborators_link = createDOM( "a", - { "href": "#", "id": "collaborators_link", "class": "radio_link", "title": "Collaborators may view and edit this notebook." }, + var collaborators_label = createDOM( "label", + { "for": "collaborators_radio", "class": "radio_label", "title": "Collaborators may view and edit this notebook." }, "collaborators" ); - var viewers_link = createDOM( "a", - { "href": "#", "id": "viewers_link", "class": "radio_link", "title": "Viewers may only view this notebook." }, + var viewers_label = createDOM( "label", + { "for": "viewers_radio", "class": "radio_label", "title": "Viewers may only view this notebook." }, "viewers" ); - var owners_link = createDOM( "a", - { "href": "#", "id": "owners_link", "class": "radio_link", "title": "Owners may view, edit, rename, delete, and invite people to this notebook." }, + var owners_label = createDOM( "label", + { "for": "owners_radio", "class": "radio_label", "title": "Owners may view, edit, rename, delete, and invite people to this notebook." }, "owners" ); @@ -1314,9 +1314,9 @@ Wiki.prototype.share_notebook = function () { createDOM( "p", {}, "Invite these people as:" ), createDOM( "table" , { "id": "access_table" }, createDOM( "tr", {}, - createDOM( "td", {}, collaborators_radio, collaborators_link ), - createDOM( "td", {}, viewers_radio, viewers_link ), - createDOM( "td", {}, owners_radio, owners_link ) + createDOM( "td", {}, collaborators_radio, collaborators_label ), + createDOM( "td", {}, viewers_radio, viewers_label ), + createDOM( "td", {}, owners_radio, owners_label ) ) ) );