diff options
-rw-r--r-- | phpfspot.class.php | 6 | ||||
-rw-r--r-- | phpfspot.js | 2 | ||||
-rw-r--r-- | rpc.php | 3 |
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); @@ -66,8 +66,9 @@ class PHPFSPOT_RPC { $fspot->delTag($_GET['id']); break; - case 'resettags': + case 'reset': + $fspot->resetTagSearch(); $fspot->resetTags(); break; |