commit
8dcbc6a851
@ -1,16 +1,24 @@
|
|||||||
module Mobile
|
module Mobile
|
||||||
module Entities
|
module Entities
|
||||||
class CourseDynamic < Grape::Entity
|
class CourseDynamic < Grape::Entity
|
||||||
|
include Redmine::I18n
|
||||||
def self.course_dynamic_expose(field)
|
def self.course_dynamic_expose(field)
|
||||||
expose field do |c,opt|
|
expose field do |c,opt|
|
||||||
|
if field == :update_time
|
||||||
|
(format_time(c[field]) if (c.is_a?(Hash) && c.key?(field)))
|
||||||
|
else
|
||||||
c[field] if (c.is_a?(Hash) && c.key?(field))
|
c[field] if (c.is_a?(Hash) && c.key?(field))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
course_dynamic_expose :type
|
course_dynamic_expose :type
|
||||||
course_dynamic_expose :count
|
course_dynamic_expose :count
|
||||||
course_dynamic_expose :course_name
|
course_dynamic_expose :course_name
|
||||||
course_dynamic_expose :course_id
|
course_dynamic_expose :course_id
|
||||||
course_dynamic_expose :course_img_url
|
course_dynamic_expose :course_img_url
|
||||||
|
course_dynamic_expose :message
|
||||||
|
course_dynamic_expose :update_time
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
@ -1,10 +0,0 @@
|
|||||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'invite_members_by_mail') %>');
|
|
||||||
showModal('ajax-modal', '513px');
|
|
||||||
$('#ajax-modal').css('height','569px');
|
|
||||||
$('#ajax-modal').siblings().remove();
|
|
||||||
$('#ajax-modal').before("<span style='float: right;cursor:pointer;padding-left: 513px;'>" +
|
|
||||||
"<a href='#' onclick='hidden_homework_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
|
||||||
$('#ajax-modal').parent().removeClass("alert_praise");
|
|
||||||
$('#ajax-modal').parent().css("top","").css("left","");
|
|
||||||
$('#ajax-modal').parent().addClass("alert_box");
|
|
||||||
|
|
Loading…
Reference in new issue