{"size": 1109, "ext": "js", "max_stars_repo_path": "public/js/TagsCustom.js", "max_stars_repo_name": "geekyoperand/Talk-Dev", "max_stars_repo_stars_event_min_datetime": "2020-10-24T18:14:58.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-24T18:14:58.000Z", "max_issues_repo_path": "public/js/TagsCustom.js", "max_issues_repo_name": "geekyoperand/Talk-Dev", "max_issues_repo_issues_event_min_datetime": "2020-10-24T18:17:01.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T01:29:22.000Z", "max_forks_repo_path": "public/js/TagsCustom.js", "max_forks_repo_name": "geekyoperand/Talk-Dev", "max_forks_repo_forks_event_min_datetime": "2020-10-24T18:28:35.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-24T18:31:03.000Z"}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": 2, "avg_line_length": 27.725, "max_line_length": 86, "alphanum_fraction": 0.4896302976}
/* dependency helper validation.js file add this file after that any where you want */

if(vali.existDecument($('#createTagForm')))
{
  $('#createTagForm').submit(function(e){
       e.preventDefault();
       data = {};
       data.tagName = $('#tagInputField').val();
       $.ajax({
            type: 'POST',
            data : data,
            url: '/tag/createTagAdmin/',
            success: function (response) {
              $('#tagInputField').val('');
              if(response)
              {
                notie.alert({type: 1, text:'Saved', time: 2})
              }else{
                notie.alert({type: 3, text:'Tag already exist', time: 2})
              }

            },
            error: function (err) {
                notie.alert({type: 3, text:'Something went wrong!', time: 2})
            }
        });
  });
}
if(vali.existDecument($('#tagEditor')))
{
  $( "#tagEditor" ).select2({
    theme: "bootstrap",
    tags: true,
    placeholder: "Enter tag...",
    tokenSeparators: [',', ' '],
    containerCssClass: ':all:'
  });
}
$('.select2-search__field').css('width','100%')
