diff --git a/rowers/templates/.#image_form.html b/rowers/templates/.#image_form.html new file mode 100644 index 00000000..7ae08c3c --- /dev/null +++ b/rowers/templates/.#image_form.html @@ -0,0 +1 @@ +E408191@CZ27LT9RCGN72.1800:1516641451 \ No newline at end of file diff --git a/rowers/templates/image_form.html b/rowers/templates/image_form.html index 0a77e5d2..32f7c725 100644 --- a/rowers/templates/image_form.html +++ b/rowers/templates/image_form.html @@ -162,42 +162,6 @@ }); }); - frm.submit(function() { - console.log("Form submission"); - $(data.values()).each(function(value) { - console.log(value); - }); - - $("#id_drop-files").replaceWith( - '
'
- );
- $.ajax({
- data: data,
- type: $(this).attr('method'),
- url: '/rowers/workout/{{ workout.id }}/image',
- contentType: false,
- processData: false,
- error: function(result) {
- $("#id_waiting").replaceWith(
- ''
- );
- setTimeout(function() {
- location.reload();
- },1000);
- },
- success: function(result) {
- console.log('got something back');
- console.log(result);
- if (result.result == 1) {
- window.location.href = result.url;
- } else {
- console.log(result," reloading");
- location.reload();
- };
- }
- });
- return false;
- });
$('#id_drop-files').bind({
diff --git a/rowers/templates/panel_uploadimage.html b/rowers/templates/panel_uploadimage.html
new file mode 100644
index 00000000..f99652cc
--- /dev/null
+++ b/rowers/templates/panel_uploadimage.html
@@ -0,0 +1,5 @@
++ Attach Image +
++ Attach Image +
+