by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 29 11:18
    oliverfoster edited #192
  • May 29 11:17
    oliverfoster edited #192
  • May 29 11:17
    oliverfoster edited #192
  • May 29 11:17
    oliverfoster edited #192
  • May 29 11:14

    oliverfoster on 2747

    Recommendation (compare)

  • May 29 11:14
    oliverfoster synchronize #192
  • May 28 16:31

    oliverfoster on 2747

    Removed whitespace (compare)

  • May 28 16:31
    oliverfoster synchronize #192
  • May 28 16:19
    oliverfoster synchronize #192
  • May 28 16:19

    oliverfoster on 2747

    Changed to save session state a… (compare)

  • May 28 12:04
    moloko edited #2785
  • May 28 12:04
    moloko opened #2785
  • May 28 11:30

    oliverfoster on 2756

    Removed unneeded variable (compare)

  • May 28 11:30
    oliverfoster synchronize #125
  • May 28 11:14

    oliverfoster on 2754-2755

    Bug fix (compare)

  • May 28 11:14
    oliverfoster synchronize #2757
  • May 28 11:13

    oliverfoster on 2756

    Recommendations (compare)

  • May 28 11:13
    oliverfoster synchronize #125
  • May 28 11:11

    oliverfoster on 2756

    Recommendations (compare)

  • May 28 11:11
    oliverfoster synchronize #125
annie-leonhart
@annie-leonhart
yes, yes i'll work for it. thanks
Oliver Foster
@oliverfoster
:+1:
mmitic86
@mmitic86
Hello everyone
first time posting here
can someone help me with swipe events, I cannot make them work at all?
vonnyp
@vonnyp
Hello everyone,
Can anyone tell me what "_latestTrackingId" is for?
i think the grunt task just uses it to know what number to assign to newly added blocks
rschweigert
@rschweigert_gitlab
Hello,
i developed a custom question component for AF 4.2.0 and it worked as expected. Now i tried to adapt it to AF 5.5.0. I changed only some less variables and the button class in the hbs-template. This obviously broke the functionality of the reset-button, as it didn't show up anymore. Instead, the reset occurs immediately after clicking the send- button. Are there any changes in the button behavior?
Matt Leathes
@moloko
in the general button behaviour? there isn't any behaviour to change
rschweigert
@rschweigert_gitlab
Hmm. Do you have any idea, what could cause the issue? As mentioned, it worked perfectly in the previous AF version.
Oliver Foster
@oliverfoster
Not without seeing the source code
Matt Leathes
@moloko
@rschweigert_gitlab in general buttons in Adapt don't have any special functionality they are just HTML <button> elements
there's no special Adapt Button Class (except from a styling point of view)
rschweigert
@rschweigert_gitlab
OK, i will check my code again. Thank you so far!
Chiranjeevi
@Chiranjeevi1923
Hi
When i check var Adapt = require("core/js/adapt"); in my console it is giving me error like..
Uncaught Error: Module name "core/js/adapt" has not been loaded yet for context: _.
I was checking in LMS
Chiranjeevi
@Chiranjeevi1923
Can anyone help me , how to check Adapt value in console?
Oliver Foster
@oliverfoster
is it running inside an iframe?
Chiranjeevi
@Chiranjeevi1923
Yes
Oliver Foster
@oliverfoster
you need to switch the debugger to the iframe
there are two different window global contexts
the iframe parent (default) and the iframe
you're running javascript in the iframe parent
annie-leonhart
@annie-leonhart
Hi, i'm working in framework .hbs file. I want to insert a condition that connects in course.json/contentObject.json
if (_type == "course") {
do something...
}
i tried
{{#if _type "course"}}
do something here...
{{/if}}
but it doesn't work. i have a console error (see screenshot for the error)
image.png
thank you
i just want to equals this in my condition, found in course.json
image.png
Simon Date
@simondate
When using handlebars you can add {{log this}} to work out what is included in the current object
annie-leonhart
@annie-leonhart
i don't understand. sorry
Simon Date
@simondate
So you don't know what is included in the handlebars when it's being processed
Oliver Foster
@oliverfoster
#if takes booleans
Simon Date
@simondate
I find it useful to work out what is in the current object (that is being processed) by printing it out. Then you can open your console to see the output and
Oliver Foster
@oliverfoster
it doesn't do comparisons
you need #equals a b
annie-leonhart
@annie-leonhart
i mean. i want to have a condition in template .hbs file. but i dont know how in handlebars in adapt
Simon Date
@simondate
I think Oli's answer is what you need
Looking at what you posted originally
Oliver Foster
@oliverfoster
these are all the adapt helpers which sit onto of the normal handlebars inbuilt helpers https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/helpers.js
you can also do #compare a '==' b
annie-leonhart
@annie-leonhart
am i correct?
{{#equals "course"}}
do something..
{{/equals}}
Oliver Foster
@oliverfoster
no
{{#equals _type "course"}}
do something..
{{/equals}}
annie-leonhart
@annie-leonhart
thank you.
Oliver Foster
@oliverfoster
:+1: