Skip to content

Commit

Permalink
add default remote URL with contrib json files
Browse files Browse the repository at this point in the history
See Benjol#6

This is the simplest possible step towards implementing per site
remotes. The only thing happening here is the current remotes field is
pre-populated with a pre-defined location baset on the current site that
has jsonp files setup. Only works for sites that have contrib entries
already setup.
  • Loading branch information
alerque committed Mar 10, 2014
1 parent 3063d11 commit bff92bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.properties
@@ -1,5 +1,6 @@
@ant-name@=AutoReviewComments
@ant-description@=No more re-typing the same comments over and over!
@ant-version@=1.3.3.1
@ant-version@=1.3.3.2
@ant-homepage@=https://github.com/Benjol/SE-AutoReviewComments
@ant-contrib-base@=https://raw.github.com/alerque/SE-AutoReviewComments/auto_site_remotes_devel/contrib
@ant-author@=Benjol
2 changes: 1 addition & 1 deletion src/autoreviewcomments.user.js
Expand Up @@ -399,7 +399,7 @@ with_jquery(function ($) {
var throbber = remote.find("#throbber1");

popup.find('.popup-actions-remote').click(function () {
urlfield.val(GetStorage("RemoteUrl"));
urlfield.val(GetStorage("RemoteUrl") || "@ant-contrib-base@/" + siteurl + ".jsonp");
autofield.prop('checked', GetStorage("AutoRemote") == 'true');
remote.show();
});
Expand Down

0 comments on commit bff92bd

Please sign in to comment.