Ignore:
Timestamp:
Oct 21, 2010, 11:35:20 PM (14 years ago)
Author:
grum
Message:

fix bug on the rbuilder and ajax initialization and enhance some template & css properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/js/criteriaBuilder.js

    r7312 r7327  
    33 * file: criteriaBuilder.js
    44 * file version: 1.1.0
    5  * date: 2010-05-01
     5 * date: 2010-10-21
    66 *
    77 * JS file provided by the piwigo's plugin "GrumPluginClasses"
     
    5656 * | 1.0.0   | 2010/04/27 | * start to coding
    5757 * |         |            |
    58  * | 1.1.0   | 2010/10/20 | * change ajax methods
     58 * | 1.1.0   | 2010/10/21 | * change ajax methods
     59 * |         |            |
     60 * |         |            | * fix bug : if there is no criteria, don't send
     61 * |         |            |   request
     62 * |         |            |
    5963 * |         |            |
    6064 * |         |            |
     
    8084          textAND:'AND',
    8185          textOR:'OR',
     86          textNoCriteria:'There is no criteria ! At least, one criteria is required to do search...',
    8287          textHint:'',
    8388          classGroup:'',
     
    554559
    555560  /**
    556    *
     561   * send the request to the server
    557562   *
    558563   */
    559564  var sendRequest = function()
    560565  {
     566    if(extraData.length==0)
     567    {
     568      alert(options.textNoCriteria);
     569      return(false);
     570    }
     571
    561572    datas=encodeURI('ajaxfct=public.rbuilder.searchExecute&requestName='+itemsId.container+'&'+getItems());
    562573    $.ajax(
     
    580591
    581592  /**
    582    *
     593   * get a result page from the server
    583594   *
    584595   */
Note: See TracChangeset for help on using the changeset viewer.