can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r11838: LJSUP-11857: Cyr sub domains

Committer: dpetrov
LJSUP-11857: Cyr sub domains
U   trunk/htdocs/js/pay.js
Modified: trunk/htdocs/js/pay.js
===================================================================
--- trunk/htdocs/js/pay.js	2012-04-27 06:20:44 UTC (rev 11837)
+++ trunk/htdocs/js/pay.js	2012-04-27 07:08:04 UTC (rev 11838)
@@ -564,7 +564,7 @@
 		}).input();
 
 		domainForm.submit(function(e) {
-			var sure = confirm(Site.ml_text['/shop/selfpromo.bml.ask_add']);
+			var sure = confirm(LiveJournal.getLocalizedStr('/shop/selfpromo.bml.ask_add'));
 			sure && jQuery.ajax({
 				url: endpoint,
 				type: 'POST',
@@ -611,15 +611,15 @@
 		});
 
 		tabs.children().first().find('a').click(function() {
-			setTimeout(function() {
+			Function.defer(function() {
 				domainInput.focus();
-			}, 0);
+			});
 		});
 
 		removeLinks.length && shop.on('click', '.b-domainru-remove', function(e) {
 			var that = this;
 
-			var sure = confirm(Site.ml_text['/shop/selfpromo.bml.ask_delete']);
+			var sure = confirm(LiveJournal.getLocalizedStr('/shop/selfpromo.bml.ask_delete'));
 			sure && jQuery.ajax({
 				url: endpoint,
 				type: 'POST',

Tags: can3p, dpetrov, js, ljcom
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