Touch ups

This commit is contained in:
Samuel Georges 2015-06-13 10:31:01 +10:00
parent 6420027a6a
commit 335fbe6106
4 changed files with 10 additions and 7 deletions

View File

@ -57,7 +57,11 @@
}
FileUpload.prototype.dispose = function() {
this.$el.off('click', '.upload-object.is-success', this.proxy(this.onClickSuccessObject))
this.$el.off('click', '.upload-object.is-error', this.proxy(this.onClickErrorObject))
this.$el.off('click', '.upload-remove-button', this.proxy(this.onRemoveObject))
this.$el.off('dispose-control', this.proxy(this.dispose))
this.$el.removeData('oc.fileUpload')

View File

@ -61,9 +61,9 @@
.info {
margin-left: 34px;
margin-right: 15%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
h4, p {
display: inline;
@ -88,7 +88,6 @@
top: 50%;
margin-top: -2px;
right: 5px;
}
.meta {

View File

@ -1,6 +1,6 @@
/*
* RecordFinder plugin
*
*
* Data attributes:
* - data-control="recordfinder" - enables the plugin on an element
* - data-option="value" - an option with a value
@ -8,7 +8,7 @@
* JavaScript API:
* $('a#someElement').recordFinder({ option: 'value' })
*
* Dependences:
* Dependences:
* - Some other plugin (filename.js)
*/

View File

@ -215,7 +215,7 @@ We already have a boilerplate code for jQuery code. Disposable controls approach
}
// Add this only if required
$(document).render(function(){
$(document).render(function (){
$('[data-some-disposable-control]').someDisposableControl()
})