mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
port to 4.1 admin/ordre des collections
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
$(document).ready(function(){
|
||||
var offsets = [
|
||||
{% for collection in collections|sort_collections %}
|
||||
{% if not loop.first %},{% endif %} {{ collection.get_ord() }}
|
||||
{% if not loop.first %},{% endif %} {{ loop.index }}
|
||||
{% endfor %}
|
||||
];
|
||||
var select = $("#coll-order");
|
||||
@@ -91,7 +91,7 @@
|
||||
data: {order: order},
|
||||
url: '{{ path('admin_database_submit_collections_order', {'databox_id': app['request'].attributes.get('databox_id')}) }}',
|
||||
beforeSend : function() {
|
||||
$this.prop('disabled',true)
|
||||
$this.prop('disabled',true);
|
||||
},
|
||||
success : function(datas) {
|
||||
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), {
|
||||
|
@@ -22,10 +22,10 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="ck_{{collection["base_id"]}} checkbas check-filters" style="*margin-top:-18px;" data-save="true"
|
||||
<input class="ck_{{base_id}} checkbas check-filters" style="*margin-top:-18px;" data-save="true"
|
||||
|
||||
id="ck_{{collection["base_id"]}}_{{unique_id}}" type="checkbox"
|
||||
name="bases[]" value="{{collection["base_id"]}}" {% if collection["selected"] %}checked="checked"{% endif %} />
|
||||
id="ck_{{base_id}}_{{unique_id}}" type="checkbox"
|
||||
name="bases[]" value="{{base_id}}" {% if collection["selected"] %}checked="checked"{% endif %} />
|
||||
</td>
|
||||
<td>
|
||||
<label style="line-height: 18px;"
|
||||
|
Reference in New Issue
Block a user