app/assets/javascripts/sufia.js in sufia-1.3.0 vs app/assets/javascripts/sufia.js in sufia-2.0.0
- old
+ new
@@ -36,11 +36,11 @@
//= require swfobject
//= require ZeroClipboard.min
//= require batch_edit
//= require terms_of_service
-//= require fileupload
+//= require sufia/fileupload
//= require sufia/permissions
//= require sufia/trophy
//= require sufia/batch_select_all
//= require sufia/multiForm
//= require sufia/edit_metadata
@@ -121,34 +121,32 @@
/*
* facets lists
*/
- $("li.expandable").click(function(){
- $(this).next("ul").slideToggle();
+ $("li.expandable").click(function(){
+ $(this).next("ul").slideToggle();
+ $(this).find('i').toggleClass("icon-chevron-down");
+ });
- $(this).find('i').toggleClass("icon-chevron-down");
- });
+ $("li.expandable_new").click(function(){
+ $(this).find('i').toggleClass("icon-chevron-down");
+ });
- $("li.expandable_new").click(function(){
- $(this).find('i').toggleClass("icon-chevron-down");
- });
-
- $(".sorts-dash").click(function(){
- var itag =$(this).find('i');
- toggle_icon(itag);
- sort = itag.attr('class') == "icon-caret-down" ? itag.attr('id')+' desc': itag.attr('id') +' asc';
- $('#sort').val(sort).selected = true;
- $(".icon-refresh").parent().click();
- });
- $(".sorts").click(function(){
- var itag =$(this).find('i');
- toggle_icon(itag);
- sort = itag.attr('class') == "icon-caret-down" ? itag.attr('id')+' desc': itag.attr('id');
- $('input[name="sort"]').attr('value', sort);
- $(".icon-search").parent().click();
- });
-
+ $(".sorts-dash").click(function(){
+ var itag =$(this).find('i');
+ toggle_icon(itag);
+ sort = itag.attr('class') == "icon-caret-down" ? itag.attr('id')+' desc': itag.attr('id') +' asc';
+ $('#sort').val(sort).selected = true;
+ $(".icon-refresh").parent().click();
+ });
+ $(".sorts").click(function(){
+ var itag =$(this).find('i');
+ toggle_icon(itag);
+ sort = itag.attr('class') == "icon-caret-down" ? itag.attr('id')+' desc': itag.attr('id');
+ $('input[name="sort"]').attr('value', sort);
+ $(".icon-search").parent().click();
+ });
}); //closing function at the top of the page
/*