Authored by chenchao

add require js

... ... @@ -3,7 +3,7 @@
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<form id="basicForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>">
<form id="basicForm" role="form" class="form-horizontal form-bordered" method="post" action="/promotionInfo/add">
<div class="panel panel-default">
<div class="panel-heading">
... ...
... ... @@ -5,7 +5,8 @@ var saveConfig={
formId:"basicForm",
_btnId:"save",
reloadUrl:"/promotionInfo/index",
tempId:"template_save"
tempId:"template_save",
action:"/promotionInfo/add"
}
$(document).on('click', '#'+saveConfig._btnId, function () {
... ... @@ -42,7 +43,7 @@ $(document).on('click', '#'+saveConfig._btnId, function () {
, function () {
if(check){
common.util.__ajax({
url: $("#"+saveConfig.formId).attr("action"),
url: $("#"+saveConfig.formId).attr("action")||saveConfig.action,
data: _form_data
}, function () {
location.href = saveConfig.reloadUrl
... ...
... ... @@ -5,6 +5,7 @@
var $ = require('jquery'),
common = require('../../../common/common');
require('../../../common/util/datepicker');
var addEdit=require("./Add");
var g = new common.grid({
el: '#basicTable',
... ...