IET-OU / nquire-web-source

Join missions to explore your world. The nQuire-it web source code (front end & Java back end) —
http://www.nquire-it.org
GNU General Public License v3.0
2 stars 2 forks source link

Approval/ test server #5

Closed nfreear closed 8 years ago

nfreear commented 9 years ago

Fix image URLs — static/src/js/app/app.js:

//...

  var x
    , m_approval = L.href.match(/\/(approval|localhost|nquire\/|pegasos\.)/)

//...

  // Fix image URLs on test server [Bug: #5]
  if (m_approval) {
    $controller.ready(function () {
      W.setTimeout(function () {
        W.$("img[ src *= 'files/image/' ]").each(function () {
          var $img = W.$(this);
          W.console && console.log("IMG:", $img.attr("src"));

          $img.attr("src", "http://www.nquire-it.org/" + $img.attr("src"));
        });
      }, 2500);
    });
  }

(IET task)