Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed Jun 24, 2012
2 parents ba9c3c7 + 682a6a0 commit 7685a0b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions admin/css/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion admin/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ body.cms-dialog {
float:left;
position: relative;

label {
label {
position: absolute;
left: 8px;
top: 13px;
Expand Down Expand Up @@ -1491,6 +1491,12 @@ body.cms-dialog {
}
}
}

.loading button.add-url .ui-icon {
background-image: url(../images/throbber.gif);
background-position: 50% 50%;
background-repeat: no-repeat;
}
}

.cms-content-header{
Expand Down
12 changes: 7 additions & 5 deletions javascript/HtmlEditorField.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;

// TODO Depends on managed mime type
if(node.is('img')) {
this.showFileView(node.data('url') || node.attr('src'), function() {
this.showFileView(node.data('url') || node.attr('src')).complete(function() {
$(this).updateFromNode(node);
self.toggleCloseButton();
self.redraw();
Expand Down Expand Up @@ -811,7 +811,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;

item.addClass('loading');
this.find('.content-edit').append(item);
$.ajax({
return $.ajax({
// url: this.data('urlViewfile') + '?ID=' + id,
url: $.path.addSearchParams(this.attr('action').replace(/MediaForm/, 'viewfile'), params),
success: function(html, status, xhr) {
Expand Down Expand Up @@ -908,11 +908,13 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
},

onclick: function(e) {
var urlField = this.getURLField();
var urlField = this.getURLField(), container = this.closest('.CompositeField'), form = this.closest('form');

if (urlField.validate()) {
var form = this.closest('form');
form.showFileView('http://' + urlField.val());
container.addClass('loading');
form.showFileView('http://' + urlField.val()).complete(function() {
container.removeClass('loading');
});
form.redraw();
}

Expand Down

0 comments on commit 7685a0b

Please sign in to comment.