Skip to content

Commit

Permalink
update select2 full version
Browse files Browse the repository at this point in the history
  • Loading branch information
fukata committed Dec 16, 2016
1 parent 7a8a99d commit 4e17a8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FpPostEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function loadUIScripts() {
wp_enqueue_script('jquery.md5', FlickrPress::getPluginUrl('js/jquery.md5.js'), array(), FlickrPress::VERSION);
wp_enqueue_script('jquery.flickr-client', FlickrPress::getPluginUrl('js/jquery.flickr-client.js'), array(), FlickrPress::VERSION);
wp_enqueue_script('wpfp', FlickrPress::getPluginUrl('js/media-views.js'), array('media-views'), false, FlickrPress::VERSION);
wp_enqueue_script('select2', FlickrPress::getPluginUrl('libs/select2/js/select2.min.js'), array(), FlickrPress::VERSION);
wp_enqueue_script('select2', FlickrPress::getPluginUrl('libs/select2/js/select2.full.min.js'), array(), FlickrPress::VERSION);
}

public static function loadJSBridgeParams() {
Expand Down
1 change: 1 addition & 0 deletions css/admin_post.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

.select2-container {
z-index: 9999999;
display: inline-block !important;
}
9 changes: 4 additions & 5 deletions js/media-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,16 +600,15 @@
initialize: function() {
console.log("view.FlickrPress.initialize");

this.createToolbar();
this.updateContent();
this.createSidebar();

this.model.set('wpfp_type', 'recent');
this.model.set('wpfp_sort', 'date-posted-desc');
this.model.set('wpfp_photoset', '');
this.model.set('wpfp_tag', '');
this.model.set('wpfp_keyword', '');
//this.collection.on( 'add remove reset', this.updateContent, this );

this.createToolbar();
this.updateContent();
this.createSidebar();

var that = this;
$(document).off('click', '#wpfp .result-container .result .photos > li')
Expand Down
3 changes: 3 additions & 0 deletions libs/select2/js/select2.full.min.js

Large diffs are not rendered by default.

0 comments on commit 4e17a8c

Please sign in to comment.