mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
remove unnecessary code from changing views
This commit is contained in:
parent
70ac4807b7
commit
9d76b8fe94
Binary file not shown.
@ -196,11 +196,9 @@ $(function(){
|
|||||||
if ( ! isIconEnabled(origin) ) {
|
if ( ! isIconEnabled(origin) ) {
|
||||||
var displayContent = "Changing Of Views Disabled";
|
var displayContent = "Changing Of Views Disabled";
|
||||||
} else {
|
} else {
|
||||||
var myID = origin.attr('id');
|
|
||||||
setSortOrder();
|
setSortOrder();
|
||||||
var displayContent = $("#tooltipviews").html();
|
var displayContent = $("#tooltipviews").html();
|
||||||
$("#tooltipviews").attr("data-backup",displayContent);
|
$("#tooltipviews").html(""); // Because I'm using id's instead of classes
|
||||||
$("#tooltipviews").html("");
|
|
||||||
}
|
}
|
||||||
instance.content(displayContent);
|
instance.content(displayContent);
|
||||||
},
|
},
|
||||||
@ -209,7 +207,6 @@ $(function(){
|
|||||||
$(".sortButton,.dirButton").click(function() { changeSortOrder(this.id,$(this).attr("class")); });
|
$(".sortButton,.dirButton").click(function() { changeSortOrder(this.id,$(this).attr("class")); });
|
||||||
},
|
},
|
||||||
functionAfter: function(instance,helper) {
|
functionAfter: function(instance,helper) {
|
||||||
$("#tooltipviews").html($("#tooltipviews").attr("data-backup"));
|
|
||||||
setSortOrder();
|
setSortOrder();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user