Fresh install of alpha8. (tested in chrome/firefox on mac)

I get a javascript error when hitting the "quick edit" link.
Result is the white overlay appears but no editing is possible.
Upon closing you get an other error.

Console traces of both:

Uncaught TypeError: Cannot read property 'element' of undefined create-editonly.js:341
jQuery.widget._params create-editonly.js:341
e.isFunction.l.(anonymous function) jquery.ui.widget.min.js:4
jQuery.widget._enablePropertyEditor create-editonly.js:600
e.isFunction.l.(anonymous function) jquery.ui.widget.min.js:4
(anonymous function) create-editonly.js:489
e.extend.each jquery.min.js:2
e.fn.e.each jquery.min.js:2
jQuery.widget.findEditablePredicateElements create-editonly.js:475
e.isFunction.l.(anonymous function) jquery.ui.widget.min.js:4
jQuery.widget.enable create-editonly.js:488
e.isFunction.l.(anonymous function) jquery.ui.widget.min.js:4
jQuery.widget._doSetState create-editonly.js:464
e.isFunction.l.(anonymous function) jquery.ui.widget.min.js:4
(anonymous function) create-editonly.js:446
Drupal.edit.EditAppView.Backbone.View.extend.acceptEditorStateChange app.js:245
jQuery.widget.setState create-editonly.js:444
e.isFunction.l.(anonymous function) jquery.ui.widget.min.js:4
(anonymous function) jquery.ui.widget.min.js:4
e.extend.each jquery.min.js:2
e.fn.e.each jquery.min.js:2
e.fn.(anonymous function) jquery.ui.widget.min.js:4
(anonymous function) app.js:134
e.extend.each jquery.min.js:2
e.fn.e.each jquery.min.js:2

Drupal.edit.EditAppView.Backbone.View.extend.appStateChange app.js:133
Backbone.Events.trigger backbone.js:157
_.extend.change backbone.js:469
_.extend.set backbone.js:314
Drupal.edit.views.MenuView.Backbone.View.extend.editClickHandler menu-view.js:48
f.event.dispatch jquery.min.js:3
h.handle.i jquery.min.js:3
Uncaught TypeError: Cannot call method 'removeAttr' of undefined app.js:550
Drupal.edit.EditAppView.Backbone.View.extend._releaseDocumentFocusManagement app.js:550
Drupal.edit.EditAppView.Backbone.View.extend.appStateChange app.js:142
Backbone.Events.trigger backbone.js:157
_.extend.change backbone.js:469
_.extend.set backbone.js:314
Drupal.edit.views.OverlayView.Backbone.View.extend.onClick overlay-view.js:59
f.event.dispatch jquery.min.js:3
h.handle.i jquery.min.js:3

Comments

Wim Leers’s picture

Title: Inline editing not working » In-place editing not working because alpha 8 uses jQuery UI 1.10
Assigned: Unassigned » Wim Leers
Priority: Normal » Critical

Confirmed.

This is because Spark 7 1.0 alpha 8 (and 1.x HEAD) currently uses the 2.x-dev version of jquery_update, which just recently got updated to use jQuery UI 1.10, which breaks Create.js, which in turn breaks in-place editing.

This also caused breakage in Drupal 8, but I managed to write a patch to fix this just yesterday: #1960612-3: jQuery UI 1.10 update broke Create.js, and thus in-place editing.

In D7, I'm solving this at #1962274: jQuery UI 1.10 compatibility.

Wim Leers’s picture

Issue tags: +sprint, +Spark

Solving this is currently blocked on upstream feedback because Edit ideally doesn't *require* jQuery UI 1.10, see #1962274-2: jQuery UI 1.10 compatibility for details.

For now, the easiest solution is to modify Spark to use version 7.x-2.3 of jquery_update specifically, instead of 7.x-2.x-dev.

garbo’s picture

By downgrading to jquery_update 7.x-2.3 I'm running into trouble with the navigation bar. The submenu's don't receive their css postion-top declarations and are now effectively hidden behind the main level (the black bar).

This only happens on the front-end though (Bartik theme).

Wim Leers’s picture

Issue tags: -sprint

That was wrong for a while now.

tobedeleted’s picture

This still appears to be broken in the alpha9 release.

endiku’s picture

This is indeed still the case for alpha9. The 7.x-2.3+6-dev must be replaced with basic 2.3 in order for in-place edit to function.

attardi’s picture

How can I downgrade to jquery_update 7.x-2.3?

galaxiecruzin’s picture

@attardi Until there is an official release, you can go into the admin screen and set the "Default jQuery Version" to 1.5 and it should work. I just confirmed.

admin/config/development/jquery_update

webchick’s picture

Issue summary: View changes
Status: Active » Fixed

I believe this is fixed in the latest alpha release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.