|
Lines 138-143
$(document).ready(function(){
Link Here
|
| 138 |
return $("#" + $(this).data("item") + "-delete-item-form").submit(); |
138 |
return $("#" + $(this).data("item") + "-delete-item-form").submit(); |
| 139 |
} |
139 |
} |
| 140 |
}) ; |
140 |
}) ; |
|
|
141 |
|
| 142 |
/* On page load, check for location.hash in the page URL */ |
| 143 |
/* If present the location hash will be used to scroll to the relevant anchor */ |
| 144 |
var hash = location.hash; |
| 145 |
var hashPieces = hash.split('?'); |
| 146 |
if( hashPieces[0] !== "" ){ |
| 147 |
$( hashPieces[0] )[0].scrollIntoView(); |
| 148 |
} |
| 149 |
|
| 150 |
$("#newitem_jump").on("click", function(e){ |
| 151 |
e.preventDefault(); |
| 152 |
document.getElementById("additema").scrollIntoView(); |
| 153 |
}); |
| 141 |
}); |
154 |
}); |
| 142 |
|
155 |
|
| 143 |
function CheckTemplateForm(f) { |
156 |
function CheckTemplateForm(f) { |
| 144 |
- |
|
|