Skip to content

Commit

Permalink
MDL-15350, search files in box.net repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Jul 14, 2008
1 parent 75e7a38 commit aa754fe
Show file tree
Hide file tree
Showing 6 changed files with 1,313 additions and 1,294 deletions.
9 changes: 7 additions & 2 deletions repository/ajax.php
Expand Up @@ -91,6 +91,7 @@ function openpicker(){
// 10px top/bottom padding applied to Panel body element. The top/bottom border width is 0
var panel = new YAHOO.widget.Panel('file-picker', {
draggable: true,
close: false,
underlay: 'none',
width: '510px',
xy: [100, 100]
Expand Down Expand Up @@ -190,8 +191,12 @@ function openpicker(){
})
var search = new YAHOO.util.Element('search');
search.on('click', function(e){
if(repositoryid==0){
alert('Select a repository first.');
return;
}
var data=window.prompt("What are you searching for?");
if(data != null || data != '') {
if(data != null && data != '') {
dosearch(data);
}
})
Expand Down Expand Up @@ -285,7 +290,7 @@ function print_login(){
try {
var ret = YAHOO.lang.JSON.parse(o.responseText);
} catch(e) {
alert(e);
alert('Invalid JSON String\n'+o.responseText);
}
datasource = ret;
if(datasource.l){
Expand Down

0 comments on commit aa754fe

Please sign in to comment.