Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix mantle save dialog

  • Loading branch information...
commit be0624702600fd69928c7bd2a97e9bb8c275f969 1 parent db8bce7
@pstoellberger pstoellberger authored
Showing with 12 additions and 8 deletions.
  1. +12 −8 js/saiku/plugins/BIServer/plugin.js
View
20 js/saiku/plugins/BIServer/plugin.js
@@ -49,14 +49,18 @@ var puc = {
var query = Saiku.tabs._tabs[0].content.query;
query.action.get("/xml", {
success: function(model, response) {
- (new SavedQuery({
- name: filename,
- newname: query.get('name'),
- xml: response.xml,
- solution: solution,
- path: path,
- action: filename,
- overwrite: overwrite
+ filename = filename
+ && filename.length > ".saiku".length
+ && filename.substring(filename.length - ".saiku".length,filename.length) == ".saiku" ? filename : filename + ".saiku";
+
+ var file = (solution ? (solution + "/") : "")
+ + (path ? (path + "/") : "")
+ + (filename || "");
+
+ (new SavedQuery({
+ name: filename,
+ file: file,
+ content: response.xml
})).save({ success: function() {
puc.refresh_repo();
}});
Please sign in to comment.
Something went wrong with that request. Please try again.