Approval workflow icon class

This commit is contained in:
Karel Picman 2017-08-07 08:47:13 +02:00
parent e39d4fcc5a
commit 0743213ea3
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@
<% else %> <% else %>
<%= link_to('', assign_dmsf_workflow_path(:id => container.project.id, :project_id => container.project.id, <%= link_to('', assign_dmsf_workflow_path(:id => container.project.id, :project_id => container.project.id,
:attachment_id => i + 1), :title => l(:label_dmsf_wokflow_action_assign), :attachment_id => i + 1), :title => l(:label_dmsf_wokflow_action_assign),
:remote => true, :class => 'icon-only icon-wf-none') %> :remote => true, :class => 'modify-upload icon-only icon-wf-none') %>
<% end %> <% end %>
</span> </span>
<% end %> <% end %>
@ -54,7 +54,7 @@
:method => 'delete', :remote => true, :class => 'remove-upload icon-only icon-del') %> :method => 'delete', :remote => true, :class => 'remove-upload icon-only icon-del') %>
<% wf = container.saved_dmsf_links_wfs[dmsf_link.id] %> <% wf = container.saved_dmsf_links_wfs[dmsf_link.id] %>
<% if wf %> <% if wf %>
<a href="javascript:void(0);" title="<%= l(:title_assigned) %>" class="icon-only icon-wf-assigned"></a> <a href="javascript:void(0);" title="<%= l(:title_assigned) %>" class="modify-upload icon-only icon-wf-assigned"></a>
<%= hidden_field_tag("dmsf_links_wfs[#{dmsf_link.id}]", wf.id) if wf %> <%= hidden_field_tag("dmsf_links_wfs[#{dmsf_link.id}]", wf.id) if wf %>
<% else %> <% else %>
<%= render(:partial => 'dmsf_files/approval_workflow_button', <%= render(:partial => 'dmsf_files/approval_workflow_button',

View File

@ -36,7 +36,7 @@ function dmsfAddLink(linksSpan, linkId, linkName, title, project, awf) {
if(awf) { if(awf) {
var iconWf = $('<a>').attr({href: "/dmsf_workflows/" + project + "/assign?dmsf_link_id=" + linkId, var iconWf = $('<a>').attr({href: "/dmsf_workflows/" + project + "/assign?dmsf_link_id=" + linkId,
'class': 'icon-only icon-wf-none', 'data-remote': 'true', 'title': title}); 'class': 'modify-upload icon-only icon-wf-none', 'data-remote': 'true', 'title': title});
linkSpan.append(iconWf); linkSpan.append(iconWf);
} }
@ -76,7 +76,7 @@ function dmsfAddFile(inputEl, file, eagerUpload) {
if($(inputEl).data('awf')) { if($(inputEl).data('awf')) {
var iconWf = $('<a>').attr({href: '/dmsf_workflows/' + $(inputEl).attr( var iconWf = $('<a>').attr({href: '/dmsf_workflows/' + $(inputEl).attr(
'data-project') + "/assign?attachment_id=" + attachmentId, 'class': 'icon-only icon-wf-none', 'data-project') + "/assign?attachment_id=" + attachmentId, 'class': 'modify-upload icon-only icon-wf-none',
'data-remote': 'true'}); 'data-remote': 'true'});
fileSpan.append(iconWf); fileSpan.append(iconWf);