Touch ups
This commit is contained in:
parent
6420027a6a
commit
335fbe6106
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue