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