Sha256: e1dd65e31917ad072465c4992b35e4d8a70461b4b0e0894c44c4d47ba7a8ab89

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

Contents

//function updateJobCount() {
  //$.get("/jobs/count", function(data) {
    //if (data == "0") {
      //$('#job-count').html("")
    //} else {
      //$('#job-count').html("("+data+")")
    //}
  //});
//}
$(function() {
  $('.timeago').timeago();
  var accordion = $('#sidebar .accordion').accordion({
    collapsible: true, icons: false,
    navigation: true, autoHeight: false,
    navigationFilter: function() {
      var href = this.href;
      var cur  = location.href;
      return(href == cur.substring(0, href.length));
    }
  });
  accordion.find('button').each(function() {
    var obj = $(this);
    var arr = obj.attr('class').split("-");
    var icon, href;
    switch (arr[0]) {
    case 'more':
      icon = 'ui-icon-circle-arrow-e';
      href = '/'+arr[1];
      break;
    case 'new':
      icon = 'ui-icon-circle-plus';
      href = '/'+arr[1]+'s/new';
      break;
    }
    obj.button({ icons: { primary: icon } }).click(function() {
      window.location.href = href;
    });
  });
  //setInterval(updateJobCount, 30000);
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
coupler-0.0.7-java webroot/public/js/application.js
coupler-0.0.6-java webroot/public/js/application.js
coupler-0.0.4-java webroot/public/js/application.js
coupler-0.0.3-java webroot/public/js/application.js
coupler-0.0.2-java webroot/public/js/application.js
coupler-0.0.1-java webroot/public/js/application.js