Revision b27c104d snf-astakos-app/astakos/im/static/im/js/common.js

b/snf-astakos-app/astakos/im/static/im/js/common.js
110 110
             //todo
111 111
        });
112 112
    });	
113
    //$('.dropkick-select').dropkick();
114 113
    
114
    
115
     
116
	$('select').dropkick();
115 117
 
116 118
    
117 119
    $('.top-msg .success').parents('.top-msg').css(
......
173 175
    );
174 176
    
175 177
    
176
    /*$('#animation a').hover(
177
      function () {
178
      	
179
        $(this).animate({
180
           top: '+=-10'   
181
           }, 600);
182
        $(this).siblings('p').find('img').animate({
183
          width: '60%'       
184
        });
185
      }, 
186
      function () {
187

  
188
        $(this).animate({top: '0'}, 600);
189
        $(this).siblings('p').find('img').animate({
190
          width: '65%'       
191
        });
192
      }
193
    );*/
178
   
194 179
    
195 180
    
196 181
    if ($('.widjets'.length > 0)) {
......
198 183
	}
199 184
    
200 185
    $(function() {
201
    	if($("#from").length > 0 ){
202
			$( "#from" ).datepicker({
186
    	if($("#id_issue_date").length > 0 ){
187
			$( "#id_issue_date" ).datepicker({
203 188
				defaultDate: "+0", 
204
				dateFormat: "dd-mm-yy",
189
				dateFormat: "yy-mm-dd",
205 190
				onSelect: function( selectedDate ) {
206
					$( "#to" ).datepicker( "option", "minDate", selectedDate );
191
					$( "#id_expiration_date" ).datepicker( "option", "minDate", selectedDate );
207 192
				}
208 193
			});
209
			$( "#to" ).datepicker({
194
			$( "#id_expiration_date" ).datepicker({
210 195
				defaultDate: "+1w", 
211
				dateFormat: "dd-mm-yy",
196
				dateFormat: "yy-mm-dd",
212 197
				onSelect: function( selectedDate ) {
213
					$( "#from" ).datepicker( "option", "maxDate", selectedDate );
198
					$( "#id_issue_date" ).datepicker( "option", "maxDate", selectedDate );
214 199
				}
215 200
			});
216 201
		}
217 202
	});
203
	
204
	
205
	$(".table_sorting").tablesorter(); 
218 206
});
219 207

  
220 208
$(window).resize(function() {
......
224 212
		$('.widjets  li div').equalHeights();
225 213
	}
226 214

  
227
});
228

  
229

  
230

  
231

  
232
 
233

  
234

  
215
}); 

Also available in: Unified diff