Change export button text while the table contents are switched between Sub-Disciplines and Disciplines

This commit is contained in:
kongchinhua 2011-07-13 18:43:55 +00:00
parent 68802445fc
commit 7a7406a35c

View file

@ -233,6 +233,7 @@ var DataTableWidget = Class.extend({
} }
me.currentSelectedFilter = SCIMAP_TYPE.SUBDISCIPLINE; me.currentSelectedFilter = SCIMAP_TYPE.SUBDISCIPLINE;
$("a#csv").attr("href", entityMapOfScienceSubDisciplineCSVURL); $("a#csv").attr("href", entityMapOfScienceSubDisciplineCSVURL);
$("a#csv").html("Export All Sub-Displines");
} else { } else {
@ -242,6 +243,7 @@ var DataTableWidget = Class.extend({
me.widget.fnSettings()._iDisplayLength = 13; me.widget.fnSettings()._iDisplayLength = 13;
} }
$("a#csv").attr("href", entityMapOfScienceDisciplineCSVURL); $("a#csv").attr("href", entityMapOfScienceDisciplineCSVURL);
$("a#csv").html("Export All Displines");
} }