Browse Source

Url Too Long to be shortened (How ironic...) Alert is now a notification.

dev/git-series/gccdum
Rubén Rincón 6 years ago
parent
commit
3a41af0f55
  1. 3
      static/sharing.js
  2. 5
      static/urlshorten-google.js

3
static/sharing.js

@ -122,8 +122,7 @@ define(function (require) {
// the popover or on any alert
$(document).on('click.editable', function (e) {
var target = $(e.target);
if (!target.is(getLink) && getLink.has(target).length === 0 && target.closest('.popover').length === 0 &&
$('#alert').has(target).length === 0)
if (!target.is(getLink) && getLink.has(target).length === 0 && target.closest('.popover').length === 0)
getLink.popover("hide");
});
}

5
static/urlshorten-google.js

@ -52,7 +52,10 @@ define(function (require) {
}
done(id);
}, function () {
new Alert().alert('Could not shorten your URL', 'The current url probaly exceeds the Google Url Shortener length limits.');
new Alert().notify("The URL could not be shortened. It probaly exceeds the Google URL Shortener length limits.", {
group: "urltoolong",
alertClass: "notification-error"
});
done(url);
});
}

Loading…
Cancel
Save