Skip to content

Commit

Permalink
[build/dist][s]: build current.
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuspollock committed May 5, 2013
1 parent 5e9e7aa commit 773e03c
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 1,116 deletions.
73 changes: 0 additions & 73 deletions dist/recline.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,6 @@
opacity: 0.8 !important;
border: 1px solid #fdd !important;
}
.recline-graph .graph {
height: 500px;
}

.recline-graph .legend table {
width: auto;
margin-bottom: 0;
}

.recline-graph .legend td {
padding: 5px;
line-height: 13px;
}

.recline-graph .graph .alert {
width: 450px;
}

.flotr-mouse-value {
background-color: #FEE !important;
color: #000000 !important;
opacity: 0.8 !important;
border: 1px solid #fdd !important;
}

.flotr-legend {
border: none !important;
}

.flotr-legend-bg {
display: none;
}

.flotr-legend-color-box {
padding: 5px;
}
/**********************************************************
* (Data) Grid
*********************************************************/
Expand Down Expand Up @@ -653,40 +617,3 @@ classes should alter those!
.recline-timeline {
position: relative;
}
.recline-transform {
overflow: hidden;
}

.recline-transform .script textarea {
width: 100%;
height: 100px;
font-family: monospace;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

.recline-transform h2 {
margin-bottom: 10px;
}

.recline-transform h2 .okButton {
margin-left: 10px;
margin-top: -2px;
}

.expression-preview-parsing-status {
color: #999;
}

.expression-preview-parsing-status.error {
color: red;
}

.recline-transform .before-after .after {
font-style: italic;
}

.recline-transform .before-after .after.different {
font-weight: bold;
}
26 changes: 0 additions & 26 deletions dist/recline.dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,20 +159,6 @@ my.Dataset = Backbone.Model.extend({
return this._store.save(this._changes, this.toJSON());
},

transform: function(editFunc) {
var self = this;
if (!this._store.transform) {
alert('Transform is not supported with this backend: ' + this.get('backend'));
return;
}
this.trigger('recline:flash', {message: "Updating all visible docs. This could take a while...", persist: true, loader: true});
this._store.transform(editFunc).done(function() {
// reload data as records have changed
self.query();
self.trigger('recline:flash', {message: "Records updated successfully"});
});
},

// ### query
//
// AJAX method with promise API to get records from the backend.
Expand Down Expand Up @@ -829,18 +815,6 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
});
return facetResults;
};

this.transform = function(editFunc) {
var dfd = new Deferred();
// TODO: should we clone before mapping? Do not see the point atm.
self.records = _.map(self.records, editFunc);
// now deal with deletes (i.e. nulls)
self.records = _.filter(self.records, function(record) {
return record != null;
});
dfd.resolve();
return dfd.promise();
};
};

}(this.recline.Backend.Memory));
Loading

0 comments on commit 773e03c

Please sign in to comment.