summaryrefslogtreecommitdiffstats
path: root/static/functions/user_settings.js
diff options
context:
space:
mode:
authorGit <git@what.cd>2014-01-18 08:01:25 +0000
committerGit <git@what.cd>2014-01-18 08:01:25 +0000
commit16afc03e25176bc38dbc0ee30ef16121e4e24d9e (patch)
treed0a675adf7df062e6a3e763de6e8a902be14112b /static/functions/user_settings.js
parent49c5593aa1169647aa558a126194de98ae19bbbd (diff)
downloadGazelle-16afc03e25176bc38dbc0ee30ef16121e4e24d9e.zip
Gazelle-16afc03e25176bc38dbc0ee30ef16121e4e24d9e.tar.gz
Gazelle-16afc03e25176bc38dbc0ee30ef16121e4e24d9e.tar.bz2
Empty commit
Diffstat (limited to 'static/functions/user_settings.js')
-rw-r--r--static/functions/user_settings.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/static/functions/user_settings.js b/static/functions/user_settings.js
index 31199cf..ee8d464 100644
--- a/static/functions/user_settings.js
+++ b/static/functions/user_settings.js
@@ -1,12 +1,12 @@
$(document).ready(function() {
var top = $('#settings_sections').offset().top - parseFloat($('#settings_sections').css('marginTop').replace(/auto/, 0));
$(window).scroll(function (event) {
- var y = $(this).scrollTop();
- if (y >= top) {
- $('#settings_sections').addClass('fixed');
- } else {
- $('#settings_sections').removeClass('fixed');
- }
+ var y = $(this).scrollTop();
+ if (y >= top) {
+ $('#settings_sections').addClass('fixed');
+ } else {
+ $('#settings_sections').removeClass('fixed');
+ }
});
$("#settings_sections li").each(function(index) {
@@ -59,4 +59,4 @@ $(document).ready(function() {
function fuzzyMatch(str, pattern){
pattern = pattern.split("").reduce(function(a,b){ return a+".*"+b; });
return new RegExp(pattern).test(str);
-}; \ No newline at end of file
+};