From 43ff32acb29cd747215c2e1e53c5ee85984cfecc Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 23 Nov 2012 11:29:02 +0800 Subject: [PATCH] [seaf]modified editor padding, btn and etc. --- media/css/seahub.css | 14 +++++++++----- templates/repo_edit_file.html | 9 ++++++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index 75c6b787dc..5b509426f4 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -175,13 +175,14 @@ p { .no-deco:hover { text-decoration:none; } -.input-disabled {/* for type="password"/"text" etc*/ +.input-disabled {/* for type="password/text" etc*/ background:#ebebe4; } -input.btn-disabled { /*for */ +.btn-disabled { /*for , + {% if filetype == 'Markdown' %} {% endif %} - +
@@ -114,6 +114,8 @@ $('#preview-btn').click(function() { {% endif %} $('#file-edit-submit').click(function () { + var submit_btn = $(this); + disable(submit_btn); {% if filetype == 'Sf' %} var content = $('#sf').html(); {% else %} @@ -134,6 +136,7 @@ $('#file-edit-submit').click(function () { error: function(xhr, ajaxOptions, thrownError) { var jsonVal = jQuery.parseJSON(xhr.responseText); $('#op-after-edit').prepend('

' + jsonVal['error'] + '

'); + enable(submit_btn); } }); }); @@ -143,7 +146,7 @@ $('#file-edit-cancel').click(function() { {% endifnotequal %} {% if err %} -$('#file-edit').html('

{{ err }}

'); +$('#file-edit').html('

{{ err }}

'); {% endif %} {% endblock %}