From b08d4cc1fe2b8dd45de7546f05cf9a9601aeca03 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 23 Dec 2013 17:24:25 -0800 Subject: first cut at a directory popup. It's a bit annoying at the moment, so we'll have to make it less so. Also had second thoughts about the project homepage changes made yesterday. Just because a bunch of Reddit trolls can't get social networking out of their brain long enough to explore other technologies or even read the project page doesn't mean we should pander to them and explain how or why we either are or aren't a social network. --- view/js/mod_directory.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 view/js/mod_directory.js (limited to 'view/js/mod_directory.js') diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js new file mode 100644 index 000000000..96a38a109 --- /dev/null +++ b/view/js/mod_directory.js @@ -0,0 +1,8 @@ +function dirdetails(hash) { + + $.get('dirprofile' + '?f=&hash=' + hash, function( data ) { + $.colorbox({ html: data }); + }); + +} + -- cgit v1.2.3 From 4e3a2c5f28690158d9cf3c282f9d14736b5b0550 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 23 Dec 2013 19:51:51 -0800 Subject: make sure resize fires --- view/js/mod_directory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'view/js/mod_directory.js') diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 96a38a109..29caa8d55 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -1,7 +1,8 @@ function dirdetails(hash) { $.get('dirprofile' + '?f=&hash=' + hash, function( data ) { - $.colorbox({ html: data }); + $.colorbox({ maxWidth: '75%', maxHeight: '75%', html: data }); + $.colorbox.resize(); }); } -- cgit v1.2.3 From 1c5fe5a1ac252058c81d44409841441711f2c6b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 23 Dec 2013 20:04:00 -0800 Subject: set the height so colorbox can set its size correctly --- view/js/mod_directory.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'view/js/mod_directory.js') diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 29caa8d55..96a38a109 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -1,8 +1,7 @@ function dirdetails(hash) { $.get('dirprofile' + '?f=&hash=' + hash, function( data ) { - $.colorbox({ maxWidth: '75%', maxHeight: '75%', html: data }); - $.colorbox.resize(); + $.colorbox({ html: data }); }); } -- cgit v1.2.3 From b1ade138ff7fc47f2b70fb3fbf130127140b5271 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 25 Dec 2013 01:05:46 -0800 Subject: use colorbox for single photo viewing (replacing prettyPhoto, which may have license incompatibilities). Also set maximum size of a directory popup and let it scroll after that in case somebody set their profile keywords to the content of Webster's dictionary. --- view/js/mod_directory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/js/mod_directory.js') diff --git a/view/js/mod_directory.js b/view/js/mod_directory.js index 96a38a109..291734b4f 100644 --- a/view/js/mod_directory.js +++ b/view/js/mod_directory.js @@ -1,7 +1,7 @@ function dirdetails(hash) { $.get('dirprofile' + '?f=&hash=' + hash, function( data ) { - $.colorbox({ html: data }); + $.colorbox({ maxWidth: "50%", maxHeight: "75%", html: data }); }); } -- cgit v1.2.3