jbox-web / redmine_jenkins

A Redmine plugin which makes building your Jenkins projects easy ;)
MIT License
71 stars 32 forks source link

Visual/HTML error on history view #49

Open acosonic opened 8 years ago

acosonic commented 8 years ago

When clicked on build history, panel title displays html code "<i ...".

On Redmine 3.0.6 http://prntscr.com/9900hz

bellatriks commented 8 years ago

The same issue on Redmine 3.2.0.stable + redmine_jenkins 1.0.1

timesong commented 6 years ago

The issue was from redmine_bootstrap_kit plugin, I did some change in redmine_bootstrap_kit\assets\javascripts\bootstrap\bootstrap.js file to fixed it.

function setUpModalBox(source, target) {
  $(source).each(function() {
    $(this).on('click', function() {
      // var title = $(this).html();
      var title = $(this).text() || $(this).attr('title') || $(this).html();
      $.get($(this).attr('href'), function(data){
        $(target).html(data);
        $(target).dialog('option', 'title', title);
        $(target).dialog('open');
      });
      return false;
    });
  });
}