Giter VIP home page Giter VIP logo

shindig-moodle-mod's People

Contributors

vohtaski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shindig-moodle-mod's Issues

After restarting Moodle, changed widget titles with Chinese characters are not displayed correctly

Description:
When we replace the original title of a widget by a new one which contains Chinese characters,
these Chinese characters are displayed correctly. However, after restarting the Moodle server,
these Chinese characters will be displayed as question marks.

How to reproduce:

  1. Add this widget (http://widgets.onlinesjtu.com/gadgets/iframe.xml) into your own Moodle server
  2. Add the url and a title of this widget by specifying a url and title (contains Chinese characters)
    and clicking "change" (using "gadgets.window.setTitle(title);" to change the title).
    For example, use url "http://www.baidu.com" and title "百度".
  3. After restarting the Moodle server, the title of this widget will change to some question marks like "??".

Expected behavior:
After restarting, this widget title which contains Chinese characters should be displayed properly just as before restarting.

The widget title stored in a space doesn't change

Description:
When we use the opensocial api to change the title of
our Iframe widget, then the title displayed next to the "toggle" button changes,
but the title stored in space (accessed through the opensocial api) doesn't change.

How to reproduce:

  1. Go to http://course.onlinesjtu.com/mod/widgetspace/view.php?id=16494
  2. Notice the title of the second widget (baidu). We changed it by clicking on "change content"
    (using "gadgets.window.setTitle(title);").
  3. Use the rating widget (the first widget) to rate the second widget. The title retrieved by the
    rating widget (via "osapi.apps.get({contextId: appId}).execute(function(app) {app.displayName})")
    is the former, original title.

Expected behaviour:
The name shown in the rating gadget should be the current name of the gadget.

Additional info:
A similar problem arises when widgets are removed/replaced on a space. Before the change, the rating widget
retrieves the correct name. After the change (e.g. by replacing widget 2 with another widget), the rating widget
still shows the old name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.