~phill-ridout/openlp/bug1209515

« back to all changes in this revision

Viewing changes to openlp/plugins/remotes/html/main.js

  • Committer: Tim Bentley
  • Date: 2013-07-15 19:33:50 UTC
  • mfrom: (2250.1.24 general)
  • Revision ID: tim.bentley@gmail.com-20130715193350-npygrmen3xxbhphh
rename new url from live to main
fix display constraints
fix missing image test
add tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
window.OpenLP = {
27
27
  loadSlide: function (event) {
28
28
    $.getJSON(
29
 
      "/live/image",
 
29
      "/main/image",
30
30
      function (data, status) {
31
31
        var img = document.getElementById('image');
32
32
        img.src = data.results.slide_image;
36
36
  },
37
37
  pollServer: function () {
38
38
    $.getJSON(
39
 
      "/live/poll",
 
39
      "/main/poll",
40
40
      function (data, status) {
41
41
        if (OpenLP.slideCount != data.results.slide_count) {
42
42
          OpenLP.slideCount = data.results.slide_count;