mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Media-picker work. Add the following to e107_config.php to enable and test. define('e_DEBUG_MEDIAPICKER', true);
This commit is contained in:
@@ -80,12 +80,18 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
// Ajax keyup search. Used by media-browser.
|
||||
$(context).find('.e-ajax-keyup').once('media-manager-e-ajax-keyup').each(function ()
|
||||
{
|
||||
|
||||
|
||||
$(this).keyup(function ()
|
||||
{
|
||||
|
||||
var that = this;
|
||||
|
||||
e107.callbacks.waitForFinalEvent(function ()
|
||||
{
|
||||
|
||||
$(that).closest('div').find('.media-carousel-index').text('1'); // reset counter when searching.
|
||||
|
||||
e107.mediaManager.eAjaxKeyUp(that);
|
||||
}, 300, "eAjaxKeyUp");
|
||||
});
|
||||
@@ -611,6 +617,8 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
var src = $this.attr("data-src");
|
||||
var search = $this.val();
|
||||
|
||||
|
||||
|
||||
if(search !== null)
|
||||
{
|
||||
search = search.replace('https://', 'url:');
|
||||
|
Reference in New Issue
Block a user