CMS MADE SIMPLE FORGE

CGCalendar

 

[#10590] JS errors prevent editing of articles

avatar
Created By: Ruud van der Velden (ruudvdvelden)
Date Submitted: Wed Aug 05 05:14:33 -0400 2015

Assigned To: Robert Campbell (calguy1000)
Version: 1.15.1
CMSMS Version: 1.12
Severity: None
Resolution: Fixed
State: Closed
Summary:
JS errors prevent editing of articles
Detailed Description:
New install of CGCalendar 1.15.1, CGExtensions 1.49.4 and CGSimpleSmarty 1.9.1

Create one event: (Aug/ 5th 2015, 20:30, "test 1")
In admin month 'view' click title of event to edit it -> 'nothing' happens

Chrome Inspector shows (Chrome 44.0.2403.125 m on Windows):

Uncaught TypeError: date.toLocaleDateString is not a functionformatDate @
moduleinterface.php?mact=CGCalendar,m1_,defaultadmin,0&_sx_=3d301ba3471fa348&m1_module_message=The
…:210$.ajax.done.$.fullCalendar.eventClick @
moduleinterface.php?mact=CGCalendar,m1_,defaultadmin,0&_sx_=3d301ba3471fa348&m1_module_message=The
…:319trigger @
cgejs_4597c0026c72ed53716e8c3d100fd6d8.js:510fc.View.Class.extend.trigger @
cgejs_4597c0026c72ed53716e8c3d100fd6d8.js:404Grid.mixin.bindSegHandlers.$.each.click
@ cgejs_4597c0026c72ed53716e8c3d100fd6d8.js:235(anonymous function) @
cgejs_4597c0026c72ed53716e8c3d100fd6d8.js:236n.event.dispatch @
jquery-1.11.0.min.js:3n.event.add.r.handle @ jquery-1.11.0.min.js:3

function formatDate(date,show_time) is called with date parameter:
date = m {_isAMomentObject: true, _i: "2015-08-05 20:30:00", _f: "YYYY-MM-DD
HH:mm:ss", _isUTC: true, _pf: Object…}

In admin week view:

'resizing' the Event leads to another JS error: 

Uncaught TypeError: Cannot read property 'source' of undefined
o.set @ cgejs_4597c0026c72ed53716e8c3d100fd6d8.js:7
n.param.e @ jquery-1.11.0.min.js:4
Wc @ jquery-1.11.0.min.js:4
Wc @ jquery-1.11.0.min.js:4
Wc @ jquery-1.11.0.min.js:4
n.param @ jquery-1.11.0.min.js:4
n.extend.ajax @ jquery-1.11.0.min.js:4
$.ajax.done.$.fullCalendar.eventResize @
moduleinterface.php?mact=CGCalendar,m1_,defaultadmin,0&_sx_=3d301ba3471fa348&m1_module_message=The
…:415
...

Might be related to earlier error.


History

Comments
avatar
Date: 2015-08-05 11:30
Posted By: Robert Campbell (calguy1000)

fixed and released in 1.15.2
      
Updates

Updated: 2015-09-10 21:49
state: Open => Closed

Updated: 2015-08-05 11:30
resolution_id: => 7