Documentation/Code 旧 Mishoo 日历 javascript 内联

Documentation/Code old Mishoo's Calendar javascript inline

在一些旧的 javascript 日历上工作,它表现为触发器-> 弹出窗口,我希望它成为一个内联日历。

我能找到的唯一文档是 this one, but does not seem to match my version

我必须使用它,因为它是 Magento 1.x 显示产品自定义选项日历的方式。

je calendar.js header:

/*  Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo
 * -----------------------------------------------------------
 *
 * The DHTML Calendar, version 1.0 "It is happening again"
 *
 * Details and latest version at:
 * www.dynarch.com/projects/calendar
 *
 * This script is developed by Dynarch.com.  Visit us at www.dynarch.com.
 *
 * This script is distributed under the GNU Lesser General Public License.
 * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html
 */
  // $Id: calendar.js,v 1.51 2005/03/07 16:44:31 mishoo Exp $

任何帮助将不胜感激(文档、代码片段、替代库...)

找到the answer;该文档处理的不是 "inline" 日历,而是 "flat" 日历。 就我而言,一种丑陋但快速的方法是:

app/code/local/Mage/Core/Block/Html/Date.php

  • 替换calendarSetupObject的内容,添加上面的HTML容器
  • 实施 dateChanged 以便更新 input:text,仅在星期几(等)