Avoid click on select range
parent
fccd26c749
commit
1dcb363389
|
@ -14,7 +14,7 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File: epics.dashboard.controller.coffee
|
# File: story-header.controller.coffee
|
||||||
###
|
###
|
||||||
|
|
||||||
module = angular.module("taigaUserStories")
|
module = angular.module("taigaUserStories")
|
||||||
|
@ -25,9 +25,10 @@ class StoryHeaderController
|
||||||
"$tgConfirm",
|
"$tgConfirm",
|
||||||
"$tgQueueModelTransformation",
|
"$tgQueueModelTransformation",
|
||||||
"$tgNavUrls",
|
"$tgNavUrls",
|
||||||
|
"$window"
|
||||||
]
|
]
|
||||||
|
|
||||||
constructor: (@rootScope, @confirm, @modelTransform, @navUrls) ->
|
constructor: (@rootScope, @confirm, @modelTransform, @navUrls, @window) ->
|
||||||
@.editMode = false
|
@.editMode = false
|
||||||
@.loadingSubject = false
|
@.loadingSubject = false
|
||||||
@.originalSubject = @.item.subject
|
@.originalSubject = @.item.subject
|
||||||
|
@ -54,6 +55,8 @@ class StoryHeaderController
|
||||||
}
|
}
|
||||||
|
|
||||||
editSubject: (value) ->
|
editSubject: (value) ->
|
||||||
|
selection = @window.getSelection()
|
||||||
|
if selection.type != "Range"
|
||||||
if value
|
if value
|
||||||
@.editMode = true
|
@.editMode = true
|
||||||
if !value
|
if !value
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
@include font-type(text);
|
@include font-type(text);
|
||||||
align-content: center;
|
align-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
max-width: 95%;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all .2s linear;
|
transition: all .2s linear;
|
||||||
&.blocked {
|
&.blocked {
|
||||||
|
|
Loading…
Reference in New Issue