dc12259b by wang

init

1 parent 8af632fb
......@@ -32,7 +32,7 @@
<div class="form-group col-sm-4 col-md-2">
<label>来源</label>
<span class="form-control select-box">
<select class="select" size="1" name="source" onfocus="this.defaultIndex=this.selectedIndedx;" onchange="this.selectedIndex=this.defaultIndex;">
<select class="select" size="1" name="source" id="source" disabled="disabled">
<?php foreach($enumSource as $k => $v) : ?>
<option value="<?=$k?>" <?=$k == $source?'selected':''?>><?=$v?></option>
<?php endforeach ?>
......@@ -175,6 +175,7 @@
<script>
function save() {
$("#source").removeAttr("disabled");
var data = $("form").serializeJson();
console.log(data);
if(data['source'] == 0){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!