tag = $("input#id_tags")[0].value;
});
- function submitClicked(e) {
+ function submitClicked(e, f) {
if(!(browserTester('chrome') || browserTester('safari'))) {
$("input.submit")[0].disabled=true;
$("input.submit")[1].disabled=true;
}
window.removeEventListener('beforeunload', beforeUnload, true);
+ if (f) {
+ f.submit();
+ }
}
function beforeUnload(e) {
{{ form.summary.help_text }}
</div>
<div class="error" ></div>
- <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);" />
</form>
</div>
</div>