Sha256: 15bb285eff9227480a23d97caf398c04ab846eb7393a93eb1e9bf34338bdfcb7

Contents?: true

Size: 954 Bytes

Versions: 13

Compression:

Stored size: 954 Bytes

Contents

function historicalDataDisplay()
{
  if (document.getElementById('historical-data').checked)
  {
      $('#myModal').modal('show');
      document.getElementById('historical-data-display-checked').style.display = 'block';
      document.getElementById('historical-data-display-unchecked').style.display = 'none';
  } else {
      document.getElementById('historical-data-display-unchecked').style.display = 'block';
      document.getElementById('historical-data-display-checked').style.display = 'none';
  }
}

var checkHistorical

function closeModal(sender)
{
  checkHistorical = sender.id == 'confirm'
  $('#myModal').modal('hide');
}

$(document).ready(function(){
    $("#myModal").on('hidden.bs.modal', function (e) {
      if (!checkHistorical) {
		document.getElementById('historical-data').checked = false
		historicalDataDisplay()
      }
      checkHistorical = false
    });
});


$(function () {
  $('[data-toggle="tooltip"]').tooltip()
})

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.1 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.3.0 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.2.1 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.2.0 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.1.3 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.1.2 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.1.1 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.1.0 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.0.2.pre.RC12 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.0.2.pre.RC11 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.0.2.pre.RC10 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.0.2.pre.RC8 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.0.2.pre.RC9 lib/generators/connector/templates/home.js