Announcement

Collapse
No announcement yet.

'Show More' button on search results

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 'Show More' button on search results

    Hello,

    Thanks for fixing the Show more button on global search results, however there is now a new bug. Clicking 'Show More' only add's 1 extra line each time, eventually filling the maximum size of the div and causing the Show More button to disappear.

    I would have a go at fixing this myself, however I'm not up to speed with the client side code yet. This is mostly due to the fact that without a functioning build environment for JS I'm unable to make changes successfully to the client side.

    Please upload your repo, with the build scripts / grunt files etc, and make use of issues / pull requests...

  • #2
    Hi

    It's not easy to fix because UNION query is not used there.

    BTW
    You can remove minified js and include in main.html all js files from client dir w/o files from sub dirs.
    Last edited by yuri; 09-12-2014, 06:15 PM.

    Comment


    • #3
      Ah right I was adding all the files in the subdir before in my gruntfile. I'll try just the main ones.

      Comment


      • #4
        As application starts there is a dependency on few js classes (located in src dir). After that other js files will be loaded as soon as they became needed.

        Comment


        • #5
          OK well yet more time spent on this....

          I source all the lib/*.js and then the src/*.js (only root dir) and after alot of trial and error, I have reduced the number of JS errors to 8.

          What order should the espo files be sourced?

          Here is my main.html http://sprunge.us/AiGF

          [I don't know why your build scripts are so top secret]

          Comment


          • #6
            Uncaught ReferenceError: Backbone is not defined controller.js:254
            Uncaught ReferenceError: Backbone is not defined language.js:126
            Uncaught ReferenceError: Backbone is not defined metadata.js:102
            Uncaught ReferenceError: Backbone is not defined model.js:194
            Uncaught ReferenceError: Backbone is not defined multi-collection.js:50
            Uncaught ReferenceError: Handlebars is not defined view-helper.js:200
            Uncaught TypeError: undefined is not a function (index):54
            GET http://espo.xxxxxx.co.uk/cl...rscore-min.map 404 (Not Found) (index):1
            GET http://espo.xxxxxx.co.uk/cl...-2.0.2.min.map 404 (Not Found) (index):1

            Comment


            • #7
              I forgout about libs

              Here is my html for dev
              PHP Code:
              <!doctype html>
              <
              html>
                  <
              head>
                      <
              title>EspoCRM</title>
                      <
              meta content="text/html;charset=utf-8" http-equiv="Content-Type">
                      <
              meta content="utf-8" http-equiv="encoding">
                      <
              meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
                      
                      <
              script type="text/javascript" src="client/lib/jquery-2.0.2.min.js"></script>
                      <
              script type="text/javascript" src="client/lib/underscore-min.js"></script>
                      <
              script type="text/javascript" src="client/lib/backbone-min.js"></script>
                      <
              script type="text/javascript" src="client/lib/handlebars.js"></script>
                      <
              script type="text/javascript" src="client/lib/base64.js"></script>
                      <
              script type="text/javascript" src="client/lib/jquery-ui.min.js"></script>
                      <
              script type="text/javascript" src="client/lib/moment.min.js"></script>
                      <
              script type="text/javascript" src="client/lib/moment-timezone-with-data.min.js"></script>
                      <
              script type="text/javascript" src="client/lib/jquery.timepicker.min.js"></script>
                      <
              script type="text/javascript" src="client/lib/jquery.autocomplete.js"></script>
                      <
              script type="text/javascript" src="client/lib/bootstrap.min.js"></script>
                      <
              script type="text/javascript" src="client/lib/bootstrap-datepicker.js"></script>
                      <
              script type="text/javascript" src="client/lib/bull.min.js"></script>      

                  
                      <
              script type="text/javascript" src="client/src/app.js"></script>
                      <
              script type="text/javascript" src="client/src/exceptions.js"></script>        
                      <
              script type="text/javascript" src="client/src/utils.js"></script>
                      <
              script type="text/javascript" src="client/src/storage.js"></script>
                      <
              script type="text/javascript" src="client/src/loader.js"></script>
                      <
              script type="text/javascript" src="client/src/pre-loader.js"></script>
                      <
              script type="text/javascript" src="client/src/ui.js"></script>        
                      <
              script type="text/javascript" src="client/src/acl.js"></script>
                  
                      <
              script type="text/javascript" src="client/src/model.js"></script>
                      <
              script type="text/javascript" src="client/src/model-offline.js"></script>
                      <
              script type="text/javascript" src="client/src/metadata.js"></script>
                      <
              script type="text/javascript" src="client/src/language.js"></script>
                      <
              script type="text/javascript" src="client/src/cache.js"></script>
                      <
              script type="text/javascript" src="client/src/controller.js"></script>
                      <
              script type="text/javascript" src="client/src/router.js"></script>
                      <
              script type="text/javascript" src="client/src/date-time.js"></script>
                      <
              script type="text/javascript" src="client/src/field-manager.js"></script>
                      <
              script type="text/javascript" src="client/src/search-manager.js"></script>
                  
                      <
              script type="text/javascript" src="client/src/collection.js"></script>
                      <
              script type="text/javascript" src="client/src/multi-collection.js"></script>    
                      <
              script type="text/javascript" src="client/src/view-helper.js"></script>
                      <
              script type="text/javascript" src="client/src/layout-manager.js"></script>
                      <
              script type="text/javascript" src="client/src/model-factory.js"></script>
                      <
              script type="text/javascript" src="client/src/collection-factory.js"></script>
                      
                      <
              script type="text/javascript" src="client/src/controllers/base.js"></script>
                  
                      <
              script type="text/javascript" src="client/src/models/settings.js"></script>
                      <
              script type="text/javascript" src="client/src/models/user.js"></script>
                      <
              script type="text/javascript" src="client/src/models/preferences.js"></script>    
                  
                      <
              script type="text/javascript" src="client/src/controllers/record.js"></script>    
                      <
              script type="text/javascript" src="client/src/controllers/role.js"></script>    
                      <
              script type="text/javascript" src="client/src/controllers/admin.js"></script>
                  
                      <
              script type="text/javascript" src="client/src/view.js"></script>
                  
                      <
              script type="text/javascript" src="client/src/views/base.js"></script>
                      <
              script type="text/javascript" src="client/src/views/login.js"></script>
                      
                      <
              link href="client/css/bootstrap.css" rel="stylesheet">
                      <
              link href="client/css/jquery.timepicker.css" rel="stylesheet">
                      <
              link href="client/css/datepicker.css" rel="stylesheet">
                      
                      <
              script type="text/javascript">
                          $(function () {
                              var 
              app = new Espo.App({
                                  
              useCachefalse,
                                  
              url'api/v1',
                              }, function (
              app) {
                                  
              app.start();
                              });            
                          });
                      </
              script>        
                  </
              head>
                  <
              body>
                      <
              div class="container content"></div>
                      <
              footer>
                          <
              class="credit small">&copy2014 <a href="http://www.espocrm.com" title="EspoCRM website" alt="Visit official EspoCRM website">EspoCRM</a></p>
                      </
              footer>
                  </
              body>
              </
              html

              Comment


              • #8
                Thanks Yuri I appreciate that. Got it working now

                Comment

                Working...
                X