PHRAS-2885

This commit is contained in:
Harrys Ravalomanana
2020-01-27 15:06:44 +04:00
parent 51bf756d87
commit f29be7f07b

View File

@@ -411,6 +411,24 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
{% if multipleDataboxes == 1 %}
$(function() {
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
$( "#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 = '' %} {% set notActionableMsg = '' %}
{% if not_actionable > 1 %} {% 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}) %} {% set notActionableMsg = 'prod::editing: %not_actionable% documents ne peuvent etre edites car vos droits sont induffisants' | trans({'%not_actionable%' : not_actionable}) %}
@@ -477,5 +495,6 @@
{% endfor %} {% endfor %}
] ]
}; };
{% endif %}
</script> </script>