By Edwin Cruz on Wednesday, 08 March 2017
Posted in General Issues
Likes 0
Views 127
Votes 0
Hello, good afternoon to all, someone who knows where these values are obtained, what are the methods that generate them and how can I call them to return the values, thank you very much.
- body class="site com_easysocial view-dashboard no-layout no-task itemid-124 DS018713846569999448"}
- <div class="es-navbar DS08045740493814437 wide" data-es-toolbar="">
and
-<div class="es-navbar__search DS06439922833603209" data-toolbar-search="">
Hi Edwin,

The value of DS 'directselector' actually come from this file:
/media/com_easysocial/scripts/vendors/mvc.js
in this condition:

if (!element.data("directSelector")) {
var selector = $.uid("DS");
element
.addClass(selector)
.data("directSelector", "." + selector);
}

You actually can add the attribute for example 'data-toolbar-test':

<div class="es-navbar__search <?php echo $this->isMobile() ? 't-hidden' : '';?>" data-toolbar-test>

and add the code below in the file:
/components/com_easysocial/themes/wireframe/toolbar/default.js


$('[data-toolbar-test]').implement(EasySocial.Controller.Search.Toolbar);

https://www.screencast.com/t/shFkXNwEsCGt
·
Wednesday, 08 March 2017 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much Muhammad Fadhli, That's exactly what i was looking for
·
Thursday, 09 March 2017 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 09 March 2017 01:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post