summaryrefslogtreecommitdiff
path: root/web-ui/app/js/tags/ui/tag_shortcut.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/tags/ui/tag_shortcut.js')
-rw-r--r--web-ui/app/js/tags/ui/tag_shortcut.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/app/js/tags/ui/tag_shortcut.js b/web-ui/app/js/tags/ui/tag_shortcut.js
index 9ec03eae..5710592e 100644
--- a/web-ui/app/js/tags/ui/tag_shortcut.js
+++ b/web-ui/app/js/tags/ui/tag_shortcut.js
@@ -14,6 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
+'use strict';
define(
[
'flight/lib/component',
@@ -63,7 +64,8 @@ define(
};
this.selectTag = function (ev, data) {
- data.tag === this.attr.linkTo.name ? this.doSelect() : this.doUnselect();
+ if(data.tag === this.attr.linkTo.name) { this.doSelect(); }
+ else { this.doUnselect(); }
};
this.doUnselect = function () {