Showing
6 changed files
with
15 additions
and
4 deletions
No preview for this file type
... | @@ -551,7 +551,8 @@ function initMatching(){ | ... | @@ -551,7 +551,8 @@ function initMatching(){ |
551 | } | 551 | } |
552 | if ($obj[0].tagName == "FORM") { | 552 | if ($obj[0].tagName == "FORM") { |
553 | $obj[0].disabled = false; | 553 | $obj[0].disabled = false; |
554 | - $obj.find("input, button").attr('disabled', null); | 554 | + $obj.find("input[type='text'], button").attr('disabled', null); |
555 | + | ||
555 | var $but_input = $obj.find('[type=submit]'); | 556 | var $but_input = $obj.find('[type=submit]'); |
556 | if ($but_input.is('button')) { | 557 | if ($but_input.is('button')) { |
557 | $but_input.html(temp); | 558 | $but_input.html(temp); | ... | ... |
... | @@ -396,7 +396,11 @@ | ... | @@ -396,7 +396,11 @@ |
396 | //如果是游客的话则调用安卓截屏方法 | 396 | //如果是游客的话则调用安卓截屏方法 |
397 | if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ | 397 | if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){ |
398 | window.android.screenShot(); | 398 | window.android.screenShot(); |
399 | - } | 399 | + } |
400 | + $(this).attr("disabled",true); | ||
401 | + $(this).css({"background":"#999"}); | ||
402 | + $(this).parent("li").css({"background":"#999"}); | ||
403 | + | ||
400 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); | 404 | Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that); |
401 | } | 405 | } |
402 | return false; | 406 | return false; |
... | @@ -419,6 +423,9 @@ | ... | @@ -419,6 +423,9 @@ |
419 | that.$c.find('[name="old_usernmae"]').val(random_name) | 423 | that.$c.find('[name="old_usernmae"]').val(random_name) |
420 | that.$c.find('[name="password"]').val(random_passwd) | 424 | that.$c.find('[name="password"]').val(random_passwd) |
421 | that.$c.find('[name="type"]').val(-1) | 425 | that.$c.find('[name="type"]').val(-1) |
426 | + that.$c.find("input#btn-regist").attr('disabled', null); | ||
427 | + that.$c.find('.submit').css({"background":"#00beef"}); | ||
428 | + that.$c.find('.submit').parent("li").css({"background":"#00beef"}); | ||
422 | 429 | ||
423 | } | 430 | } |
424 | Register.prototype.cache = Login.prototype.cache; | 431 | Register.prototype.cache = Login.prototype.cache; |
... | @@ -431,6 +438,10 @@ | ... | @@ -431,6 +438,10 @@ |
431 | this.cache(); | 438 | this.cache(); |
432 | Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); | 439 | Core.showTips('成功注册,欢迎使用' + Core.PLATFORM_NAME + '游戏平台'); |
433 | Core.updateMod('home'); | 440 | Core.updateMod('home'); |
441 | + | ||
442 | + this.$c.find("input#btn-regist").attr('disabled', null); | ||
443 | + this.$c.find('.submit').css({"background":"#00beef"}); | ||
444 | + this.$c.find('.submit').parent("li").css({"background":"#00beef"}); | ||
434 | } | 445 | } |
435 | Register.prototype.show_after = function() { | 446 | Register.prototype.show_after = function() { |
436 | this.set_random(); | 447 | this.set_random(); | ... | ... |
... | @@ -158,7 +158,7 @@ | ... | @@ -158,7 +158,7 @@ |
158 | <input type="hidden" name="type" value="-1"> | 158 | <input type="hidden" name="type" value="-1"> |
159 | <ul class="inline-btn"> | 159 | <ul class="inline-btn"> |
160 | <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> | 160 | <li><a class="btn btn_pri_block btn-orange" href="#home">返回</a></li> |
161 | - <li><a class="submit btn larg " >确定注册</a></li> | 161 | + <li><input type="button" class="submit btn larg" id="btn-regist" value="确定注册"></li> |
162 | </ul> | 162 | </ul> |
163 | </form> | 163 | </form> |
164 | </div> | 164 | </div> | ... | ... |
... | @@ -122,7 +122,6 @@ body{ | ... | @@ -122,7 +122,6 @@ body{ |
122 | height:53px; | 122 | height:53px; |
123 | } | 123 | } |
124 | .new-sdk-container .new-sdk-logo img{ | 124 | .new-sdk-container .new-sdk-logo img{ |
125 | - display: none; | ||
126 | width: 210px; | 125 | width: 210px; |
127 | margin: 0 auto; | 126 | margin: 0 auto; |
128 | padding: 15px 0 0 0; | 127 | padding: 15px 0 0 0; | ... | ... |
-
Please register or login to post a comment