Revision d78339e7

View differences:

src/sunstone/public/app/tabs/datastores-tab/datatable.js
154 154
        OpenNebulaDatastore.typeStr(element.TYPE),
155 155
        state,
156 156
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
157
        btoa(JSON.stringify(search))
157
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
158 158
    ];
159 159
  }
160 160
});
src/sunstone/public/app/tabs/hosts-tab/datatable.js
181 181
        element.VM_MAD,
182 182
        Humanize.prettyTime(element.LAST_MON_TIME),
183 183
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
184
        btoa(JSON.stringify(search))
184
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
185 185
    ];
186 186
  }
187 187

  
src/sunstone/public/app/tabs/images-tab/datatable-common.js
128 128
      element.RUNNING_VMS,
129 129
      element.TEMPLATE.TARGET ? element.TEMPLATE.TARGET : '--',
130 130
      (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
131
      btoa(JSON.stringify(search))
131
      btoa(unescape(encodeURIComponent(JSON.stringify(search))))
132 132
    ];
133 133
  }
134 134
});
src/sunstone/public/app/tabs/marketplaceapps-tab/datatable.js
154 154
        element.MARKETPLACE,
155 155
        zone,
156 156
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
157
        btoa(JSON.stringify(search))
157
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
158 158
    ];
159 159
  }
160 160

  
src/sunstone/public/app/tabs/marketplaces-tab/datatable.js
143 143
        element.MARKET_MAD,
144 144
        zone,
145 145
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
146
        btoa(JSON.stringify(search))
146
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
147 147
    ];
148 148
  }
149 149

  
src/sunstone/public/app/tabs/oneflow-services-tab/datatable.js
118 118
        element.NAME,
119 119
        state,
120 120
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
121
        btoa(JSON.stringify(search))
121
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
122 122
    ];
123 123
  }
124 124
});
src/sunstone/public/app/tabs/oneflow-templates-tab/datatable.js
112 112
        element.GNAME,
113 113
        element.NAME,
114 114
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
115
        btoa(JSON.stringify(search))
115
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
116 116
    ];
117 117
  }
118 118
});
src/sunstone/public/app/tabs/secgroups-tab/datatable.js
112 112
        element.GNAME,
113 113
        element.NAME,
114 114
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
115
        btoa(JSON.stringify(search))
115
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
116 116
    ];
117 117
  }
118 118
});
src/sunstone/public/app/tabs/templates-tab/datatable-common.js
120 120
        element.NAME,
121 121
        Humanize.prettyTime(element.REGTIME),
122 122
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
123
        btoa(JSON.stringify(search))
123
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
124 124
    ];
125 125
  }
126 126

  
src/sunstone/public/app/tabs/users-tab/datatable.js
163 163
      element.GID,
164 164
      hidden_template,
165 165
      (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
166
      btoa(JSON.stringify(search))
166
      btoa(unescape(encodeURIComponent(JSON.stringify(search))))
167 167
    ];
168 168
  }
169 169

  
src/sunstone/public/app/tabs/vms-tab/utils/datatable-common.js
126 126
      vncIcon,
127 127
      TemplateUtils.templateToString(element),
128 128
      (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
129
      btoa(JSON.stringify(search))
129
      btoa(unescape(encodeURIComponent(JSON.stringify(search))))
130 130
    ];
131 131
  }
132 132

  
src/sunstone/public/app/tabs/vnets-tab/datatable.js
155 155
      ProgressBar.html(element.USED_LEASES, total_size),
156 156
      element.VLAN_ID.length ? element.VLAN_ID : "-",
157 157
      (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
158
      btoa(JSON.stringify(search))
158
      btoa(unescape(encodeURIComponent(JSON.stringify(search))))
159 159
    ];
160 160
  }
161 161

  
src/sunstone/public/app/tabs/vrouters-tab/datatable.js
112 112
        element.GNAME,
113 113
        element.NAME,
114 114
        (LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
115
        btoa(JSON.stringify(search))
115
        btoa(unescape(encodeURIComponent(JSON.stringify(search))))
116 116
    ];
117 117
  }
118 118
});
src/sunstone/public/app/utils/tab-datatable.js
355 355
        }
356 356

  
357 357
        try {
358
          var values = JSON.parse(atob(data[that.searchColumn]));
358
          var values = JSON.parse( decodeURIComponent(escape(atob(data[that.searchColumn]))) );
359 359

  
360 360
          var match = true;
361 361

  
......
616 616

  
617 617
            if(that.searchColumn != undefined){
618 618
              try{
619
                var values = JSON.parse(atob(item[that.searchColumn]));
619
                var values = JSON.parse( decodeURIComponent(escape(atob(item[that.searchColumn]))) );
620 620

  
621 621
                that.searchFields.forEach(function(name){
622 622
                  that.searchSets[name].add(values[name]);

Also available in: Unified diff