Sha256: 312ea360157050cb119c4778e3d3d83b5ad9ddf4a43cf0a8141174ed38a48375

Contents?: true

Size: 953 Bytes

Versions: 5

Compression:

Stored size: 953 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');
}

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.6 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.3.5 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.3.4 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.3.3 lib/generators/connector/templates/home.js
maestrano-connector-rails-2.3.2 lib/generators/connector/templates/home.js