Jump to content
Important Notice:
Due to further security updates and ongoing integration strategies following the latest release all schools using SIMS, WCBS or Progresso MIS systems will need to upgrade to the latest MIS extractor available here. All other schools using UK based MIS providers will be required to move to Groupcall XOD prior to the start of the next academic year. Please contact our service desk team who will help guide you through the process on 01422 395939 or via support@frogeducation.com.
gbligh

MIS Linked Documents widget

Recommended Posts

17 hours ago, adamw said:

This is complete guess, without testing. but try this as the first line in your 'done' function:


thisResponse = Lib.Models.Resource.model(thisResponse.data);

That may give you an array of resource models, which you can then do stuff with. You might have to amend the rest of your code to cope with the new structure, but it should be fairly easy to do. That's if it works! Like I said, I usually leave the front-end stuff to those who are cleverer than me :P

 

Thanks @adamw This worked!

I ended up using the line here:

$mywrapper.on("click tap", ".clickable-row", function(ev) {
  var myResource = $(ev.currentTarget).data("resource");
  
  myResource = Lib.Models.Resource.model(myResource);
  
  this.trigger('os.app.preview', {
    name: 'preview',
    resource: myResource,
    launchAboveModal: false
  });
}.bind(this));

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Looks like you're enjoying the discussion, why don't you sign up?

×