beck24/granular_access

Testing on Elgg 2 - Activating gives AJAX error as described below

Closed this issue · 3 comments

So, I'm learning Elgg and...
When activating current version 1.1.1 on Elgg 2.1.1 the info window of all plugins (lightbox) can't be opened anymore with error: "You can not access Ajax views directly. I didn't go on further check as this seems pretty bad."

https://github.com/beck24/granular_access/blob/master/views/default/js/granular_access.php#L6

I think it could dependo on the fact that the .live() function has been removed from jQuery's version user in Elgg 2

I can't replicate this specific issue, and .live() isn't part of this plugin at all

I fixed this as I converted javascript to AMD: f1eacc3#diff-c4093be5dc7dba230b84dd20bec90ba0L6

Such a bad student, am not I? :D