Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 94f6278

Browse files
committed
Fixed preview problem when editing a problem
1 parent d78417b commit 94f6278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/problems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</div>
8686
</div>
8787
<input class="btn btn-primary btn-large" type="submit" value="Update Problem"/>
88-
<input class="btn btn-large" type="button" value="Preview" onclick="$('#preview').load('preview.php', {title: $('#title').val(), text: $('#text').val()});"/>
88+
<input class="btn btn-large" type="button" value="Preview" onclick="$('#preview').load('preview.php', {action: 'preview', title: $('#title').val(), text: $('#text').val()});"/>
8989
<input class="btn btn-danger btn-large" type="button" value="Delete Problem" onclick="window.location='update.php?action=delete&id='+$('#id').val();"/>
9090
</form>
9191
<div id="preview"></div>

0 commit comments

Comments
 (0)