spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[ljcom] r11875: LJSUP-12013: It is impossible to remove ...

Committer: atyurin
LJSUP-12013: It is impossible to remove domains
U   trunk/htdocs/js/pay.js
Modified: trunk/htdocs/js/pay.js
===================================================================
--- trunk/htdocs/js/pay.js	2012-05-03 12:18:58 UTC (rev 11874)
+++ trunk/htdocs/js/pay.js	2012-05-03 12:24:44 UTC (rev 11875)
@@ -563,6 +563,8 @@
 		}).input();
 
 		domainForm.submit(function(e) {
+			domainField.removeClass(errorClass.join(' '));
+			
 			var sure = confirm(LiveJournal.getLocalizedStr('/shop/selfpromo.bml.ask_add'));
 			sure && jQuery.ajax({
 				url: endpoint,
@@ -637,7 +639,7 @@
 
 				success: function(res) {
 					if (!res.error) {
-						jQuery(that).parents('tr').detach();
+						jQuery(that).parent().parent().detach();
 
 						// hide 'manage' tab if no children and switch to 'buy'
 						if (domains.children('tbody').children().length == 0) {

Tags: atyurin, js, ljcom, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments