Skip to content

Commit

Permalink
project: Handle spaces in name when creating project
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Feb 22, 2017
1 parent 3f4b6e1 commit b71cd72
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions public/javascripts/service/yobi.project.New.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
/**
* Yobi, Project Hosting SW
*
* Copyright 2012 NAVER Corp.
* http://yobi.io
*
* @author Hwi Ahn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* Yona, 21st Century Project Hosting SW
* <p>
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**/
(function(ns){

var oNS = $yobi.createNamespace(ns);
Expand Down Expand Up @@ -78,6 +64,11 @@
htElement.welMenuSettingCode.on('click', _onClickMenuSettingCode);
htElement.welMenuSettingPullRequest.on('click', _onClickMenuSettingPullRequest);
htElement.welMenuSettingReview.on('click', _onClickMenuSettingReview);
htElement.welInputProjectName.on('focusout', _onFocusoutProjectName);
}

function _onFocusoutProjectName(){
htElement.welInputProjectName.val(htElement.welInputProjectName.val().trim().replace(/ /g, '-'));
}

function _onChangeRepoAuthCheck(){
Expand Down

0 comments on commit b71cd72

Please sign in to comment.