-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrey Petrash
committed
May 1, 2017
1 parent
f597e05
commit db9268c
Showing
10 changed files
with
115 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
function resizeSelect () { | ||
jQuery('select[id^=\'volley_bundle_facebundle_post_persons\']').select2entity({width: '100%'}) | ||
jQuery('select[id^=\'volley_bundle_facebundle_post_teams\']').select2entity({width: '100%'}) | ||
jQuery('li.select2-search').width('100%'); | ||
jQuery('input.select2-search__field').width('100%'); | ||
} | ||
|
||
jQuery(document).ready(function() { | ||
// datepicker | ||
jQuery('#volley_bundle_facebundle_post_published').datetimepicker({ | ||
//defaultDate:new Date(), | ||
format:'Y-m-d H:i:s' | ||
}); | ||
|
||
// select2 resize init and resize | ||
jQuery('a[href="#refs"]').on('click', function (event) { | ||
resizeSelect() | ||
}) | ||
jQuery('a[href="#refs"]').on('show.bs.tab', function (event) { | ||
resizeSelect() | ||
}) | ||
jQuery('a[href="#refs"]').on('shown.bs.tab', function (event) { | ||
resizeSelect() | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters