tranform <a> submits to buttons
parent
8cacf4e824
commit
c9a6d1df8e
|
@ -150,7 +150,6 @@ CreateMembersDirective = ($rs, $rootScope, $confirm, $loading ,lightboxService)
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link: link}
|
||||
|
||||
|
|
|
@ -120,7 +120,6 @@ ProjectProfileDirective = ($repo, $confirm, $loading, $navurls, $location) ->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -154,7 +153,6 @@ ProjectDefaultValuesDirective = ($repo, $confirm, $loading) ->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
|
|
@ -445,7 +445,6 @@ GithubWebhooksDirective = ($repo, $confirm, $loading) ->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -481,7 +480,6 @@ GitlabWebhooksDirective = ($repo, $confirm, $loading) ->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -517,7 +515,6 @@ BitbucketWebhooksDirective = ($repo, $confirm, $loading) ->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
|
|
@ -201,7 +201,6 @@ LoginDirective = ($auth, $confirm, $location, $config, $routeParams, $navUrls, $
|
|||
return promise.then(onSuccess, onError)
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -242,7 +241,6 @@ RegisterDirective = ($auth, $confirm, $location, $navUrls, $config, $analytics)
|
|||
promise.then(onSuccessSubmit, onErrorSubmit)
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -279,7 +277,6 @@ ForgotPasswordDirective = ($auth, $confirm, $location, $navUrls) ->
|
|||
promise.then(onSuccessSubmit, onErrorSubmit)
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -321,7 +318,6 @@ ChangePasswordFromRecoveryDirective = ($auth, $confirm, $location, $params, $nav
|
|||
promise.then(onSuccessSubmit, onErrorSubmit)
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
@ -471,7 +467,6 @@ CancelAccountDirective = ($repo, $model, $auth, $confirm, $location, $params, $n
|
|||
promise.then(onSuccessSubmit, onErrorSubmit)
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
|
|
@ -158,7 +158,6 @@ CreateEditSprint = ($repo, $confirm, $rs, $rootscope, lightboxService, $loading)
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$el.on "click", ".delete-sprint .icon-delete", (event) ->
|
||||
event.preventDefault()
|
||||
|
|
|
@ -329,7 +329,6 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope, lightboxService,
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$el.on "click", ".close", (event) ->
|
||||
event.preventDefault()
|
||||
|
@ -398,7 +397,6 @@ CreateBulkUserstoriesDirective = ($repo, $rs, $rootscope, lightboxService, $load
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
|
|
@ -55,7 +55,6 @@ FeedbackDirective = ($lightboxService, $repo, $confirm, $loading)->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "feedback:show", ->
|
||||
$scope.$apply ->
|
||||
|
|
|
@ -75,7 +75,6 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading)
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
|
||||
return {link:link}
|
||||
|
@ -123,7 +122,6 @@ CreateBulkIssuesDirective = ($repo, $rs, $confirm, $rootscope, $loading, lightbo
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
|
|
@ -118,7 +118,6 @@ CreateProject = ($rootscope, $repo, $confirm, $location, $navurls, $rs, $project
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$el.on "click", ".close", (event) ->
|
||||
event.preventDefault()
|
||||
|
|
|
@ -134,7 +134,6 @@ SearchBoxDirective = ($lightboxService, $navurls, $location, $route)->
|
|||
$el.find("#search-text").val("")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
|
|
@ -83,7 +83,6 @@ CreateEditTaskDirective = ($repo, $model, $rs, $rootscope, $loading, lightboxSer
|
|||
$rootscope.$broadcast(broadcastEvent, data)
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
@ -127,7 +126,6 @@ CreateBulkTasksDirective = ($repo, $rs, $rootscope, $loading, lightboxService) -
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
|
|
@ -97,7 +97,6 @@ UserChangePasswordDirective = ($rs, $confirm, $loading) ->
|
|||
submitButton = $el.find(".submit-button")
|
||||
|
||||
$el.on "submit", "form", submit
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
|
|
@ -107,8 +107,6 @@ UserProfileDirective = ($confirm, $auth, $repo) ->
|
|||
|
||||
$el.on "submit", "form", submit
|
||||
|
||||
$el.on "click", ".submit-button", submit
|
||||
|
||||
$scope.$on "$destroy", ->
|
||||
$el.off()
|
||||
|
||||
|
|
|
@ -87,5 +87,4 @@ div.wrapper(tg-project-modules, ng-controller="ProjectProfileController as ctrl"
|
|||
option(value="") Select a videoconference system
|
||||
input(type="text", ng-model="project.videoconferences_salt",
|
||||
placeholder="If you want you can append a salt code to the name of the chat room")
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Sign in") Sign in
|
||||
|
|
|
@ -48,8 +48,7 @@ div.wrapper(tg-project-profile, ng-controller="ProjectProfileController as ctrl"
|
|||
|
||||
p All projects are private during Taiga's beta period.
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
a.delete-project(href="", title="Delete this project", ng-click="ctrl.openDeleteLightbox()") Delete this project
|
||||
|
||||
div.lightbox.lightbox-delete-project(tg-lb-delete-project)
|
||||
|
|
|
@ -27,9 +27,7 @@ div.wrapper.roles(tg-bitbucket-webhooks, ng-controller="BitbucketController as c
|
|||
label(for="valid-origin-ips") Valid origin ips (separated by ,)
|
||||
input(type="text", name="valid-origin-ips", tg-valid-origin-ips, ng-model="bitbucket.valid_origin_ips", placeholder="Bitbucket requests are not signed so the best way of verifying the origin is by IP. If the field is empty there will be no IP validation.", id="valid-origin-ips")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
||||
a.help-button(href="https://taiga.io/support/bitbucket-integration/", target="_blank")
|
||||
span.icon.icon-help
|
||||
|
|
|
@ -23,9 +23,7 @@ div.wrapper.roles(tg-github-webhooks, ng-controller="GithubController as ctrl",
|
|||
.icon.icon-copy
|
||||
.help-copy Copy to clipboard: Ctrl+C
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
||||
a.help-button(href="https://taiga.io/support/github-integration/", target="_blank")
|
||||
span.icon.icon-help
|
||||
|
|
|
@ -31,8 +31,7 @@ block content
|
|||
label(for="valid-origin-ips") Valid origin ips (separated by ,)
|
||||
input(type="text", name="valid-origin-ips", tg-valid-origin-ips, ng-model="gitlab.valid_origin_ips", placeholder="Gitlab requests are not signed so the best way of verifying the origin is by IP. If the field is empty there will be no IP validation.", id="valid-origin-ips")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
||||
a.help-button(href="https://taiga.io/support/gitlab-integration/", target="_blank")
|
||||
span.icon.icon-help
|
||||
|
|
|
@ -36,5 +36,4 @@ section.default-values
|
|||
ng-options="s.id as s.name for s in issueStatusList")
|
||||
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
|
|
@ -16,5 +16,4 @@ div.change-password-form-container(tg-change-password-from-recovery)
|
|||
input(type="password", name="password2", id="password2", ng-model="data.password2",
|
||||
data-required="true", data-equalto="#password", placeholder="Re-type new password")
|
||||
fieldset
|
||||
a.button.button-change-password.button-gray.submit-button(href="", title="Reset Password") Reset Password
|
||||
button(type="submit", class="hidden")
|
||||
button.button-change-password.button-gray.submit-button(type="submit", title="Reset Password") Reset Password
|
||||
|
|
|
@ -10,7 +10,6 @@ div.forgot-form-container(tg-forgot-password)
|
|||
input(type="text", name="username", ng-model="data.username", data-required="true",
|
||||
placeholder="Username or email")
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-gray.submit-button.button-forgot(href="", title="Reset Password") Reset Password
|
||||
button.button-gray.submit-button.button-forgot(type="submit", title="Reset Password") Reset Password
|
||||
|
||||
a(href="", title="Login", tg-nav="login") Nah, take me back. I think I remember it.
|
||||
|
|
|
@ -8,7 +8,6 @@ form.login-form
|
|||
placeholder="Password")
|
||||
a.forgot-pass(href="", tg-nav="forgot-password", title="Did you forgot your password?") Forgot it?
|
||||
fieldset
|
||||
a.button.button-login.button-gray.submit-button(href="", title="Log in") Enter
|
||||
button(type="submit", class="hidden")
|
||||
button.button-login.button-gray.submit-button(type="submit", title="Enter") Enter
|
||||
|
||||
fieldset(tg-github-login-button)
|
||||
|
|
|
@ -20,7 +20,6 @@ form.register-form
|
|||
placeholder="Set a password")
|
||||
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-register.button-gray.submit-button(href="", title="Sign up") Sign up
|
||||
button.button-register.button-gray.submit-button(type="submit", title="Sign up") Sign up
|
||||
|
||||
tg-terms-notice
|
||||
|
|
|
@ -6,9 +6,6 @@ form
|
|||
//- Form is set in a directive
|
||||
.add-member-forms
|
||||
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Create")
|
||||
span Create
|
||||
button.button-green.submit-button(type="submit", title="Create") Create
|
||||
|
||||
p.help-text If users are already registered on Taiga, they will be added automatically. Otherwise they will receive an invitation.
|
||||
|
|
|
@ -20,6 +20,4 @@ form
|
|||
textarea.description(placeholder="Description", ng-model="issue.description")
|
||||
|
||||
// include lightbox-attachments
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save")
|
||||
span Create
|
||||
button.button-green.submit-button(type="submit", title="Create") Create
|
||||
|
|
|
@ -6,6 +6,4 @@ form
|
|||
textarea(ng-model="feedback.comment", data-required="true",
|
||||
placeholder="...a bug, some suggestions, something cool... or even your worst nightmare with Taiga")
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Send feedback")
|
||||
span Send feedback
|
||||
button.button-green.submit-button(type="submit", title="Send feedback") Send feedback
|
||||
|
|
|
@ -5,5 +5,4 @@ form
|
|||
fieldset
|
||||
textarea(cols="200", wrap="off", tg-limit-line-length, tr="placeholder:common.one-item-line", ng-model="new.bulk", data-required="true", data-linewidth="200")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
|
|
@ -5,5 +5,4 @@ form
|
|||
fieldset
|
||||
input(type="text", name="text", id="search-text", placeholder="What are you looking for?", data-required="true")
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Search") Search
|
||||
button.button-green.submit-button(type="submit", title="Search") Search
|
|
@ -15,9 +15,7 @@ form
|
|||
input.date-end(type="text", name="estimated_finish", placeholder="Estimated End",
|
||||
ng-model="sprint.estimated_finish", data-required="true", tg-date-selector)
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Create")
|
||||
span Create
|
||||
button.button-green.submit-button(type="submit", title="Create") Create
|
||||
|
||||
div(tg-check-permission="delete_milestone")
|
||||
span.delete-sprint.hidden Do you want to delete this sprint?
|
||||
|
|
|
@ -5,5 +5,4 @@ form
|
|||
fieldset
|
||||
textarea(cols="200", wrap="off", tg-limit-line-length, tr="placeholder:common.one-item-line", ng-model="form.data", data-required="true")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
|
|
@ -34,6 +34,4 @@ form
|
|||
|
||||
tg-blocking-message-input(watch="task.is_blocked", ng-model="task.blocked_note")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save")
|
||||
span Create
|
||||
button.button-green.submit-button(type="submit", title="Create") Create
|
||||
|
|
|
@ -5,5 +5,4 @@ form
|
|||
fieldset
|
||||
textarea(cols="200", wrap="off", tg-limit-line-length, tr="placeholder:common.one-item-line", ng-model="new.bulk", data-required="true", data-linewidth="200")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
|
@ -36,5 +36,4 @@ form
|
|||
|
||||
tg-blocking-message-input(watch="us.is_blocked", ng-model="us.blocked_note")
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Submit") Create
|
||||
button.button-green.submit-button(type="submit", title="Create") Create
|
||||
|
|
|
@ -10,8 +10,7 @@ div.login-form-container(tg-login)
|
|||
a.forgot-pass(href="", tg-nav="forgot-password", title="Did you forgot your password?") Forgot it?
|
||||
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-login.button-gray.submit-button(href="", title="Sign in") Sign in
|
||||
button.button-green.submit-button(type="submit", title="Sign in") Sign in
|
||||
|
||||
fieldset(tg-github-login-button)
|
||||
|
||||
|
|
|
@ -21,8 +21,7 @@ div.register-form-container(tg-register)
|
|||
placeholder="Set a password (case sensitive)")
|
||||
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-register.button-gray.submit-button(href="", title="Sign up") Sign up
|
||||
button.button-register.button-gray.submit-button(type="submit", title="Sign up") Sign up
|
||||
|
||||
fieldset(tg-github-login-button)
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ form
|
|||
fieldset.wizard-action
|
||||
div
|
||||
a.button-prev.button.button-gray(href="", title="Prev") Prev
|
||||
a.submit-button.button.button-green(href="", title="Create") Create
|
||||
button.button-green.submit-button(type="submit", title="Create") Create
|
||||
|
||||
button(type="submit", class="hidden")
|
||||
|
||||
|
|
|
@ -19,5 +19,4 @@ div.wrapper(tg-user-change-password, ng-controller="UserChangePasswordController
|
|||
label(for="retype-password") Retype Password
|
||||
input(type="password", placeholder="Retype Password", id="retype-password", ng-model="newPassword2")
|
||||
fieldset
|
||||
button(type="submit", class="hidden")
|
||||
a.button.button-green.submit-button(href="", title="Save") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
|
|
|
@ -49,8 +49,7 @@ div.wrapper(tg-user-profile, ng-controller="UserSettingsController as ctrl",
|
|||
ng-model="user.bio")
|
||||
|
||||
fieldset.submit
|
||||
button(type="submit", title="Save", class="hidden")
|
||||
a.button.button-green.save-profile.submit-button(href="") Save
|
||||
button.button-green.submit-button(type="submit", title="Save") Save
|
||||
a.delete-account(href="", title="Delete Taiga account",
|
||||
ng-click="ctrl.openDeleteLightbox()") Delete Taiga account
|
||||
|
||||
|
|
|
@ -17,8 +17,17 @@
|
|||
@extend %button;
|
||||
}
|
||||
|
||||
a.button-green {
|
||||
button {
|
||||
@extend %button;
|
||||
}
|
||||
|
||||
.submit-button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.button-green {
|
||||
background: $green-taiga;
|
||||
border: 0;
|
||||
color: $white;
|
||||
vertical-align: middle;
|
||||
&:hover,
|
||||
|
|
Loading…
Reference in New Issue