merge_dev

This commit is contained in:
liuzheng712
2015-11-17 09:53:43 +08:00
17 changed files with 31 additions and 1222 deletions

View File

@@ -129,4 +129,4 @@ type="checkbox" name="selected" value="{{ group.id }}">
$('.shiftCheckbox').shiftcheckbox();
});
</script>
{% endblock %}
{% endblock %}

View File

@@ -93,10 +93,10 @@
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">额外</label>
<div class="form-group"><label class="col-sm-2 control-label">其它</label>
<div class="col-sm-2">
<div class="checkbox i-checks">
<label><input type="checkbox" value="0" name="extra" ></label>
<label><input type="checkbox" value="0" name="extra" ></label>
</div>
</div>
<div class="col-sm-2">

View File

@@ -42,7 +42,7 @@
<thead>
<tr>
<th class="text-center">
<input type="checkbox" id="select_all" onclick="selectAll()" name="select_all">
<input type="checkbox" id="check_all" onclick="checkAll()">
</th>
<th class="text-center">用户名</th>
<th class="text-center">姓名</th>
@@ -57,7 +57,7 @@
{% for user in users.object_list %}
<tr class="gradeX">
<td class="text-center">
<input type="checkbox" name="selected" value="{{ user.id }}">
<input type="checkbox" name="checked" value="{{ user.id }}">
</td>
<td class="text-center"> {{ user.username }} </td>
<td class="text-center"> {{ user.name }} </td>

View File

@@ -47,13 +47,19 @@
var old_href = $(this).attr('href').replace('?', '');
var searchArray = searchStr.split('&');
if (searchStr == ''){
searchStr = '?page=1'
}
if (searchStr.indexOf('page')>=0){
searchArray.pop();
}
searchArray.push(old_href);
if (searchArray.length > 1){
if (searchArray.length > 1) {
$(this).attr('href', searchArray.join('&'));
}
{# sleep(1000)#}
})
});