Skip to content

Commit

Permalink
reapply fixes that were reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Jan 24, 2015
1 parent dfad2c9 commit 87e14e1
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 26 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ env:
- secure: "fPRKgxcbSXyiLqkUjAjPkn5eGBqMqf6c5haTZ9x76sDl1792nDyiL2FXSpiv2s8PeOqMbWgcXly0r+CLXypYkWba9nIxb4bhvtXyDoYAaoBV0lG1NbBakuOwqW/u60WpPJS1qTqmEUSEbSxdntqk7HF1yG6MdMi3PdubxMyw9h0="
- secure: VFB17+mogAMLzk1RkwQo4qY8jgc8tD8lUWV6j2xtqDBG6gdkUl+mhuUm8ibbD910/kjQJc47FAHiZi4xrRW1vDmOizw7K48Fq+V180bf+2fAvAJNakI6Z4uuPcA7VnuRYoNfUPXAmWgtvMzgMAF+sXeV+jhgha6Kx02xj39LjD0=
- secure: lLMAD0VmG1/SpfuJKwOT9xn4lV1pUq71WszWjpF8TgxJfIgRBYLp9QkRTXQ6pfTwXTL22YSsc8N5yhJsALKV2V57Og6Pfta6jQqRIzJU6maIZBBLqW6LQThuazF6tmEcTpty1j1LdFf3tuNVchsbsii2eRhXNdIPXLjBliMJkuo=
- SAUCE_CONNECT_READY_FILE=/tmp/sauce-connect-ready
matrix:
- BROWSERS="SL_Chrome"
- BROWSERS="SL_Firefox"
Expand All @@ -25,14 +24,13 @@ install:
- git config --global user.name "Travis CI"
script:
- make test-once
- make bundles
- if [ "$TRAVIS_BRANCH" == "master" ]; then make test-ci; fi
- make docs
after_success:
- if [ "$BROWSERS" == "SL_Chrome,SL_Firefox" ]; then ./node_modules/.bin/lcov-result-merger "coverage/**/lcov.info" | ./node_modules/.bin/coveralls; fi
- if [ "$BROWSERS" == "SL_Chrome" ]; then ./node_modules/.bin/lcov-result-merger "coverage/**/lcov.info" | ./node_modules/.bin/coveralls; fi
matrix:
fast_finish: true
allow_failures:
- env: BROWSERS="SL_Firefox"
- env: BROWSERS="SL_IE_9"
- env: BROWSERS="SL_IE_10,SL_IE_11"
- env: BROWSERS="SL_Opera,SL_Safari"
Expand Down
8 changes: 4 additions & 4 deletions mockup/patterns/structure/js/views/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ define([
},
applyButtonClicked: function(e) {
var data = {
effectiveDate: this.effectivePickADate.$date.attr('value'),
effectiveTime: this.effectivePickADate.$time.attr('value'),
expirationDate: this.expirationPickADate.$date.attr('value'),
expirationTime: this.expirationPickADate.$time.attr('value'),
effectiveDate: this.effectivePickADate.$date.val(),
effectiveTime: this.effectivePickADate.$time.val(),
expirationDate: this.expirationPickADate.$date.val(),
expirationTime: this.expirationPickADate.$time.val(),
copyright: this.$copyright.val(),
contributors: JSON.stringify(this.$contributors.select2('data')),
creators: JSON.stringify(this.$creators.select2('data'))
Expand Down
2 changes: 1 addition & 1 deletion mockup/patterns/structure/js/views/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ define([
}

self.moment = new Moment(self.$el, {
selector: '.ModificationDate,.EffectiveDate,.CreationDate',
selector: '.ModificationDate,.EffectiveDate,.CreationDate,.ExpirationDate',
format: 'relative'
});
self.addReordering();
Expand Down
2 changes: 1 addition & 1 deletion mockup/patterns/structure/js/views/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ define([
} else {
relatedItems.$el.select2('data', [self.currentPathData.object]);
}
self.upload.currentPath = currentPath;
self.upload.setPath(currentPath);
}
}

Expand Down
1 change: 1 addition & 0 deletions mockup/patterns/structure/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ define([
availableColumns: {
'ModificationDate': _t('Last modified'),
'EffectiveDate': _t('Published'),
'ExpirationDate': _t('Expiration'),
'CreationDate': _t('Created'),
'review_state': _t('Review state'),
'Subject': _t('Tags'),
Expand Down
10 changes: 1 addition & 9 deletions mockup/patterns/structure/templates/tablerow.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<td class="selection"><input type="checkbox" <% if(selected){ %> checked="checked" <% } %>/></td>
<td class="title">
<a href="<%- getURL %>">
<% if(['File', 'Image'].indexOf(attributes.Type) !== -1){ %>
<span class="glyphicon glyphicon-file"></span>
<% } %>
<% if(attributes.is_folderish) { %>
<span class="glyphicon glyphicon-folder-open"></span>
<% } %>
<%- Title %>
</a>
<a href="<%- getURL %>" class="state-<%- review_state %> contenttype-<%- Type.toLowerCase() %>">
</td>
<% _.each(activeColumns, function(column){ %>
<% if(_.has(availableColumns, column)) { %>
Expand Down
6 changes: 3 additions & 3 deletions mockup/patterns/upload/less/pattern.upload.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
padding-top: 10px;
}
.previews{
margin-top: 2em;
.item{ padding: 5px 0; }
.title{ padding-left: 0; }
margin-top: 4em;
.item{ padding: 5px 0; clear: both;}
.title{ padding-left: 3px; }
.info img {
width: 32px;
height: 32px;
Expand Down
13 changes: 9 additions & 4 deletions mockup/patterns/upload/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ define([
return Math.round(mb / 1024) + ' GB';
},

setPath: function(path){
var self = this;
self.currentPath = path;
self.options.url = self.dropzone.options.url = self.getUrl();
},

setupRelatedItems: function($input) {
var self = this;
var options = self.options.relatedItems;
Expand All @@ -400,12 +406,11 @@ define([
var ri = new RelatedItems($input, options);
ri.$el.on('change', function() {
var result = $(this).select2('data');
var path = null;
if (result.length > 0){
self.currentPath = result[0].path;
} else {
self.currentPath = null;
path = result[0].path;
}
self.options.url = self.dropzone.options.url = self.getUrl();
self.setPath(path);
});
return ri;
}
Expand Down

1 comment on commit 87e14e1

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS PASSED
Mr.Roboto url : http://jenkins.plone.org/roboto/get_info?push=04a065528c614cc49e323d4668474fbf
plone-5.0-python-2.7 [SUCCESS]

Please sign in to comment.