diff --git a/app/views/managements/_leave_message_list.html.erb b/app/views/managements/_leave_message_list.html.erb
index 5f0aa0fba..7bbbcc9b8 100644
--- a/app/views/managements/_leave_message_list.html.erb
+++ b/app/views/managements/_leave_message_list.html.erb
@@ -23,7 +23,7 @@
<%= format_time(jour.created_on) %> |
- <%= link_to jour.m_parent_id.nil? ? strip_html(jour.notes) : 'RE: ' + strip_html(jour.notes), student_work_index_path(:homework => jour.jour_id, :tab => 2) %>
+ <%= link_to jour.m_parent_id.nil? ? strip_html(jour.notes) : 'RE: ' + strip_html(jour.notes), student_work_index_path(:homework => jour.jour_id, :tab => 2),:target => '_blank' %>
|
<% replys = JournalsForMessage.where(:m_parent_id => jour.id) %>
diff --git a/app/views/managements/add_departments_part.html.erb b/app/views/managements/add_departments_part.html.erb
index 8bfe79c6c..d94e166a9 100644
--- a/app/views/managements/add_departments_part.html.erb
+++ b/app/views/managements/add_departments_part.html.erb
@@ -1,66 +1,51 @@
<%= form_tag save_school_managements_path(),method: "post",:id => "save_school" do %>
-
-
-
-
-
-
-
-
-
- <%= file_field_tag 'account/avatar[image]',
- :id => "upload_img_id",
- :style => 'display:none;',
- :size => "1",
- :multiple => false,
- :onchange => 'addInputAvatar(this);',
- :data => {
- :max_file_size => Setting.authentication_img_max_size.to_i.kilobytes,
- :max_file_size_message => l(:error_user_auth_too_big, :max_size => number_to_human_size(Setting.authentication_img_max_size.to_i.kilobytes)),
- :max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
- :file_type => Redmine::Configuration['pic_types'].to_s,
- :type_support_message => l(:error_pic_type),
- :upload_path => upload_avatar_path(:format => 'js'),
- :description_placeholder => nil ,# l(:label_optional_description)
- :source_type => 'school',
- :source_id => @user.id.to_s,
- :is_direct => 1
+
+
+ <%= image_tag('/images/school/default.png', id: "avatar_image", :class=>"school_avatar ml25", width:60,height:60) %>
+ 上传图片
+ <%= file_field_tag 'logo',:style => "display:none;", :id => "file", :onchange => "showPreview(this)"%>
+ 删除图片
+
+
+
+ <%#= file_field_tag 'avatar[image]',
+# :id => "upload_img_id",
+# :style => 'display:none;',
+# :size => "1",
+# :multiple => false,
+# :onchange => 'addInputAvatar(this);',
+# :data => {
+# :max_file_size => Setting.authentication_img_max_size.to_i.kilobytes,
+# :max_file_size_message => l(:error_user_auth_too_big, :max_size => number_to_human_size(Setting.authentication_img_max_size.to_i.kilobytes)),
+# :max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
+# :file_type => Redmine::Configuration['pic_types'].to_s,
+# :type_support_message => l(:error_pic_type),
+# :upload_path => upload_avatar_path(:format => 'js'),
+# :description_placeholder => nil ,# l(:label_optional_description)
+# :source_type => 'school',
+# :source_id => @user.id.to_s,
+# :is_direct => 1
} %>
-
- +选择文件
-
-
-
-
- <%= image_tag(url_to_auth_img(0, 'ID'), :width => 200, :height => 150, :id => 'nh_source_id') %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<% end %>
diff --git a/app/views/memos/_form.html.erb b/app/views/memos/_form.html.erb
index 5ce666b75..035f8c1ea 100644
--- a/app/views/memos/_form.html.erb
+++ b/app/views/memos/_form.html.erb
@@ -23,7 +23,7 @@
- value="1" id="to_top" class="ml-3 mr5 magic-checkbox">
+ value="<%= @memo.sticky ? 1 : 0 %>" id="to_top" class="ml-3 mr5 magic-checkbox">
@@ -85,6 +85,28 @@
$("#memo-form").submit();
}
}
+ document.onkeydown = function(event) {
+ var target, code, tag;
+ if (!event) {
+ event = window.event; //针对ie浏览器
+ target = event.srcElement;
+ code = event.keyCode;
+ if (code == 13) {
+ tag = target.tagName;
+ if (tag == "INPUT") { return true; }
+ else { return false; }
+ }
+ }
+ else {
+ target = event.target; //针对遵循w3c标准的浏览器,如Firefox
+ code = event.keyCode;
+ if (code == 13) {
+ tag = target.tagName;
+ if (tag == "INPUT") { return false; }
+ else { return true; }
+ }
+ }
+ };
@@ -210,5 +232,7 @@
$("#memo_classify_tips").attr('style','color: #F00;');
}
}
+
+
<% end %>
\ No newline at end of file
diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb
index aaaa56627..addf53876 100644
--- a/app/views/memos/show.html.erb
+++ b/app/views/memos/show.html.erb
@@ -51,7 +51,7 @@
<% end %>
-
+
<%= @memo.content.html_safe %>
diff --git a/public/stylesheets/css/edu-common.css b/public/stylesheets/css/edu-common.css
index 90e504b93..4bf7c1872 100644
--- a/public/stylesheets/css/edu-common.css
+++ b/public/stylesheets/css/edu-common.css
@@ -497,4 +497,10 @@ input::-ms-clear{display:none;}
.task-header-info .fork{font-weight:bold;font-size:14px;color:#666;}
+.memos_con a{color: #3b94d6!important;}
+.memos_con ul li{ list-style-type: disc!important; }
+.memos_con ol li{ list-style-type: decimal!important; }
+.memos_con li{ margin-bottom: 0!important; }
+
+
|