Corrected JS for new master js build updates [ci skip]
This commit is contained in:
parent
ddfd09c09c
commit
1fbc488668
|
@ -47,6 +47,7 @@ require('./behaviors/details_behavior');
|
|||
require('./behaviors/quick_submit');
|
||||
require('./behaviors/requires_input');
|
||||
require('./behaviors/toggler_behavior');
|
||||
require('./behaviors/bind_in_out');
|
||||
|
||||
// blob
|
||||
require('./blob/blob_ci_yaml');
|
||||
|
|
|
@ -41,8 +41,4 @@ class BindInOut {
|
|||
}
|
||||
}
|
||||
|
||||
const global = window.gl || (window.gl = {});
|
||||
|
||||
global.BindInOut = BindInOut;
|
||||
|
||||
module.exports = BindInOut;
|
||||
export default BindInOut;
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
/* global Labels */
|
||||
/* global Shortcuts */
|
||||
|
||||
import BindInOut from './behaviors/bind_in_out.js.es6';
|
||||
|
||||
const ShortcutsBlob = require('./shortcuts_blob');
|
||||
const UserCallout = require('./user_callout');
|
||||
|
||||
|
@ -217,7 +219,9 @@ const UserCallout = require('./user_callout');
|
|||
break;
|
||||
case 'groups:new':
|
||||
case 'admin:groups:new':
|
||||
gl.BindInOut.initAll();
|
||||
case 'groups:create':
|
||||
case 'admin:groups:create':
|
||||
BindInOut.initAll();
|
||||
case 'groups:new':
|
||||
case 'admin:groups:new':
|
||||
case 'groups:edit':
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
%strong= parent.full_path + '/'
|
||||
= f.text_field :path, placeholder: 'open-source', class: 'form-control',
|
||||
autofocus: local_assigns[:autofocus] || false, required: true,
|
||||
pattern: Gitlab::Regex::NAMESPACE_REGEX_STR_SIMPLE,
|
||||
pattern: Gitlab::Regex::NAMESPACE_REGEX_STR_JS,
|
||||
title: 'Please choose a group name with no special characters.',
|
||||
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
|
||||
- if parent
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const BindInOut = require('~/behaviors/bind_in_out');
|
||||
const ClassSpecHelper = require('../helpers/class_spec_helper');
|
||||
import BindInOut from '~/behaviors/bind_in_out.js.es6';
|
||||
import ClassSpecHelper from '../helpers/class_spec_helper.js.es6';
|
||||
|
||||
describe('BindInOut', function () {
|
||||
describe('.constructor', function () {
|
||||
|
|
Loading…
Reference in New Issue