This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var defaults = { | |
error_container : '#check_result', | |
waiting : '#waiting', | |
target_text : '編碼', | |
api_url: '' | |
} | |
var checkDuplicate = function(elem, options){ | |
var currentTimer = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo (($field->widgetView($profile))?$field->widgetView($profile):CHtml::encode((($field->range)?Profile::range($field->range,$profile->getAttribute($field->varname)):$profile->getAttribute($field->varname)))); ?> | |
<?php echo (($field->widgetView($profile))?$field->widgetView($profile):CHtml::encode((($field->range)?Profile::range($field->range,$profile->getAttribute($field->varname)):$profile->getAttribute($field->varname)))); ?> | |
<?php | |
//應該是這樣 | |
if($field->widgetView($profile)){ | |
echo $field->widgetView($profile); | |
}else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".authBtn").live("click",function(){ | |
var _this =this; | |
$.getJSON('auth_process.php?type=json',{Id:$(this).attr("id")}, | |
function(ret) { | |
//成功 | |
if(ret=="pass"){ | |
$(_this).remove(); | |
// console.log("啟用!!!"); | |
}else if(ret=="fail"){ | |
window.alert("驗證手續失敗請再試一次或刷新頁面!!!"); |