summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php6
-rw-r--r--phpfspot.js2
-rw-r--r--rpc.php3
3 files changed, 9 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 13517f2..89cf0b8 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -281,6 +281,12 @@ class PHPFSPOT {
} // resetTags()
+ public function resetTagSearch()
+ {
+ unset($_SESSION['searchfor']);
+
+ } // resetTagSearch()
+
public function getPhotoSelection()
{
$tagged_photos = Array();
diff --git a/phpfspot.js b/phpfspot.js
index 859b198..a7b830f 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -21,7 +21,7 @@ function Tags(mode, id)
HTML_AJAX.grab(encodeURI('rpc.php?action=deltag&id=' + id));
}
else if(mode == "reset") {
- HTML_AJAX.grab(encodeURI('rpc.php?action=resettags'));
+ HTML_AJAX.grab(encodeURI('rpc.php?action=reset'));
}
else if(mode == "condition") {
setCheckedValue(id, id.value);
diff --git a/rpc.php b/rpc.php
index 80c80b1..9b56c48 100644
--- a/rpc.php
+++ b/rpc.php
@@ -66,8 +66,9 @@ class PHPFSPOT_RPC {
$fspot->delTag($_GET['id']);
break;
- case 'resettags':
+ case 'reset':
+ $fspot->resetTagSearch();
$fspot->resetTags();
break;