mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
PHRAS-1016 - fix default selection to group instead of records for story editing
This commit is contained in:
@@ -673,6 +673,11 @@ function edit_clk_editimg(evt, i) {
|
|||||||
updateEditSelectedRecords(evt);
|
updateEditSelectedRecords(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleGroupSelection() {
|
||||||
|
var groupIndex = 0;
|
||||||
|
edit_clk_editimg(false, groupIndex);
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// on a clique sur une checkbox de status
|
// on a clique sur une checkbox de status
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
@@ -1651,7 +1656,12 @@ function startThisEditing(sbas_id, what, regbasprid, ssel) {
|
|||||||
if ($('#editcontextwrap').length == 0)
|
if ($('#editcontextwrap').length == 0)
|
||||||
$('body').append('<div id="editcontextwrap"></div>');
|
$('body').append('<div id="editcontextwrap"></div>');
|
||||||
|
|
||||||
self.setTimeout("edit_select_all();", 100);
|
// if is a group, only select the group
|
||||||
|
if (p4.edit.what === 'GRP') {
|
||||||
|
toggleGroupSelection();
|
||||||
|
} else {
|
||||||
|
self.setTimeout("edit_select_all();", 100);
|
||||||
|
}
|
||||||
|
|
||||||
$('.previewTips, .DCESTips, .fieldTips', p4.edit.editBox).tooltip({
|
$('.previewTips, .DCESTips, .fieldTips', p4.edit.editBox).tooltip({
|
||||||
fixable: true,
|
fixable: true,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
{% set class_status = '' %}
|
{% set class_status = '' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div pos="{{ i }}" id="idEditDiapo_{{ i }}" class="diapo selected {{ class_status }}" style="width:{{ cont_width }}px; height:{{ cont_height }}px;">
|
<div pos="{{ i }}" id="idEditDiapo_{{ i }}" class="diapo {{ class_status }}" style="width:{{ cont_width }}px; height:{{ cont_height }}px;">
|
||||||
<div class='titre'>
|
<div class='titre'>
|
||||||
{{ record.get_original_name() }}
|
{{ record.get_original_name() }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user