At the moment the subscribe_current_user() JavaScript function (in lib/lp/bugs/javascript/bugtask_index_portlets.js) isn't very reusable because it's tightly coupled to the UI of the page. The actual functionality (adding a subscription at a given BugNotificationLevel) needs to be decoupled from the UI bits and bobs so that it can be reused as part of the mute button story.
At the moment the subscribe_ current_ user() JavaScript function (in lib/lp/ bugs/javascript /bugtask_ index_portlets. js) isn't very reusable because it's tightly coupled to the UI of the page. The actual functionality (adding a subscription at a given BugNotification Level) needs to be decoupled from the UI bits and bobs so that it can be reused as part of the mute button story.