Changeset 29238 for trunk/admin/themes
- Timestamp:
- Aug 21, 2014, 7:10:15 PM (10 years ago)
- Location:
- trunk/admin/themes/default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/batch_manager_global.tpl
r29076 r29238 354 354 }); 355 355 356 {* filesize, copied from dimensions filter and modified, to be moved in a plugin later *} 357 var filesize_values = [{$filesize.list}]; 358 359 function filesize_onSliderChange(ui, pattern) { 360 $("input[name='filter_filesize_min']").val(filesize_values[ui.values[0]]); 361 $("input[name='filter_filesize_max']").val(filesize_values[ui.values[1]]); 362 363 $("#filter_filesize_info").html(sprintf( 364 pattern, 365 filesize_values[ui.values[0]], 366 filesize_values[ui.values[1]] 367 )); 368 } 369 370 $("#filter_filesize_slider").slider({ 371 range: true, 372 min: 0, 373 max: filesize_values.length - 1, 374 values: [ 375 getSliderKeyFromValue({$filesize.selected.min}, filesize_values), 376 getSliderKeyFromValue({$filesize.selected.max}, filesize_values) 377 ], 378 slide: function(event, ui) { 379 filesize_onSliderChange(ui, "{'between %s and %s MB'|translate|escape:'javascript'}"); 380 }, 381 change: function(event, ui) { 382 filesize_onSliderChange(ui, "{'between %s and %s MB'|translate|escape:'javascript'}"); 383 } 384 }); 385 386 $("a.filesize-choice").click(function() { 387 $("#filter_filesize_slider") 388 .slider("values", 0, 0) 389 .slider("values", 1, filesize_values.length - 1); 390 }); 391 392 356 393 jQuery("select[name=filter_prefilter]").change(function() { 357 394 jQuery("#empty_caddie").toggle(jQuery(this).val() == "caddie"); … … 461 498 <a href="admin/popuphelp.php?page=quick_search" onclick="popuphelp(this.href);return false;" title="{'Help'|@translate}"><span class="icon-help-circled"></span></a> 462 499 </li> 500 501 <li id="filter_filesize" {if !isset($filter.filesize)}style="display:none"{/if}> 502 <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a> 503 <input type="checkbox" name="filter_filesize_use" class="useFilterCheckbox" {if isset($filter.filesize)}checked="checked"{/if}> 504 {'Filesize'|@translate} 505 506 <blockquote> 507 <span id="filter_filesize_info">{'between %s and %s MB'|@translate:$filesize.selected.min:$filesize.selected.max}</span> 508 | <a class="filesize-choice">{'Reset'|@translate}</a> 509 <div id="filter_filesize_slider"></div> 510 </blockquote> 511 512 <input type="hidden" name="filter_filesize_min" value="{$filesize.selected.min}"> 513 <input type="hidden" name="filter_filesize_max" value="{$filesize.selected.max}"> 514 </li> 463 515 </ul> 464 516 … … 472 524 <option value="filter_level" {if isset($filter.level)}disabled="disabled"{/if}>{'Privacy level'|@translate}</option> 473 525 <option value="filter_dimension" {if isset($filter.dimension)}disabled="disabled"{/if}>{'Dimensions'|@translate}</option> 526 <option value="filter_filesize" {if isset($filter.filesize)}disabled="disabled"{/if}>{'Filesize'|@translate}</option> 474 527 <option value="filter_search"{if isset($filter.search)} disabled="disabled"{/if}>{'Search'|@translate}</option> 475 528 </select> -
trunk/admin/themes/default/theme.css
r28563 r29238 979 979 #batchManagerGlobal .useFilterCheckbox {display:none;} 980 980 981 #batchManagerGlobal #filter_dimensionblockquote {margin:5px 0 20px 15px;}982 #batchManagerGlobal #filter_dimension.ui-slider-horizontal {width:650px;margin:5px 0 10px 0;}981 #batchManagerGlobal blockquote {margin:5px 0 20px 15px;} 982 #batchManagerGlobal .ui-slider-horizontal {width:650px;margin:5px 0 10px 0;} 983 983 984 984 #order_filters a.addFilter {font-weight:normal;margin-left:20px;}
Note: See TracChangeset
for help on using the changeset viewer.