Changeset - b18e14855135
[Not reviewed]
default
0 1 0
Takumi IINO - 11 years ago 2014-08-21 05:39:45
trot.thunder@gmail.com
templates: add $ prefix to a variable that holding jquery object
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/admin/admin.html
Show inline comments
 
@@ -35,15 +35,15 @@
 
    </div>
 
</div>
 

	
 
<script>
 
$(document).ready(function() {
 
  $('#j_filter').click(function(){
 
    var jfilter = $('#j_filter');
 
    if(jfilter.hasClass('initial')){
 
        jfilter.val('');
 
    var $jfilter = $('#j_filter');
 
    if($jfilter.hasClass('initial')){
 
        $jfilter.val('');
 
    }
 
  });
 
  var fix_j_filter_width = function(len){
 
      $('#j_filter').css('width', Math.max(80, len*6.50)+'px');
 
  };
 
  $('#j_filter').keyup(function () {
0 comments (0 inline, 0 general)