diff --git a/app/assets/images/glyphicons-halflings.png b/app/assets/images/glyphicons-halflings.png index 92d4445df..4f326e049 100644 Binary files a/app/assets/images/glyphicons-halflings.png and b/app/assets/images/glyphicons-halflings.png differ diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index 0601517fc..fa08b3381 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -110,7 +110,7 @@ class Index extends App.Controller @configure_attributes_ticket = [ { name: 'ticket_state_id', display: 'State', tag: 'select', multiple: false, null: true, relation: 'TicketState', default: 'new', class: 'span2', item_class: 'keepleft' }, - { name: 'ticket_priority_id', display: 'Priority', tag: 'select', multiple: false, null: true, relation: 'TicketPriority', default: '2 normal', class: 'span2', item_class: 'keepleft' }, + { name: 'ticket_priority_id', display: 'Priority', tag: 'select', multiple: false, null: true, relation: 'TicketPriority', default: '2 normal', class: 'span1', item_class: 'keepleft' }, { name: 'group_id', display: 'Group', tag: 'select', multiple: false, null: true, relation: 'Group', class: 'span2', item_class: 'keepleft' }, { name: 'owner_id', display: 'Owner', tag: 'select', multiple: false, null: true, relation: 'User', filter: @edit_form, nulloption: true, class: 'span2', item_class: 'keepleft' }, ] diff --git a/app/assets/javascripts/app/lib/fileuploader.js b/app/assets/javascripts/app/lib/fileuploader.js index b4eac37e4..6da5d90b3 100644 --- a/app/assets/javascripts/app/lib/fileuploader.js +++ b/app/assets/javascripts/app/lib/fileuploader.js @@ -485,8 +485,8 @@ qq.FileUploader = function(o){ listElement: null, template: '
' + - '
Drop files here to upload
' + - '
Upload a file
' + + '
Drop to attach files
' + + '
Attach files
' + '' + '
', @@ -549,7 +549,8 @@ qq.extend(qq.FileUploader.prototype, { }, _setupDragDrop: function(){ var self = this, - dropArea = this._find(this._element, 'drop'); + dropArea = this._find(this._element, 'drop'), + button = this._find(this._element, 'button'); var dz = new qq.UploadDropZone({ element: dropArea, @@ -565,6 +566,7 @@ qq.extend(qq.FileUploader.prototype, { }, onDrop: function(e){ dropArea.style.display = 'none'; + button.style.display = 'inline-block'; qq.removeClass(dropArea, self._classes.dropActive); self._uploadFileList(e.dataTransfer.files); } @@ -575,7 +577,8 @@ qq.extend(qq.FileUploader.prototype, { qq.attach(document, 'dragenter', function(e){ if (!dz._isValidFileDrag(e)) return; - dropArea.style.display = 'block'; + dropArea.style.display = 'block'; + button.style.display = 'none'; }); qq.attach(document, 'dragleave', function(e){ if (!dz._isValidFileDrag(e)) return; @@ -583,7 +586,8 @@ qq.extend(qq.FileUploader.prototype, { var relatedTarget = document.elementFromPoint(e.clientX, e.clientY); // only fire when leaving document out if ( ! relatedTarget || relatedTarget.nodeName == "HTML"){ - dropArea.style.display = 'none'; + dropArea.style.display = 'none'; + button.style.display = 'inline-block'; } }); }, diff --git a/app/assets/javascripts/app/views/agent_ticket_view.jst.eco b/app/assets/javascripts/app/views/agent_ticket_view.jst.eco index 6da495fa6..d2f0c68fb 100644 --- a/app/assets/javascripts/app/views/agent_ticket_view.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_view.jst.eco @@ -18,7 +18,7 @@ -