Jihan Kim 2014-06-09
Remove `pressed` effect from watching button
@69d2c5b8caec239b80f936369d5040ed73b8b88f
app/assets/stylesheets/less/_yobiUI.less
--- app/assets/stylesheets/less/_yobiUI.less
+++ app/assets/stylesheets/less/_yobiUI.less
@@ -853,10 +853,6 @@
         }
     }
 
-    &.pressed {
-        .box-shadow(inset 1px 1px 1px rgba(0, 0, 0, 0.15));
-    }
-
     &.dropdown-toggle {
         &:after {
             margin-left: 5px;
app/views/issue/view.scala.html
--- app/views/issue/view.scala.html
+++ app/views/issue/view.scala.html
@@ -247,7 +247,7 @@
             <div class="pull-left">
                 <div>
                     @if(isAllowed(UserApp.currentUser(), issue.asResource(), Operation.WATCH)) {
-                        <button id="watch-button" type="button" class="ybtn @if(issue.getWatchers.contains(UserApp.currentUser())) {ybtn-watching pressed}"
+                        <button id="watch-button" type="button" class="ybtn @if(issue.getWatchers.contains(UserApp.currentUser())) {ybtn-watching}"
                                 data-toggle="button" data-watching="@if(issue.getWatchers.contains(UserApp.currentUser())){true}else{false}">
                         @if(issue.getWatchers.contains(UserApp.currentUser())) {
                             @Messages("project.unwatch")
@@ -259,7 +259,7 @@
 
                     <div id="vote" class="vote-wrap">
                         @if(isResourceCreatable(User.findByLoginId(session.get("loginId")), issue.asResource(), ResourceType.ISSUE_COMMENT)) {
-                            <a href="@urlToVote" class="ybtn @if(issue.isVotedBy(UserApp.currentUser)){ybtn-watching pressed}" title="@getVoteButtonTitle"
+                            <a href="@urlToVote" class="ybtn @if(issue.isVotedBy(UserApp.currentUser)){ybtn-watching}" title="@getVoteButtonTitle"
                                data-request-method="post" data-toggle="tooltip">
                                 <span class="heart"><i class="yobicon-hearts"></i></span>
                                 <span class="desc">@Messages("issue.vote")</span>
public/javascripts/service/yobi.board.View.js
--- public/javascripts/service/yobi.board.View.js
+++ public/javascripts/service/yobi.board.View.js
@@ -73,7 +73,7 @@
                     "fOnLoad": function(){
                         welTarget
                             .attr("data-watching", !bWatched)
-                            .toggleClass('ybtn-watching pressed')
+                            .toggleClass('ybtn-watching')
                             .html(Messages(!bWatched ? "project.unwatch" : "project.watch")).blur();
                         
                         $yobi.notify(Messages(bWatched ? "post.unwatch.start" : "post.watch.start"), 3000);
public/javascripts/service/yobi.code.Diff.js
--- public/javascripts/service/yobi.code.Diff.js
+++ public/javascripts/service/yobi.code.Diff.js
@@ -290,7 +290,7 @@
             $yobi.sendForm({
                 "sURL": bWatched ? htVar.sUnwatchUrl : htVar.sWatchUrl,
                 "fOnLoad": function(){
-                    welTarget.toggleClass("active ybtn-watching pressed");
+                    welTarget.toggleClass("active ybtn-watching");
                 }
             });
         }
public/javascripts/service/yobi.git.View.js
--- public/javascripts/service/yobi.git.View.js
+++ public/javascripts/service/yobi.git.View.js
@@ -89,7 +89,7 @@
                     "fOnLoad": function(){
                         welTarget
                             .attr("data-watching", !bWatched)
-                            .toggleClass('ybtn-watching pressed')
+                            .toggleClass('ybtn-watching')
                             .html(Messages(!bWatched ? "project.unwatch" : "project.watch")).blur();
                             
                         $yobi.notify(Messages(bWatched ? "pullRequest.unwatch.start" : "pullRequest.watch.start"), 3000);
public/javascripts/service/yobi.issue.View.js
--- public/javascripts/service/yobi.issue.View.js
+++ public/javascripts/service/yobi.issue.View.js
@@ -146,7 +146,7 @@
                 "fOnLoad": function(){
                     welTarget
                         .attr("data-watching", !bWatched)
-                        .toggleClass('ybtn-watching pressed')
+                        .toggleClass('ybtn-watching')
                         .html(Messages(!bWatched ? "project.unwatch" : "project.watch")).blur();
                         
                     $yobi.notify(Messages(bWatched ? "issue.unwatch.start" : "issue.watch.start"), 3000);
Add a comment
List