리뉴얼 소스 수정

This commit is contained in:
thisgun committed 2017-08-24 12:02:40 +09:00
1 parent 97cb50ab8b
commit 47a4a10f89
31 files changed
+366 -51

No files matched your search

+15 -12
View File
@@ -723,21 +723,24 @@ function get_write_token(bo_table)
$(function() {
$(document).on("click", "form[name=fwrite] input:submit, form[name=fwrite] button:submit, form[name=fwrite] input:image", function() {
var f = this.form;
var bo_table = f.bo_table.value;
var token = get_write_token(bo_table);
var bo_table = (typeof f.bo_table != "undefined") ? f.bo_table.value : "";
if(!token) {
alert("토큰 정보가 올바르지 않습니다.");
return false;
if( bo_table ){
var token = get_write_token(bo_table);
if(!token) {
alert("토큰 정보가 올바르지 않습니다.");
return false;
}
var $f = $(f);
if(typeof f.token === "undefined")
$f.prepend('<input type="hidden" name="token" value="">');
$f.find("input[name=token]").val(token);
}
var $f = $(f);
if(typeof f.token === "undefined")
$f.prepend('<input type="hidden" name="token" value="">');
$f.find("input[name=token]").val(token);
return true;
});
});