Skip to content

Commit

Permalink
fixed unterminated JS statements
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 17, 2010
1 parent 81322e6 commit 8cbef19
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions rating/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ M.core_rating={
},

submit_rating : function(e, selectnode){
var theinputs = selectnode.ancestor('form').all('.ratinginput')
var theinputs = selectnode.ancestor('form').all('.ratinginput');
var thedata = [];

var inputssize = theinputs.size();
Expand All @@ -26,7 +26,7 @@ M.core_rating={
thedata[theinputs.item(i).get("name")] = theinputs.item(i).get("value");
}
}

this.Y.io.queue.stop();
this.transaction.push({transaction:this.Y.io.queue(M.cfg.wwwroot+'/rating/rate_ajax.php', {
method : 'POST',
Expand All @@ -44,7 +44,7 @@ M.core_rating={
//if the user has access to the aggregate then update it
if (data.itemid) { //do not test data.aggregate or data.count otherwise it doesn't refresh value=0 or no value
var itemid = data.itemid;

var node = this.Y.one('#ratingaggregate'+itemid);
node.set('innerHTML',data.aggregate);

Expand Down Expand Up @@ -74,4 +74,4 @@ M.core_rating={
}),complete:false,outcome:null});
this.Y.io.queue.start();
}
}
};
22 changes: 11 additions & 11 deletions repository/filepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* this.active_repo.nologin
* this.active_repo.help
* this.active_repo.manage
*
*
* Server responses
* =====
* this.filelist, cached filelist
Expand All @@ -51,7 +51,7 @@ M.core_filepicker.active_filepicker = null;
*/
M.core_filepicker.show = function(Y, options) {
if (!M.core_filepicker.instances[options.client_id]) {
M.core_filepicker.init(Y, options);
M.core_filepicker.init(Y, options);
}
M.core_filepicker.instances[options.client_id].show();
};
Expand All @@ -62,7 +62,7 @@ M.core_filepicker.show = function(Y, options) {
M.core_filepicker.init = function(Y, options) {
var FilePickerHelper = function(options) {
FilePickerHelper.superclass.constructor.apply(this, arguments);
}
};

FilePickerHelper.NAME = "FilePickerHelper";
FilePickerHelper.ATTRS = {
Expand Down Expand Up @@ -183,7 +183,7 @@ M.core_filepicker.init = function(Y, options) {
icon = YAHOO.widget.SimpleDialog.ICON_ALARM;
}
if (!this.msg_dlg) {
this.msg_dlg = new YAHOO.widget.SimpleDialog(dlg_id,
this.msg_dlg = new YAHOO.widget.SimpleDialog(dlg_id,
{ width: "300px",
fixedcenter: true,
visible: true,
Expand Down Expand Up @@ -364,7 +364,7 @@ M.core_filepicker.init = function(Y, options) {
}
var filename_id = 'filname-link-'+client_id+'-'+String(count);
title.innerHTML += '<a href="###" id="'+filename_id+'" title="'+node.title+'"><span>'+filename+"</span></a>";


if(node.thumbnail_width){
grid.style.width = node.thumbnail_width+'px';
Expand All @@ -391,7 +391,7 @@ M.core_filepicker.init = function(Y, options) {
link.href='###';
link.id = 'img-id-'+client_id+'-'+String(count);
if(node.url) {
// hide
// hide
//grid.innerHTML += '<p><a target="_blank" href="'+node.url+'">'+M.str.repository.preview+'</a></p>';
}
link.appendChild(img);
Expand Down Expand Up @@ -574,7 +574,7 @@ M.core_filepicker.init = function(Y, options) {
elform.on('keydown', function(e) {
if (e.keyCode == 13) {
getfile.simulate('click');
e.preventDefault();
e.preventDefault();
}
}, this);
var cancel = Y.one('#fp-cancel-'+client_id);
Expand Down Expand Up @@ -900,7 +900,7 @@ M.core_filepicker.init = function(Y, options) {
popup_button.on('click', function(e){
M.core_filepicker.active_filepicker = this;
window.open(loginurl, 'repo_auth', 'location=0,status=0,width=500,height=300,scrollbars=yes');
e.preventDefault();
e.preventDefault();
}, this);
}
var elform = Y.one('#'+form_id);
Expand All @@ -914,7 +914,7 @@ M.core_filepicker.init = function(Y, options) {
login_button.simulate('click');
break;
}
e.preventDefault();
e.preventDefault();
}
}, this);

Expand Down Expand Up @@ -981,7 +981,7 @@ M.core_filepicker.init = function(Y, options) {
scope.viewbar.set('disabled', true);
scope.parse_repository_options(obj);
scope.create_upload_form(obj);

} else if (obj.iframe) {

} else if (obj.list) {
Expand Down Expand Up @@ -1041,7 +1041,7 @@ M.core_filepicker.init = function(Y, options) {
Y.one('#panel-'+client_id).appendChild(upload_form);
var scope = this;
Y.one('#'+id+'_action').on('click', function(e) {
e.preventDefault();
e.preventDefault();
var license = Y.one('#select-license-'+client_id).get('value');
YAHOO.util.Cookie.set('recentlicense', license);
if (!Y.one('#'+id+'_file').get('value')) {
Expand Down

0 comments on commit 8cbef19

Please sign in to comment.