2011-02-18 18:44:39 |
Gary Poster |
description |
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 BugNotificationLevel) needs to be decoupled from the UI bits and bobs so that it can be reused as part of the mute button story.
See also bug 721400 and bug 721410. The first comment to bug 721400 has an alternate solution to this problem. |
|