Saving task/shot on status change
This commit is contained in:
@@ -20,8 +20,8 @@
|
|||||||
placeholder='Description') {{ shot.description | hide_none }}
|
placeholder='Description') {{ shot.description | hide_none }}
|
||||||
|
|
||||||
.input-group
|
.input-group
|
||||||
label(for="shot-status") Status:
|
label(for="item-status") Status:
|
||||||
select.input-transparent#shot-status(
|
select#item-status.input-transparent(
|
||||||
name="status")
|
name="status")
|
||||||
| {% for status in shot_node_type.dyn_schema.status.allowed %}
|
| {% for status in shot_node_type.dyn_schema.status.allowed %}
|
||||||
| <option value="{{ status }}" {% if status == shot.properties.status %}selected{% endif %}>{{ status | undertitle }}</option>
|
| <option value="{{ status }}" {% if status == shot.properties.status %}selected{% endif %}>{{ status | undertitle }}</option>
|
||||||
@@ -141,4 +141,8 @@ script.
|
|||||||
.autoResize()
|
.autoResize()
|
||||||
.blur();
|
.blur();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#item-status').change(function(){
|
||||||
|
$("#item-save").trigger( "click" );
|
||||||
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -65,10 +65,10 @@
|
|||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
.input-group
|
.input-group
|
||||||
label#task-status Status:
|
label#task-status-label Status:
|
||||||
select(
|
select#item-status(
|
||||||
name="status",
|
name="status",
|
||||||
aria-describedby="task-status")
|
aria-describedby="task-status-label")
|
||||||
| {% for status in task_node_type.dyn_schema.status.allowed %}
|
| {% for status in task_node_type.dyn_schema.status.allowed %}
|
||||||
| <option value="{{ status }}" {% if status == task.properties.status %}selected{% endif %}>{{ status | undertitle }}</option>
|
| <option value="{{ status }}" {% if status == task.properties.status %}selected{% endif %}>{{ status | undertitle }}</option>
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
@@ -163,6 +163,10 @@ script.
|
|||||||
$('#item-description')
|
$('#item-description')
|
||||||
.autoResize()
|
.autoResize()
|
||||||
.blur();
|
.blur();
|
||||||
|
|
||||||
|
$('#item-status').change(function(){
|
||||||
|
$("#item-save").trigger( "click" );
|
||||||
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
$('.js-help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}");
|
$('.js-help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}");
|
||||||
|
Reference in New Issue
Block a user