Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.status').click(function(){
- var current_nm_tr = $(this).closest("tr");
- $.ajax({
- type: "POST",
- url: "request/",
- data: $("end_at").val(DateTime.now),
- success: function(){
- $(current_nm_tr).html($("end_at").val());
- }
- });
- return false;
- });
- def self.requestnew params
- begin_at = params.require(:notify_message)[:begin_at] = DateTime.now end_at = params.require(:notify_message)[:end_at] = DateTime.now+7.day NotifyMessage.create(params.require(:notify_message).permit!ββ)
- end
- - @requests.each do |request|
- %tr{"data" => "#{request.id}"}
- %td
- .pull-right
- #{I18n.l (request.begin_at-3.hour), format: :short} ΠΏΠΎ #{I18n.l (request.end_at-3.hour), format: :short}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement