Sha256: cf4cc0dad7fe88f30558388512b87638ab7f2ba33bcba56cf8cf3a765f7101d8

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 Bytes

Contents

# -*- coding: utf-8 -*-
#
# datepickr.rb - show jQuery UI datepicker
#
# Copyright (C) 2012, tamoot <tamoot+tdiary@gmail.com>
# You can redistribute it and/or modify it under GPL.
#

#
# not support
#
return if feed?

if /\A(?:form|preview|append|edit|update)\z/ =~ @mode
   enable_js('//ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js')
   if @conf.lang == 'ja'
      enable_js('//ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js')
   end
   enable_js('datepicker.js')
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:
# vim: ts=3

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
tdiary-contrib-5.0.0 plugin/datepicker.rb
tdiary-contrib-4.2.1 plugin/datepicker.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/bundler/gems/tdiary-contrib-2ab36447ae2a/plugin/datepicker.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/bundler/gems/tdiary-contrib-d189eb6688f1/plugin/datepicker.rb
tdiary-contrib-4.2.0 plugin/datepicker.rb