Skip to content

Commit

Permalink
JS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Sep 11, 2008
1 parent 8d6674c commit 2d9fa7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 3 additions & 4 deletions plugins/Ajax/htdocs/images/common.js
Expand Up @@ -12,7 +12,8 @@
;$(function(){
$.ajaxSetup({
url: '/ajax.pl',
type: 'POST'
type: 'POST',
contentType: 'application/x-www-form-urlencoded'
});
});

Expand Down Expand Up @@ -986,9 +987,7 @@ function ajax_update(request_params, id, handlers, options) {
}

var opts = {
data: request_params,
type: 'POST',
contentType: 'application/x-www-form-urlencoded'
data: request_params
};

if ( options.request_url ) {
Expand Down
9 changes: 3 additions & 6 deletions plugins/Ajax/htdocs/images/slash.sfnet.js
Expand Up @@ -9,12 +9,9 @@ SFX.init_slash_ui = function(){
for ( var i=0; i<arguments.length; ++i ) {
switch ( arguments[i] ) {
case 'd2':
$('.sd-d2-root').each(function(){
var $this = $(this);
var inner_url = $this.find('.sd-key-url').text() || window.location;
// pudge: more here --- fix up "outer" url
$this.load('http://... ..&url='+encodeURI(inner_url)+'&... ...');
});
var d2 = $('#sd-d2-root');
var inner_url = d2.find('.sd-key-url').text() || window.location;
d2.load('//sourceforge.net/slashdot/slashdot-it.pl?op=discuss&div=1&url='+encodeURI(inner_url));
break;
case 'tags':
$('.sd-tagui-root').tagui__build_sourceforge_ui('sfnet');
Expand Down

0 comments on commit 2d9fa7a

Please sign in to comment.