|
@@ -215,7 +215,7 @@ $(document).ready(function() {
|
|
|
// If the user has scrolled down to "Jump To..."
|
|
|
else {
|
|
|
// Set the new scroll position
|
|
|
- scrollPositionNew = chosenFieldPosition - 57;
|
|
|
+ scrollPositionNew = chosenFieldPosition - 58;
|
|
|
|
|
|
// Toggle the menu
|
|
|
$("div.jump-to-list").slideToggle(300);
|
|
@@ -341,8 +341,16 @@ $(document).ready(function() {
|
|
|
var loopCounter = 0;
|
|
|
var text = $(this).text();
|
|
|
|
|
|
+ // instanceCounter = $(text + ":contains('test')").length;
|
|
|
+
|
|
|
+ // $('#parentDiv').find(":contains('No Records Found')").length
|
|
|
+
|
|
|
+ // console.log(instanceCounter);
|
|
|
+
|
|
|
// For every tag in the database that belongs to the active user
|
|
|
for(t in tags) {
|
|
|
+ // instanceCounter = ($(this).text().match(/aaa/g) || []).length;
|
|
|
+
|
|
|
// Apply the tag for every instance of the current term
|
|
|
// instanceCounter = text.indexOf(tags[loopCounter]);
|
|
|
|