Dotclear

Changeset 2559:2901695f9a58


Ignore:
Timestamp:
11/15/13 17:52:25 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.6
Message:

Fix issue ; options can be undefined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/meta-editor.js

    r2546 r2559  
    22function metaEditor(target,meta_field,meta_type,meta_options) { 
    33     this.target = target; 
    4  
    54     this.meta_field = meta_field; 
    65     this.meta_type = meta_type; 
     6 
     7     // options 
     8     meta_options = meta_options || {}; 
    79     this.meta_url = meta_options.meta_url || this.meta_url; 
    810     this.list_type = meta_options.list_type || this.list_type; 
     
    138140 
    139141     showMetaList: function(list_type,target) { 
    140  
    141142          var params = { 
    142143               f: 'getMeta', 
     
    180181                         a_more.append(This.text_all + String.fromCharCode(160)+String.fromCharCode(187)); 
    181182                         a_more.click(function() { 
    182                               This.showMetaList('more-all',target); 
     183                              This.showMetaList('all',target); 
    183184                              return false; 
    184185                         }); 
     
    186187                    } 
    187188 
    188                     if (list_type != 'more-all') { 
     189                    if (list_type == 'all') { 
    189190                         pl.addClass('hide'); 
    190191 
Note: See TracChangeset for help on using the changeset viewer.

Sites map