git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 7b099a4c authored by csarven's avatar csarven

Don't allow user to send a new message or nudge right after subscribing to another contact

darcs-hash:20081120235752-eefa4-42e67140086035ae57c4db38aea48cabb0486d75.gz
parent 49117263
......@@ -63,7 +63,6 @@ class SubscribeAction extends Action {
common_element_end('head');
common_element_start('body');
common_unsubscribe_form($profile);
common_profile_new_message_nudge($cur, $profile);
common_element_end('body');
common_element_end('html');
} else {
......
......@@ -99,14 +99,6 @@ $(document).ready(function(){
var form_subscribe_id = form_unsubscribe_id.replace('unsubscribe', 'subscribe');
$("form#"+form_subscribe_id).replaceWith(form_unsubscribe);
$("form#"+form_unsubscribe_id).ajaxForm(UnSubscribe).each(addAjaxHidden);
var p_sanm = $('#profile_send_a_new_message', xml).get(0);
if (p_sanm) {
$("#profile_actions").append(document._importNode(p_sanm, true));
}
var p_n = $('#profile_nudge', xml).get(0);
if (p_n) {
$("#profile_actions").append(document._importNode(p_n, true));
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment