1
0
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:
Cameron
2018-07-25 20:28:30 -07:00
parent 9e50ae7d06
commit 557dea1f0e
7 changed files with 180 additions and 76 deletions

View File

@@ -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:');