Sha256: 2c4d1d7f8ccfd54fb265b3cdeb69c87d6ab6c9844219d63dafc12ce76801f33a

Contents?: true

Size: 1.63 KB

Versions: 7

Compression:

Stored size: 1.63 KB

Contents

// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
// esto es lo que mueve el fondo

$(function(){
  $(".sq-edit").button({icons: {primary: "ui-icon-pencil"},text: true});
  $(".sq-show").button({icons: {primary: "ui-icon-search"},text: true});  
  $(".sq-index").button({icons: {primary: "ui-icon-search"},text: true});
  $(".sq-new").button({icons: {primary: "ui-icon-plus"},text: true});
  $(".sq-destroy").button({icons: {primary: "ui-icon-trash"},text: true});
  
  //$( "*" ).draggable();
  //$("h2").addClass("ui-widget-header ui-corner-all");
  /*$("*").click(function(){
    $(this).addClass( "border", 100, removeborder );
  });*/
  $("#menu a").button();
  $("#user_nav a").button();
  $( "a", ".demo" ).click(function() { return false; });

  /* funcion para que los comentarios se actualizen cada tanto */		  
  if ($('#comments').length > 0) {  
    setTimeout(updateComments, 10000);  
  }
  /* configuracion del layout */
  var id=0;
  $(document).ready(function () { //arma el layout
    Layout = $('body').layout({
      applyDefaultStyles: true,
      resizable:true,
      north__size:0,
      west__size:0,
      east__size:0
    });
  });
   
});

function removeborder(){
  setTimeout(function() {
    $( "*" ).removeClass( "border" );
  }, 3500 );

};
function updateComments() {
  var comment_id = $('#comments').attr('comment_id');
  var after =0 ;
  if($('.post:last').attr('data_time')){
    after =$('.post:last').attr('data_time');  	
  	 }
  $.getScript('/comments/'+comment_id+'.js?after='+after);  
  setTimeout(updateComments, 10000);  
} 

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/public/javascripts/application.js
squeezer-0.2.0 lib/generators/squeezer/templates/public/javascripts/application.js
squeezer-0.1.11 lib/generators/squeezer/templates/public/javascripts/application.js
squeezer-0.1.7 lib/generators/squeezer/templates/public/javascripts/application.js
squeezer-0.1.6 lib/generators/squeezer/templates/public/javascripts/application.js
squeezer-0.1.5 lib/generators/squeezer/templates/public/javascripts/application.js
squeezer-0.1.4 lib/generators/squeezer/templates/public/javascripts/application.js