mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
PHRAS-2885 Add missing warning when try to edit record from different db
This commit is contained in:
@@ -411,12 +411,31 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
{% if multipleDataboxes == 1 %}
|
||||
$(function() {
|
||||
$('#EDITWINDOW').hide();
|
||||
$( "#dialog-edit-many-sbas:ui-dialog" ).dialog( "destroy" );
|
||||
$( "#dialog-edit-many-sbas" ).dialog({
|
||||
modal: true,
|
||||
resizable:false,
|
||||
buttons: {
|
||||
Ok: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#dialog-edit-many-sbas').on('dialogclose', function(event) {
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
{% else %}
|
||||
{% set notActionableMsg = '' %}
|
||||
{% if not_actionable > 1 %}
|
||||
{% set notActionableMsg = 'prod::editing: %not_actionable% documents ne peuvent etre edites car vos droits sont induffisants' | trans({'%not_actionable%' : not_actionable}) %}
|
||||
{% elseif not_actionable == 1 %}
|
||||
{% set notActionableMsg = 'prod::editing: 1 document ne peut etre edite car vos droits sont induffisants' | trans | e('js')%}
|
||||
{% endif %}
|
||||
|
||||
var recordEditorConfig = {
|
||||
hasMultipleDatabases: {% if multipleDataboxes or recordsRequest|length == 0 %}true{% else %}false{% endif %},
|
||||
databoxId: {{ databox.get_sbas_id }},
|
||||
@@ -477,5 +496,6 @@
|
||||
{% endfor %}
|
||||
]
|
||||
};
|
||||
{% endif %}
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user