return row.n;
}*/
formatItem: function(row, i, max, value) {
return row.n;
}*/
formatItem: function(row, i, max, value) {
},
formatResult: function(row, i, max, value){
},
formatResult: function(row, i, max, value){
$("input.submit")[0].disabled=true;
$("input.submit")[1].disabled=true;
}
window.removeEventListener('beforeunload', beforeUnload, true);
$("input.submit")[0].disabled=true;
$("input.submit")[1].disabled=true;
}
window.removeEventListener('beforeunload', beforeUnload, true);
<label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/>
{% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
<div style="vertical-align:middle">
<label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/>
{% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
<div style="vertical-align:middle">
{% if settings.WIKI_ON %}
<td style="text-align:right;">
{{ form.wiki }} <span style="color:#000;cursor:help" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
{% if settings.WIKI_ON %}
<td style="text-align:right;">
{{ form.wiki }} <span style="color:#000;cursor:help" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
- <input type="submit" value="{% trans "Save edit" %}" class="submit" onclick="submitClicked(event)" />
- <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);submitClicked(event)" />
+ <input type="button" value="{% trans "Save edit" %}" class="submit" onclick="submitClicked(event, this.form)" />
+ <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="submitClicked(event, null); history.back(-1);" />