mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix JS issue
This commit is contained in:
@@ -1,11 +1,4 @@
|
|||||||
<div id="taskBody">
|
<div id="taskBody">
|
||||||
<style>
|
|
||||||
#taskBody label
|
|
||||||
{
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<!-- _____________ head added part of graphic interface of '{{task.getName()}}' _____________ -->
|
<!-- _____________ head added part of graphic interface of '{{task.getName()}}' _____________ -->
|
||||||
{{task.printInterfaceHEAD()}}
|
{{task.printInterfaceHEAD()}}
|
||||||
<!-- ______________ end of head part of graphic interface of '{{task.getName()}}' ______________ -->
|
<!-- ______________ end of head part of graphic interface of '{{task.getName()}}' ______________ -->
|
||||||
@@ -18,19 +11,18 @@
|
|||||||
|
|
||||||
{{task.getName()}} <span id="taskid">id : {{task.getID()}}</span>
|
{{task.getName()}} <span id="taskid">id : {{task.getID()}}</span>
|
||||||
|
|
||||||
<form name="__ftask" onsubmit="return(false);" method="post">
|
<form name="__ftask" onsubmit="return(false);" method="post" class="form-inline">
|
||||||
<label for="taskTaskname">{% trans 'admin::tasks: nom de la tache' %}</label>
|
<label for="taskTaskname">{% trans 'admin::tasks: nom de la tache' %}</label>
|
||||||
<input type="text" id="taskTaskname" value="{{task.getTitle()}}" onchange="setDirty();" />
|
<input type="text" id="taskTaskname" value="{{task.getTitle()}}" onchange="setDirty();" />
|
||||||
|
<label for="taskTaskActive" class="checkbox">
|
||||||
|
<input type="checkbox" id="taskTaskActive" {% if task.isActive() %}checked="checked"{% endif %} onchange="setDirty();" />
|
||||||
|
{% trans 'admin::tasks: lancer au demarrage du scheduler' %}
|
||||||
<label for="taskTaskActive">{% trans 'admin::tasks: lancer au demarrage du scheduler' %}</label>
|
</label>
|
||||||
<input type="checkbox" id="taskTaskActive" {% if task.isActive() %}checked="checked"{% endif %} onchange="setDirty();" />
|
|
||||||
</form>
|
</form>
|
||||||
<div id="idCrashLine" style="display:{% if task.getCrashCounter() == 0 %}none{% endif %}">
|
<div id="idCrashLine" style="display:{% if task.getCrashCounter() == 0 %}none{% endif %}">
|
||||||
{% trans 'admin::tasks: Nombre de crashes : ' %} {{task.getCrashCounter()}}
|
{% trans 'admin::tasks: Nombre de crashes : ' %} {{task.getCrashCounter()}}
|
||||||
|
|
||||||
<button id="taskResetCrashCounterButton">
|
<button class="btn btn-warning" id="taskResetCrashCounterButton">
|
||||||
{% trans 'admin::tasks: reinitialiser el compteur de crashes' %}
|
{% trans 'admin::tasks: reinitialiser el compteur de crashes' %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,8 +57,8 @@
|
|||||||
<!-- __________ end form to go back on list __________ -->
|
<!-- __________ end form to go back on list __________ -->
|
||||||
|
|
||||||
|
|
||||||
<button id="taskCancelButton">{% trans 'boutton::annuler' %}</button>
|
<button class="btn" id="taskCancelButton">{% trans 'boutton::annuler' %}</button>
|
||||||
<button id="taskSaveButton">{% trans 'boutton::valider' %}</button>
|
<button class="btn btn-warning" id="taskSaveButton">{% trans 'boutton::valider' %}</button>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
@@ -109,7 +101,7 @@
|
|||||||
, type:"POST"
|
, type:"POST"
|
||||||
, async:false
|
, async:false
|
||||||
, success:function(data) {
|
, success:function(data) {
|
||||||
if(typeof(taskFillGraphic_{{task.getClass()}}) == "function")
|
if(typeof(taskFillGraphic_{{task.getClass()}}) === "function")
|
||||||
{
|
{
|
||||||
var x = $("#txtareaxml").val();
|
var x = $("#txtareaxml").val();
|
||||||
try
|
try
|
||||||
@@ -157,12 +149,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
{% if task.getInterfaceHTML() is empty %}
|
{% if task.getInterfaceHTML() is empty %}
|
||||||
if ($("#taskTabs").tabs.data("ui-tabs")) {
|
if ($("#taskTabs").data("ui-tabs")) {
|
||||||
$("#taskTabs").tabs("disable", 0);
|
$("#taskTabs").tabs( "option", "disable", 0 );
|
||||||
}
|
}
|
||||||
{% else %}
|
{% else %}
|
||||||
if ($("#taskTabs").tabs.data("ui-tabs")) {
|
if ($("#taskTabs").data("ui-tabs")) {
|
||||||
$("#taskTabs").tabs("active", 0);
|
$("#taskTabs").tabs( "option", "active", 1 );
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -175,7 +167,7 @@
|
|||||||
, type:"GET"
|
, type:"GET"
|
||||||
, async:false
|
, async:false
|
||||||
, success:function(data) {
|
, success:function(data) {
|
||||||
if(data == true)
|
if(data)
|
||||||
{
|
{
|
||||||
$("#idCrashLine").hide();
|
$("#idCrashLine").hide();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user