rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return null;
hasPrevious : function () { if ($defined(this.data)) { if (this.index > 0) { return true; } else { return false; } } else { return null; } },
return "Sort the selected text.";
return "Sort the selected text or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; } else if (cmd == "rtrim") { return "Trims trailing whitespace from selection."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection."; }}
return "Remove duplicate lines from the selected text.";
return "Remove duplicate lines from the selected text or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; } else if (cmd == "rtrim") { return "Trims trailing whitespace from selection."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection."; }}
return "Sort the selected text in natural order.<br>"
return "Sort the selected text or whole document in natural order.<br>"
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; } else if (cmd == "rtrim") { return "Trims trailing whitespace from selection."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection."; }}
return "Trims trailing whitespace from selection.";
return "Trims trailing whitespace from selection or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; } else if (cmd == "rtrim") { return "Trims trailing whitespace from selection."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection."; }}
return "Trims leading whitespace from selection.";
return "Trims leading whitespace from selection or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; } else if (cmd == "rtrim") { return "Trims trailing whitespace from selection."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection."; }}
return "Trims leading and trailing whitespace from selection.";
return "Trims leading and trailing whitespace from selection or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; } else if (cmd == "rtrim") { return "Trims trailing whitespace from selection."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection."; }}
return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>"
return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" +
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and replace them with the" + "return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(l){return l.replace(/^\s+/, '');}'</code>"); }}
return i18n("Sort the selected text or whole document in natural order.<br>" +"Here is an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10");
return i18n("Sort the selected text or whole document in natural order.<br>Here is an example to show the difference to the normal sort method:<br>sort(a10, a1, a2) => a1, a10, a2<br>natsort(a10, a1, a2) => a1, a2, a10");
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here is an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'line.length > 0'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>"); } else if (cmd == "duplicateLinesUp") { return i18n("Duplicates the selected lines up."); } else if (cmd == "duplicateLinesDown") { return i18n("Duplicates the selected lines down."); }}
return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma.");
return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br><code>join ', '</code> will e.g. join lines and separate them by a comma.");
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here is an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'line.length > 0'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>"); } else if (cmd == "duplicateLinesUp") { return i18n("Duplicates the selected lines up."); } else if (cmd == "duplicateLinesDown") { return i18n("Duplicates the selected lines down."); }}
return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>");
return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and replace them with the return value of that callback.<br>Example (join selected lines):<br><code>each 'function(lines){return lines.join(\", \"}'</code><br>To save you some typing, you can also do this to achieve the same:<br><code>each 'lines.join(\", \")'</code>");
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here is an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'line.length > 0'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>"); } else if (cmd == "duplicateLinesUp") { return i18n("Duplicates the selected lines up."); } else if (cmd == "duplicateLinesDown") { return i18n("Duplicates the selected lines down."); }}
return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'line.length > 0'</code>");
return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and remove those where the callback returns false.<br>Example (see also <code>rmblank</code>):<br><code>filter 'function(l){return l.length > 0;}'</code><br>To save you some typing, you can also do this to achieve the same:<br><code>filter 'line.length > 0'</code>");
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here is an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'line.length > 0'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>"); } else if (cmd == "duplicateLinesUp") { return i18n("Duplicates the selected lines up."); } else if (cmd == "duplicateLinesDown") { return i18n("Duplicates the selected lines down."); }}
return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>");
return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and replace the line with the return value of the callback.<br>Example (see also <code>ltrim</code>):<br><code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>To save you some typing, you can also do this to achieve the same:<br><code>map 'line.replace(/^\s+/, \"\")'</code>");
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here is an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'line.length > 0'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>"); } else if (cmd == "duplicateLinesUp") { return i18n("Duplicates the selected lines up."); } else if (cmd == "duplicateLinesDown") { return i18n("Duplicates the selected lines down."); }}
return "Sort the selected text.";
return "Sort the selected text or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; }}
return "Remove duplicate lines from the selected text.";
return "Remove duplicate lines from the selected text or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; }}
return "Sort the selected text in natural order.<br>"
return "Sort the selected text or whole document in natural order.<br>"
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; }}
} else if (cmd == "rtrim") { return "Trims trailing whitespace from selection or whole document."; } else if (cmd == "ltrim") { return "Trims leading whitespace from selection or whole document."; } else if (cmd == "trim") { return "Trims leading and trailing whitespace from selection or whole document.";
function help(cmd){ if (cmd == "sort") { return "Sort the selected text."; } else if (cmd == "uniq") { return "Remove duplicate lines from the selected text."; } else if (cmd == "natsort") { return "Sort the selected text in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"; }}
"<code>filter 'l.length > 0'</code>");
"<code>filter 'line.length > 0'</code>");
function help(cmd){ if (cmd == "sort") { return i18n("Sort the selected text or whole document."); } else if (cmd == "moveLinesDown") { return i18n("Move selected lines down."); } else if (cmd == "moveLinesUp") { return i18n("Move selected lines up."); } else if (cmd == "uniq") { return i18n("Remove duplicate lines from the selected text or whole document."); } else if (cmd == "natsort") { return i18n("Sort the selected text or whole document in natural order.<br>" +"Here's an example to show the difference to the normal sort method:<br>" +"sort(a10, a1, a2) => a1, a10, a2<br>" +"natsort(a10, a1, a2) => a1, a2, a10"); } else if (cmd == "rtrim") { return i18n("Trims trailing whitespace from selection or whole document."); } else if (cmd == "ltrim") { return i18n("Trims leading whitespace from selection or whole document."); } else if (cmd == "trim") { return i18n("Trims leading and trailing whitespace from selection or whole document."); } else if (cmd == "join") { return i18n("Joins selected lines or whole document. Optionally pass a separator to put between each line:<br>" + "<code>join ', '</code> will e.g. join lines and separate them by a comma."); } else if (cmd == "rmblank") { return i18n("Removes empty lines from selection or whole document."); } else if (cmd == "unwrap") { return "Unwraps all paragraphs in the text selection, or the paragraph under the text cursor if there is no selected text."; } else if (cmd == "each") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines and" + "replace them with the return value of that callback.<br>" + "Example (join selected lines):<br>" + "<code>each 'function(lines){return lines.join(\", \"}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>each 'lines.join(\", \")'</code>"); } else if (cmd == "filter") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and remove those where the callback returns false.<br>" + "Example (see also <code>rmblank</code>):<br>" + "<code>filter 'function(l){return l.length > 0;}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>filter 'l.length > 0'</code>"); } else if (cmd == "map") { return i18n("Given a JavaScript function as argument, call that for the list of (selected) lines " + "and replace the line with the return value of the callback.<br>" + "Example (see also <code>ltrim</code>):<br>" + "<code>map 'function(line){return line.replace(/^\s+/, \"\");}'</code><br>" + "To save you some typing, you can also do this to achieve the same:<br>" + "<code>map 'line.replace(/^\s+/, \"\")'</code>"); }}
var anchorText = len == 0 ? $.i18n._('add a comment') : $.i18n._('comments') + ' (<b>' + len + "</b>)";
var anchorText = len === 0 ? $.i18n._('add a comment') : $.i18n._('comments') + ' (<b>' + len + "</b>)";
hide: function(id) { var jDiv = jDivInit(id); var len = jDiv.children("div.comments").children().length; var anchorText = len == 0 ? $.i18n._('add a comment') : $.i18n._('comments') + ' (<b>' + len + "</b>)"; jDiv.hide(); jDiv.siblings("a").unbind("click").click(function() { commentsFactory[objectType].show(id); }).html(anchorText); jDiv.children("div.comments").children().hide(); },
if (this.hideTimer) { window.clearTimeout(this.hideTimer); }
hide: function(e) { if (e) { if (this.visibleItem && this.visibleItem.eventInMenu) { if (this.visibleItem.eventInMenu(e)) { return; } } else if (this.eventInMenu(e)) { return; } } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] == this) { Jx.Menu.Menus[0] = null; } if (this.button && this.button.domA) { this.button.domA.removeClass(this.button.options.activeClass); } this.list.each(function(item){item.retrieve('jxMenuItem').hide(e);}); document.removeEvent('mousedown', this.bound.hide); document.removeEvent('keydown', this.bound.keypress); this.unstack(this.contentContainer); this.contentContainer.dispose(); this.visibleItem = null; this.fireEvent('hide', this); },
document.removeEvent('mousedown', this.hide); document.removeEvent('keydown', this.keypressHandler);
document.removeEvent('mousedown', this.bound.hide); document.removeEvent('keydown', this.bound.keypress);
hide: function(e) { if (e) { if (this.visibleItem && this.visibleItem.eventInMenu) { if (this.visibleItem.eventInMenu(e)) { return; } } else if (this.eventInMenu(e)) { return; } } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] == this) { Jx.Menu.Menus[0] = null; } if (this.button && this.button.domA) { this.button.domA.removeClass(this.button.options.activeClass); } this.list.each(function(item){item.retrieve('jxMenuItem').hide(e);}); document.removeEvent('mousedown', this.hide); document.removeEvent('keydown', this.keypressHandler); this.unstack(this.contentContainer); this.contentContainer.dispose(); this.visibleItem = null; this.fireEvent('hide', this); },
hide: function() {this.blur();},
hide: function() {this.blur.delay(1,this);},
hide: function() {this.blur();},
document.removeEvent('keydown', this.keypressWatcher); document.removeEvent('click', this.hideWatcher);
this.unstack(this.contentContainer); document.removeEvent('keydown', this.keypressHandler); document.removeEvent('click', this.clickHandler);
hide: function() { if (this.owner != document.body) { this.owner.currentFlyout = null; } Jx.Button.Flyout.Stack.pop(); this.setActive(false); this.contentContainer.dispose(); document.removeEvent('keydown', this.keypressWatcher); document.removeEvent('click', this.hideWatcher); this.fireEvent('close', this); },
}
},
hide: function() { this.button.setActive(false); Jx.Field.Color.ColorPalette.removeEvent('change', this.changed); Jx.Field.Color.ColorPalette.removeEvent('click', this.hide); this.button.hide(); Jx.Field.Color.ColorPalette.currentButton = null; }
this.unstack(this.contentContainer);
hide: function(e) { if (e) { if (this.visibleItem && this.visibleItem.eventInMenu) { if (this.visibleItem.eventInMenu(e)) { return; } } else if (this.eventInMenu(e)) { return; } } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] == this) { Jx.Menu.Menus[0] = null; } if (this.button && this.button.domA) { this.button.domA.removeClass(this.button.options.activeClass); } this.list.each(function(item){item.retrieve('jxMenuItem').hide(e);}); document.removeEvent('mousedown', this.bound.mousedown); document.removeEvent('keydown', this.bound.keypress); this.contentContainer.dispose(); this.visibleItem = null; this.fireEvent('hide', this); },
Jx.Dialog.Stack.erase(this); Jx.Dialog.ZIndex--;
hide : function() { Jx.Dialog.Stack.erase(this); Jx.Dialog.ZIndex--; this.domObj.setStyle('display','none'); if (this.options.modal && this.options.parent.unmask) { this.options.parent.unmask(); } },
this.unstack();
hide : function() { Jx.Dialog.Stack.erase(this); Jx.Dialog.ZIndex--; this.domObj.setStyle('display','none'); if (this.options.modal && this.options.parent.unmask) { this.options.parent.unmask(); } },
}})
}});
hide : function() { if (!this.visible) return; var self = this; n2i.ani(this.element,'opacity',0,200,{onComplete:function() { self.element.setStyle({'display':'none'}); }}) this.removeHider(); for (var i=0; i < this.subMenus.length; i++) { this.subMenus[i].hide(); }; this.visible = false; },
items.each( function(e) { e.className = "item hidden"; });
for (var i = 0; i < items.length; i++) items[i].className = "item hidden";
function hide_all(){ items = document.getElementsByClassName("item", "items"); items.each( function(e) { e.className = "item hidden"; });}
this.log("hide list");
hideList: function() { this.log("hide list"); if(!this.listVisible()) return; this.listWrapper.addClass(this.css.hidden); this.listItems.removeClass(this.css.hidden); },
runHook("hideObject", FBEFORE);
runHook("hideObject", FBEFORE, obj);
function hideObject(obj) { runHook("hideObject", FBEFORE); var theObj=(olNs4 ? obj : obj.style); if (olNs6 && olShowId>0) { clearTimeout(olShowId); olShowId=0; } theObj.visibility = 'hidden'; theObj.top = theObj.left = ((olIe4&&!olOp) ? 0 : -10000) + (!olNs4 ? 'px' : 0); if (o3_timerid > 0) clearTimeout(o3_timerid); if (o3_delayid > 0) clearTimeout(o3_delayid); o3_timerid = 0; o3_delayid = 0; self.status = ""; if (obj.onmouseout||obj.onmouseover) { if (olNs4) obj.releaseEvents(Event.MOUSEOUT || Event.MOUSEOVER); obj.onmouseout = obj.onmouseover = null; } runHook("hideObject", FAFTER);}
runHook("hideObject", FAFTER);
runHook("hideObject", FAFTER, obj);
function hideObject(obj) { runHook("hideObject", FBEFORE); var theObj=(olNs4 ? obj : obj.style); if (olNs6 && olShowId>0) { clearTimeout(olShowId); olShowId=0; } theObj.visibility = 'hidden'; theObj.top = theObj.left = ((olIe4&&!olOp) ? 0 : -10000) + (!olNs4 ? 'px' : 0); if (o3_timerid > 0) clearTimeout(o3_timerid); if (o3_delayid > 0) clearTimeout(o3_delayid); o3_timerid = 0; o3_delayid = 0; self.status = ""; if (obj.onmouseout||obj.onmouseover) { if (olNs4) obj.releaseEvents(Event.MOUSEOUT || Event.MOUSEOVER); obj.onmouseout = obj.onmouseover = null; } runHook("hideObject", FAFTER);}
if ((o3_x - winoffset) > (iwidth / 2)) {
if ((o3_x - winoffset) > (iwidth / 2) && o3_hpos == RIGHT && ((o3_x - winoffset) - (parsedWidth + o3_offsetx - iwidth > (iwidth - widthFix)))) {
function horizontalPlacement(browserWidth, horizontalScrollAmount, widthFix) { var placeX, iwidth=browserWidth, winoffset=horizontalScrollAmount; var parsedWidth = parseInt(o3_width); if (o3_fixx > -1 || o3_relx != null) { // Fixed position placeX=(o3_relx != null ? ( o3_relx < 0 ? winoffset +o3_relx+ iwidth - parsedWidth - widthFix : winoffset+o3_relx) : o3_fixx); } else { // If HAUTO, decide what to use. if (o3_hauto == 1) { if ((o3_x - winoffset) > (iwidth / 2)) { o3_hpos = LEFT; } else { o3_hpos = RIGHT; } } // From mouse if (o3_hpos == CENTER) { // Center placeX = o3_x+o3_offsetx-(parsedWidth/2); if (placeX < winoffset) placeX = winoffset; } if (o3_hpos == RIGHT) { // Right placeX = o3_x+o3_offsetx; if ((placeX+parsedWidth) > (winoffset+iwidth - widthFix)) { placeX = iwidth+winoffset - parsedWidth - widthFix; if (placeX < 0) placeX = 0; } } if (o3_hpos == LEFT) { // Left placeX = o3_x-o3_offsetx-parsedWidth; if (placeX < winoffset) placeX = winoffset; } // Snapping! if (o3_snapx > 1) { var snapping = placeX % o3_snapx; if (o3_hpos == LEFT) { placeX = placeX - (o3_snapx+snapping); } else { // CENTER and RIGHT placeX = placeX+(o3_snapx - snapping); } if (placeX < winoffset) placeX = winoffset; } } return placeX;}
} else {
} else if (o3_hpos == LEFT && ((o3_x - o3_offsetx - parsedWidth) < winoffset)) {
function horizontalPlacement(browserWidth, horizontalScrollAmount, widthFix) { var placeX, iwidth=browserWidth, winoffset=horizontalScrollAmount; var parsedWidth = parseInt(o3_width); if (o3_fixx > -1 || o3_relx != null) { // Fixed position placeX=(o3_relx != null ? ( o3_relx < 0 ? winoffset +o3_relx+ iwidth - parsedWidth - widthFix : winoffset+o3_relx) : o3_fixx); } else { // If HAUTO, decide what to use. if (o3_hauto == 1) { if ((o3_x - winoffset) > (iwidth / 2)) { o3_hpos = LEFT; } else { o3_hpos = RIGHT; } } // From mouse if (o3_hpos == CENTER) { // Center placeX = o3_x+o3_offsetx-(parsedWidth/2); if (placeX < winoffset) placeX = winoffset; } if (o3_hpos == RIGHT) { // Right placeX = o3_x+o3_offsetx; if ((placeX+parsedWidth) > (winoffset+iwidth - widthFix)) { placeX = iwidth+winoffset - parsedWidth - widthFix; if (placeX < 0) placeX = 0; } } if (o3_hpos == LEFT) { // Left placeX = o3_x-o3_offsetx-parsedWidth; if (placeX < winoffset) placeX = winoffset; } // Snapping! if (o3_snapx > 1) { var snapping = placeX % o3_snapx; if (o3_hpos == LEFT) { placeX = placeX - (o3_snapx+snapping); } else { // CENTER and RIGHT placeX = placeX+(o3_snapx - snapping); } if (placeX < winoffset) placeX = winoffset; } } return placeX;}
n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
"")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
return '<img src="'+ imce.getURL(fid) +'" width="'+ width +'" height="'+ height +'" alt="'+ imce.decode(fid) +'">';
return '<img src="'+ imce.getURL(fid) +'" width="'+ width +'" height="'+ height +'" alt="'+ imce.decodePlain(fid) +'">';
imgHtml: function (fid, width, height) { return '<img src="'+ imce.getURL(fid) +'" width="'+ width +'" height="'+ height +'" alt="'+ imce.decode(fid) +'">';},
if (onSuccessFn) onSuccessFn(r.getResult().Score);
if (onSuccessFn) onSuccessFn(r.Score);
incrementItemInSortedSet: function(id, item, incrementBy, onSuccessFn, onErrorFn) { this.gateway.getFromService('IncrementItemInSortedSet', { Id: id || null, Item: item || null, IncrementBy: incrementBy || '0' }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Score); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Value);
if (onSuccessFn) onSuccessFn(r.Value);
incrementValue: function(key, incrementBy, onSuccessFn, onErrorFn) { this.gateway.getFromService('IncrementValue', { Key: key || null, IncrementBy: incrementBy || '0' }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Value); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Value);
if (onSuccessFn) onSuccessFn(r.Value);
incrementValueInHash: function(id, key, incrementBy, onSuccessFn, onErrorFn) { this.gateway.getFromService('IncrementValueInHash', { Id: id || null, Key: key || null, IncrementBy: incrementBy || '0' }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Value); }, onErrorFn || RedisClient.errorFn); },
};
}
function indent(node, value) { var cell = $(node.children("td")[options.treeColumn]); cell[0].style.paddingLeft = getPaddingLeft(cell) + value + "px"; childrenOf(node).each(function() { indent($(this), value); }); };
var prevLine = line - 1;
var prevLine = line;
function indent(line, indentWidth, char){ var prevLine = line - 1; var prevLineString = " "; while (prevLine > 0 && prevLineString.match(/^\s+$/)) { prevLine--; prevLineString = document.line(prevLine); } var prevIndent = document.firstVirtualColumn(prevLine); var lineString = document.line(line); var alignOnly = (char == ""); if (alignOnly) { // XML might be all in one line, in which case we // want to break that up. var tokens = lineString.split(/>\s*</); if (tokens.length > 1) { var oldLine = line; var oldPrevIndent = prevIndent; for (var l in tokens) { var newLine = tokens[l]; if (l > 0) { newLine = '<' + newLine; } if (l < tokens.length - 1) { newLine += '>'; } if (newLine.match(/^\s*<\//)) { char = '/'; } else if (newLine.match(/\>[^<>]*$/)) { char = '>'; } else { char = '\n'; } var indentation = processChar(line, newLine, prevLineString, prevIndent, char, indentWidth); prevIndent = indentation; while (indentation > 0) { //TODO: what about tabs newLine = " " + newLine; --indentation; } ++line; prevLineString = newLine; tokens[l] = newLine; } dbg(tokens.join('\n')); document.editBegin(); document.removeLine(oldLine); document.insertText(oldLine, 0, tokens.join('\n')); document.editEnd(); return oldPrevIndent; } else { if (lineString.match(/^\s*<\//)) { char = '/'; } else if (lineString.match(/\>[^<>]*$/)) { char = '>'; } } } return processChar(line, lineString, prevLineString, prevIndent, char, indentWidth);}
while (prevLine > 0 && prevLineString.match(/^\s+$/)) {
while (prevLine >= 0 && prevLineString.match(/^\s+$/)) {
function indent(line, indentWidth, char){ var prevLine = line - 1; var prevLineString = " "; while (prevLine > 0 && prevLineString.match(/^\s+$/)) { prevLine--; prevLineString = document.line(prevLine); } var prevIndent = document.firstVirtualColumn(prevLine); var lineString = document.line(line); var alignOnly = (char == ""); if (alignOnly) { // XML might be all in one line, in which case we // want to break that up. var tokens = lineString.split(/>\s*</); if (tokens.length > 1) { var oldLine = line; var oldPrevIndent = prevIndent; for (var l in tokens) { var newLine = tokens[l]; if (l > 0) { newLine = '<' + newLine; } if (l < tokens.length - 1) { newLine += '>'; } if (newLine.match(/^\s*<\//)) { char = '/'; } else if (newLine.match(/\>[^<>]*$/)) { char = '>'; } else { char = '\n'; } var indentation = processChar(line, newLine, prevLineString, prevIndent, char, indentWidth); prevIndent = indentation; while (indentation > 0) { //TODO: what about tabs newLine = " " + newLine; --indentation; } ++line; prevLineString = newLine; tokens[l] = newLine; } dbg(tokens.join('\n')); document.editBegin(); document.removeLine(oldLine); document.insertText(oldLine, 0, tokens.join('\n')); document.editEnd(); return oldPrevIndent; } else { if (lineString.match(/^\s*<\//)) { char = '/'; } else if (lineString.match(/\>[^<>]*$/)) { char = '>'; } } } return processChar(line, lineString, prevLineString, prevIndent, char, indentWidth);}
dbg(line); dbg(lineString); dbg(prevLineString); dbg(prevIndent); dbg(char);
function indent(line, indentWidth, char){ var prevLine = line - 1; var prevLineString = " "; while (prevLine > 0 && prevLineString.match(/^\s+$/)) { prevLine--; prevLineString = document.line(prevLine); } var prevIndent = document.firstVirtualColumn(prevLine); var lineString = document.line(line); var alignOnly = (char == ""); if (alignOnly) { // XML might be all in one line, in which case we // want to break that up. var tokens = lineString.split(/>\s*</); if (tokens.length > 1) { var oldLine = line; var oldPrevIndent = prevIndent; for (var l in tokens) { var newLine = tokens[l]; if (l > 0) { newLine = '<' + newLine; } if (l < tokens.length - 1) { newLine += '>'; } if (newLine.match(/^\s*<\//)) { char = '/'; } else if (newLine.match(/\>[^<>]*$/)) { char = '>'; } else { char = '\n'; } var indentation = processChar(line, newLine, prevLineString, prevIndent, char, indentWidth); prevIndent = indentation; while (indentation > 0) { //TODO: what about tabs newLine = " " + newLine; --indentation; } ++line; prevLineString = newLine; tokens[l] = newLine; } dbg(tokens.join('\n')); document.editBegin(); document.removeLine(oldLine); document.insertText(oldLine, 0, tokens.join('\n')); document.editEnd(); return oldPrevIndent; } else { if (lineString.match(/^\s*<\//)) { char = '/'; } else if (lineString.match(/\>[^<>]*$/)) { char = '>'; } } } return processChar(line, lineString, prevLineString, prevIndent, char, indentWidth);}
filler = tryMatchedAnchor(line);
filler = tryMatchedAnchor(line, alignOnly);
function indentLine(line, alignOnly){ var firstChar = document.firstChar(line); var lastChar = document.lastChar(line); var filler = -1; if (filler == -1) filler = tryMatchedAnchor(line); if (filler == -1) filler = tryCComment(line); if (filler == -1 && !alignOnly) filler = tryCppComment(line); if (filler == -1) filler = trySwitchStatement(line); if (filler == -1) filler = tryAccessModifiers(line); if (filler == -1) filler = tryBrace(line); if (filler == -1) filler = tryCKeywords(line, firstChar == '{'); if (filler == -1) filler = tryCondition(line); if (filler == -1) filler = tryStatement(line); return filler;}
indexBioSequence : bsCheckBox.getValue()
indexBioSequence : bsCheckBox.getValue(), indexExperimentSet : eeSetCheckBox.getValue(), indexGeneSet : geneSetCheckBox.getValue()
function index(event) { var dh = Ext.DomHelper; var callParams = []; var commandObj = { indexAD : adCheckBox.getValue(), indexEE : eeCheckBox.getValue(), indexProbe : probeCheckBox.getValue(), indexBibRef : bibRefCheckBox.getValue(), indexGene : geneCheckBox.getValue(), indexBioSequence : bsCheckBox.getValue() }; callParams.push(commandObj); var delegate = handleIndexSuccess.createDelegate(this, [], true); var errorHandler = handleFailure.createDelegate(this, [], true); callParams.push({ callback : delegate, errorHandler : errorHandler }); // this should return quickly, with the task id. Ext.DomHelper.overwrite("messages", { tag : 'img', src : '/Gemma/images/default/tree/loading.gif' }); Ext.DomHelper.append("messages", "&nbsp;Submitting job..."); IndexService.index.apply(this, callParams);}
if (params.query) {
if ((params.termUri) && (params.termUri.length != 0)){ this.form.getForm().findField('query').setValue(params.termUri); } else if (params.query) {
init : function() { this.form = new Gemma.SearchForm({ renderTo : 'general-search-form' }); this.resultGrid = new Gemma.SearchGrid({ renderTo : 'search-results-grid', form : this.form }); this.form.on("search", this.search.createDelegate(this)); /* * Search from url if we have to. */ var url = document.URL; if (url.indexOf("?") > -1) { var sq = url.substr(url.indexOf("?") + 1); var params = Ext.urlDecode(sq); if (params.query) { this.form.getForm().findField('query').setValue(params.query); } if (params.scope) { if (params.scope.indexOf('E') > -1) { Ext.getCmp('search-exps-chkbx').setValue(true); } else { Ext.getCmp('search-exps-chkbx').setValue(false); } if (params.scope.indexOf('A') > -1) { Ext.getCmp('search-ars-chkbx').setValue(true); } else { Ext.getCmp('search-ars-chkbx').setValue(false); } if (params.scope.indexOf('P') > -1) { Ext.getCmp('search-prbs-chkbx').setValue(true); } else { Ext.getCmp('search-prbs-chkbx').setValue(false); } if (params.scope.indexOf('G') > -1) { Ext.getCmp('search-genes-chkbx').setValue(true); } else { Ext.getCmp('search-genes-chkbx').setValue(false); } if (params.scope.indexOf('S') > -1) { Ext.getCmp('search-seqs-chkbx').setValue(true); } else { Ext.getCmp('search-seqs-chkbx').setValue(false); } } this.search(); } },
$("#interestingTagAdd").click(function(){handlePickedTag(this,'good')}); $("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad')});
$("#interestingTagAdd").click(function(){handlePickedTag(this,'good');}); $("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad');});
init: function(){ collectPickedTags(); setupHideIgnoredQuestionsControl(); $("#interestingTagInput, #ignoredTagInput").autocomplete(tags, { minChars: 1, matchContains: true, max: 20, multiple: true, multipleSeparator: " ", formatItem: function(row, i, max) { return row.n + " ("+ row.c +")"; }, formatResult: function(row, i, max){ return row.n; } }); $("#interestingTagAdd").click(function(){handlePickedTag(this,'good')}); $("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad')}); }
this.bound.saveRecord = this.saveRecord.bind(this); this.bound.onComplete = this.onComplete.bind(this);
this.bound.save = this.saveRecord.bind(this); this.bound.completed = this.onComplete.bind(this);
init: function () { this.bound.saveRecord = this.saveRecord.bind(this); this.bound.onComplete = this.onComplete.bind(this); this.parent(); },
var c = this.columns[this.columns.length - 1 ]; if (c.options.renderMode === 'expand') { this.hasExpandable = true; }
init : function () { this.parent(); if ($defined(this.options.grid) && this.options.grid instanceof Jx.Grid) { this.grid = this.options.grid; } this.options.columns.each(function (col) { //check the column to see if it's a Jx.Grid.Column or an object if (col instanceof Jx.Column) { this.columns.push(col); } else if (Jx.type(col) === "object") { this.columns.push(new Jx.Column(col,this.grid)); } }, this); },
this.parent();
init: function () { this.selection = []; },
if (col instanceof Jx.Column) { this.columns.push(col); } else if (Jx.type(col) === "object") { col.grid = this.grid; this.columns.push(new Jx.Column(col)); }
if (col instanceof Jx.Column) { this.columns.push(col); } else if (Jx.type(col) === "object") { this.columns.push(new Jx.Column(col,this.grid)); }
init : function () { this.parent(); if ($defined(this.options.grid) && this.options.grid instanceof Jx.Grid) { this.grid = this.options.grid; } this.options.columns.each(function (col) { //check the column to see if it's a Jx.Grid.Column or an object if (col instanceof Jx.Column) { this.columns.push(col); } else if (Jx.type(col) === "object") { col.grid = this.grid; this.columns.push(new Jx.Column(col)); } }, this); },
if ($defined(this.options.formatter) && !(this.options.formatter instanceof Jx.Formatter)) { var t = Jx.type(this.options.formatter);
if ($defined(this.options.renderer) && !(this.options.renderer instanceof Jx.Grid.Renderer)) { var t = Jx.type(this.options.renderer);
init : function () { this.parent(); if ($defined(this.options.grid) && this.options.grid instanceof Jx.Grid) { this.grid = this.options.grid; } this.name = this.options.name; //we need to check the formatter if ($defined(this.options.formatter) && !(this.options.formatter instanceof Jx.Formatter)) { var t = Jx.type(this.options.formatter); if (t === 'object') { this.options.formatter = new Jx.Formatter[this.options.formatter.name]( this.options.formatter.options); } } },
this.options.formatter = new Jx.Formatter[this.options.formatter.name]( this.options.formatter.options);
this.options.renderer = new Jx.Grid.Renderer[this.options.renderer.name]( this.options.renderer.options);
init : function () { this.parent(); if ($defined(this.options.grid) && this.options.grid instanceof Jx.Grid) { this.grid = this.options.grid; } this.name = this.options.name; //we need to check the formatter if ($defined(this.options.formatter) && !(this.options.formatter instanceof Jx.Formatter)) { var t = Jx.type(this.options.formatter); if (t === 'object') { this.options.formatter = new Jx.Formatter[this.options.formatter.name]( this.options.formatter.options); } } },
this.options.renderer.setColumn(this);
init : function () { this.parent(); if ($defined(this.options.grid) && this.options.grid instanceof Jx.Grid) { this.grid = this.options.grid; } this.name = this.options.name; //we need to check the formatter if ($defined(this.options.formatter) && !(this.options.formatter instanceof Jx.Formatter)) { var t = Jx.type(this.options.formatter); if (t === 'object') { this.options.formatter = new Jx.Formatter[this.options.formatter.name]( this.options.formatter.options); } } },
if (this.options.useTemplate) {
if (this.options.useTemplate && $defined(this.store.getColumns())) {
init: function () { this.parent(); this.store = this.options.store; if (this.options.useTemplate) { this.columnsNeeded = this.store.parseTemplate(this.options.template); } },
if( $.pageless.settings.progress_id ){ element = $( "#"+$.escape($.pageless.settings.progress_id) ); offset = $.pageless.settings.progress_top ? (element.offset()['top']-(+$.pageless.settings.progress_top)) : element.offset()['top']; $(window).scrollTop( offset ); $.pageless.setProgress( element ); } else if ($.pageless.settings.progress){ $.pageless.setProgress( $( $.pageless.settings.progress ).eq(0) ); }
$.pageless.init = function(settings) { if ($.pageless.settings.inited) return; $.pageless.settings.inited = true; if (settings) $.extend($.pageless.settings, settings); // for accessibility we can keep pagination links // but since we have javascript enabled we remove pagination links if($.pageless.settings.pagination) $($.pageless.settings.pagination).remove(); // start the listener $.pageless.startListener(); if( $.pageless.settings.progress_id ){ // advance to the previous progress id set the progress element element = $( "#"+$.escape($.pageless.settings.progress_id) ); offset = $.pageless.settings.progress_top ? (element.offset()['top']-(+$.pageless.settings.progress_top)) : element.offset()['top']; $(window).scrollTop( offset ); $.pageless.setProgress( element ); } else if ($.pageless.settings.progress){ // set progress to the first element matching the 'progress' selector $.pageless.setProgress( $( $.pageless.settings.progress ).eq(0) ); } };
$(this).attr('src',scriptUrl + 'media/images/close-small-hover.png');
$(this).attr('src',mediaUrl('media/images/close-small-hover.png'));
init: function() { // Setup "show comments" clicks.. $("a[id^='comments-link-" + objectType + "-" + "']").unbind("click").click(function() { commentsFactory[objectType].show($(this).attr("id").substr(("comments-link-" + objectType + "-").length)); }); var cBox = $("[id^='comments-container-" + objectType + "']"); cBox.each( function(i){ var post_id = $(this).attr('id').replace('comments-container-' + objectType + '-', ''); $(this).children().each( function(i){ var comment_id = $(this).attr('id').replace('comment-',''); var delete_url = scriptUrl + objectType + 's/' + post_id + '/' + $.i18n._('comments/') + comment_id + '/' + $.i18n._('delete/'); var html = $(this).html(); var CommentsClass; if (objectType == 'question'){ CommentsClass = questionComments; } else if (objectType == 'answer') { CommentsClass = answerComments; } var delete_icon = $(this).find('img.delete-icon'); delete_icon.click(function(){CommentsClass.deleteComment($(this),comment_id,delete_url);}); delete_icon.unbind('mouseover').bind('mouseover', function(){ $(this).attr('src',scriptUrl + 'media/images/close-small-hover.png'); } ); delete_icon.unbind('mouseout').bind('mouseout', function(){ $(this).attr('src',scriptUrl + 'media/images/close-small.png'); } ); } ); }); },
$(this).attr('src',scriptUrl + 'media/images/close-small.png');
$(this).attr('src',mediaUrl('media/images/close-small.png'));
init: function() { // Setup "show comments" clicks.. $("a[id^='comments-link-" + objectType + "-" + "']").unbind("click").click(function() { commentsFactory[objectType].show($(this).attr("id").substr(("comments-link-" + objectType + "-").length)); }); var cBox = $("[id^='comments-container-" + objectType + "']"); cBox.each( function(i){ var post_id = $(this).attr('id').replace('comments-container-' + objectType + '-', ''); $(this).children().each( function(i){ var comment_id = $(this).attr('id').replace('comment-',''); var delete_url = scriptUrl + objectType + 's/' + post_id + '/' + $.i18n._('comments/') + comment_id + '/' + $.i18n._('delete/'); var html = $(this).html(); var CommentsClass; if (objectType == 'question'){ CommentsClass = questionComments; } else if (objectType == 'answer') { CommentsClass = answerComments; } var delete_icon = $(this).find('img.delete-icon'); delete_icon.click(function(){CommentsClass.deleteComment($(this),comment_id,delete_url);}); delete_icon.unbind('mouseover').bind('mouseover', function(){ $(this).attr('src',scriptUrl + 'media/images/close-small-hover.png'); } ); delete_icon.unbind('mouseout').bind('mouseout', function(){ $(this).attr('src',scriptUrl + 'media/images/close-small.png'); } ); } ); }); },
if(!$defined(this.options.renderer.options.textTemplate)) { this.options.renderer.options.textTemplate = '{' + this.name + '}'; } if(!$defined(this.options.renderer.name)) { this.options.renderer.name = 'Text'; }
init : function () { this.name = this.options.name; //adjust header for column if (!$defined(this.options.template)) { this.options.template = '<span class="jxGridCellContent">' + this.name.capitalize() + '</span>'; } this.parent(); if ($defined(this.options.grid) && this.options.grid instanceof Jx.Grid) { this.grid = this.options.grid; } //check renderer if (!$defined(this.options.renderer)) { //set a default renderer this.options.renderer = new Jx.Grid.Renderer.Text({ textTemplate: '{' + this.name + '}' }); } else { if (!(this.options.renderer instanceof Jx.Grid.Renderer)) { var t = Jx.type(this.options.renderer); if (t === 'object') { this.options.renderer = new Jx.Grid.Renderer[this.options.renderer.name.capitalize()]( this.options.renderer.options); } } } this.options.renderer.setColumn(this); this.sortImg = new Element('img', { src: Jx.aPixel.src }); },
firstInitDone = true;
this.firstInitDone = true;
init : function() { if (this.grid) { try { this.grid.destroy(); } catch (e) { } } firstInitDone = true; ExperimentalDesignController.getBioMaterials(this.expressionExperiment, this.firstCallback .createDelegate(this)); }
this.parent();
init: function () { this.parent(); this.bound.saveRecord = this.saveRecord.bind(this); this.bound.onComplete = this.onComplete.bind(this); },
this.parent();
init: function () { this.parent(); this.bound.saveRecord = this.saveRecord.bind(this); this.bound.onComplete = this.onComplete.bind(this); },
this.columnsNeeded = this.parseTemplate();
this.columnsNeeded = this.store.parseTemplate(this.options.template);
init: function () { this.parent(); this.store = this.options.store; if (this.options.useTemplate) { this.columnsNeeded = this.parseTemplate(); } },
* FIXME: why isn't this using restoreState method?
init : function() { this.form = new Gemma.SearchForm({ renderTo : 'general-search-form' }); this.resultGrid = new Gemma.SearchGrid({ renderTo : 'search-results-grid', form : this.form }); this.form.on("search", this.search.createDelegate(this)); /* * Search from url if we have to. * FIXME: why isn't this using restoreState method? */ var url = document.URL; if (url.indexOf("?") > -1) { var sq = url.substr(url.indexOf("?") + 1); var params = Ext.urlDecode(sq); if ((params.termUri) && (params.termUri.length != 0)){ this.form.getForm().findField('query').setValue(params.termUri); } else if (params.query) { this.form.getForm().findField('query').setValue(params.query); } if (params.scope) { if (params.scope.indexOf('E') > -1) { Ext.getCmp('search-exps-chkbx').setValue(true); } else { Ext.getCmp('search-exps-chkbx').setValue(false); } if (params.scope.indexOf('A') > -1) { Ext.getCmp('search-ars-chkbx').setValue(true); } else { Ext.getCmp('search-ars-chkbx').setValue(false); } if (params.scope.indexOf('P') > -1) { Ext.getCmp('search-prbs-chkbx').setValue(true); } else { Ext.getCmp('search-prbs-chkbx').setValue(false); } if (params.scope.indexOf('G') > -1) { Ext.getCmp('search-genes-chkbx').setValue(true); } else { Ext.getCmp('search-genes-chkbx').setValue(false); } if (params.scope.indexOf('S') > -1) { Ext.getCmp('search-seqs-chkbx').setValue(true); } else { Ext.getCmp('search-seqs-chkbx').setValue(false); } } this.search(); } },
var url = document.URL; if (url.indexOf("?") > -1) { var sq = url.substr(url.indexOf("?") + 1); var params = Ext.urlDecode(sq); if ((params.termUri) && (params.termUri.length != 0)){ this.form.getForm().findField('query').setValue(params.termUri); } else if (params.query) { this.form.getForm().findField('query').setValue(params.query); } if (params.scope) { if (params.scope.indexOf('E') > -1) { Ext.getCmp('search-exps-chkbx').setValue(true); } else { Ext.getCmp('search-exps-chkbx').setValue(false); } if (params.scope.indexOf('A') > -1) { Ext.getCmp('search-ars-chkbx').setValue(true); } else { Ext.getCmp('search-ars-chkbx').setValue(false); } if (params.scope.indexOf('P') > -1) { Ext.getCmp('search-prbs-chkbx').setValue(true); } else { Ext.getCmp('search-prbs-chkbx').setValue(false); } if (params.scope.indexOf('G') > -1) { Ext.getCmp('search-genes-chkbx').setValue(true); } else { Ext.getCmp('search-genes-chkbx').setValue(false); } if (params.scope.indexOf('S') > -1) { Ext.getCmp('search-seqs-chkbx').setValue(true); } else { Ext.getCmp('search-seqs-chkbx').setValue(false); } } this.search();
if (this.form.restoreState()){ this.search();
init : function() { this.form = new Gemma.SearchForm({ renderTo : 'general-search-form' }); this.resultGrid = new Gemma.SearchGrid({ renderTo : 'search-results-grid', form : this.form }); this.form.on("search", this.search.createDelegate(this)); /* * Search from url if we have to. * FIXME: why isn't this using restoreState method? */ var url = document.URL; if (url.indexOf("?") > -1) { var sq = url.substr(url.indexOf("?") + 1); var params = Ext.urlDecode(sq); if ((params.termUri) && (params.termUri.length != 0)){ this.form.getForm().findField('query').setValue(params.termUri); } else if (params.query) { this.form.getForm().findField('query').setValue(params.query); } if (params.scope) { if (params.scope.indexOf('E') > -1) { Ext.getCmp('search-exps-chkbx').setValue(true); } else { Ext.getCmp('search-exps-chkbx').setValue(false); } if (params.scope.indexOf('A') > -1) { Ext.getCmp('search-ars-chkbx').setValue(true); } else { Ext.getCmp('search-ars-chkbx').setValue(false); } if (params.scope.indexOf('P') > -1) { Ext.getCmp('search-prbs-chkbx').setValue(true); } else { Ext.getCmp('search-prbs-chkbx').setValue(false); } if (params.scope.indexOf('G') > -1) { Ext.getCmp('search-genes-chkbx').setValue(true); } else { Ext.getCmp('search-genes-chkbx').setValue(false); } if (params.scope.indexOf('S') > -1) { Ext.getCmp('search-seqs-chkbx').setValue(true); } else { Ext.getCmp('search-seqs-chkbx').setValue(false); } } this.search(); } },
this.loadMask = new Ext.LoadMask(Ext.getBody(), { msg : "Please wait..." }); this.loadMask.show();
this.loadMask = new Ext.LoadMask(loadMaskTarget, { msg : "Please wait..." });
init : function() { this.loadMask = new Ext.LoadMask(Ext.getBody(), { msg : "Please wait..." }); this.loadMask.show(); if (this.grid) { try { this.grid.destroy(); } catch (e) { } } this.firstInitDone = true; ExperimentalDesignController.getBioMaterials(this.expressionExperiment, this.firstCallback .createDelegate(this)); }
if (this.grid) { try { this.grid.destroy(); } catch (e) { }
this.loadMask.show(); ExperimentalDesignController.getBioMaterials(this.expressionExperiment, this.firstCallback .createDelegate(this));
init : function() { this.loadMask = new Ext.LoadMask(Ext.getBody(), { msg : "Please wait..." }); this.loadMask.show(); if (this.grid) { try { this.grid.destroy(); } catch (e) { } } this.firstInitDone = true; ExperimentalDesignController.getBioMaterials(this.expressionExperiment, this.firstCallback .createDelegate(this)); }
this.firstInitDone = true; ExperimentalDesignController.getBioMaterials(this.expressionExperiment, this.firstCallback .createDelegate(this)); }
init : function() { this.loadMask = new Ext.LoadMask(Ext.getBody(), { msg : "Please wait..." }); this.loadMask.show(); if (this.grid) { try { this.grid.destroy(); } catch (e) { } } this.firstInitDone = true; ExperimentalDesignController.getBioMaterials(this.expressionExperiment, this.firstCallback .createDelegate(this)); }
this.bound.select = this.select.bind(this);
init: function() { this.parent(); this.bound.select = this.select.bind(this); },
updateSharingGroupCheckboxes(getActiveGroup());
var groupId = getActiveGroup(); if(groupId){ updateSharingGroupCheckboxes(); }
function initCollectionTree() { var dynaTree = $('#collection-tree-tree'); var treeDiv = $('#collection-tree-main').css('display', 'none'); dynaTree.dynatree({ persist: true, rootVisible: false, initAjax: {url: "collections.xql" }, onActivate: function (dtnode) { var title = dtnode.data.title; var key = dtnode.data.key; updateCollectionPaths(title, key); showHideCollectionWriteableControls(); showHideCollectionOwnerControls(); updateSharingGroupCheckboxes(getActiveGroup()); updateSharingOtherCheckboxes();// form.submit(); } }); $('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); } }); $('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false; }); $('#collection-collapse-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(false); }); return false; }); $('#collection-reload').click(function () { $("#collection-tree-tree").dynatree("getRoot").reload(); return false; });}
updateSharingGroupCheckboxes();
updateSharingGroupCheckboxes(groupId);
function initCollectionTree() { var dynaTree = $('#collection-tree-tree'); var treeDiv = $('#collection-tree-main').css('display', 'none'); dynaTree.dynatree({ persist: true, rootVisible: false, initAjax: {url: "collections.xql" }, onActivate: function (dtnode) { var title = dtnode.data.title; var key = dtnode.data.key; updateCollectionPaths(title, key); showHideCollectionWriteableControls(); showHideCollectionOwnerControls(); var groupId = getActiveGroup(); if(groupId){ updateSharingGroupCheckboxes(); } updateSharingOtherCheckboxes();// form.submit(); } }); $('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); } }); $('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false; }); $('#collection-collapse-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(false); }); return false; }); $('#collection-reload').click(function () { $("#collection-tree-tree").dynatree("getRoot").reload(); return false; });}
field : "name", dir : "ASC"
field : "size", dir : "DESC"
initComponent : function() { var template = new Ext.XTemplate('<tpl for="."><div style="font-size:11px" class="x-combo-list-item" ext:qtip="{name} ({size})"> {name} - {description} ({size})</div></tpl>'); Ext.apply(this, { tpl : template, store : new Gemma.GeneGroupStore({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByName), sortInfo : { field : "name", dir : "ASC" }, autoLoad : false }) }); Gemma.GeneGroupCombo.superclass.initComponent.call(this); this.on('select', this.setGeneGroup, this); },
if (this.prepopulate) { this.on('focus', function() { GeneSetController.getUsersGeneGroups(false, function(records) { this.store.loadData(records); }.createDelegate(this)); }.createDelegate(this), this, { scope : this, single : true }); }
initComponent : function() { var template = new Ext.XTemplate('<tpl for="."><div style="font-size:11px" class="x-combo-list-item" ext:qtip="{name} ({size})"> {name} - {description} ({size})</div></tpl>'); Ext.apply(this, { tpl : template, store : new Gemma.GeneGroupStore({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByName), sortInfo : { field : "name", dir : "ASC" }, autoLoad : false }) }); Gemma.GeneGroupCombo.superclass.initComponent.call(this); this.on('select', this.setGeneGroup, this); },
this.geneChooserPanel = new Gemma.GeneGrid({ region : 'east', id : 'gene-chooser-panel' });
Gemma.GeneGroupGrid.superclass.initComponent.call(this);
initComponent : function() { this.geneChooserPanel = new Gemma.GeneGrid({ region : 'east', id : 'gene-chooser-panel' }); this.geneGroupPanel = new Gemma.GeneGroupPanel({ id : 'gene-group-panel', region : 'center' }); Ext.apply(this.geneChooserPanel.getTopToolbar().taxonCombo, { stateId : "", stateful : false, stateEvents : [] }); Ext.apply(this, { layout : 'border', // width : "100%", height : 400, title : "Gene Group Manager", tbar : { items : [{ tooltip : "Create New Group", icon : "/Gemma/images/icons/group_add.png", id : 'geneimportgroup-save-btn', handler : function(b, e) { Ext.Msg.prompt('New Group', 'Please enter the group name:', function(btn, text) { if (btn == 'ok') { GeneSetController.createGeneGroup(text, [], { callback : function(groupId) { var genePanel = Ext .getCmp('gene-chooser-panel'); genePanel.currentGroupId = null; genePanel.loadGenes([]); refreshGeneGroupData(groupId); genePanel.getTopToolbar().geneCombo.focus(); }, errorHandler : function(e) { Ext.Msg.alert('Sorry', e); } }); } }); } }, { tooltip : "Save changes", icon : "/Gemma/images/icons/database_save.png", id : 'manager-data-panel-save-btn', handler : function(b, e) { var rec = Ext.getCmp("gene-group-panel").getSelectionModel().getSelected(); if (rec) { // update description field if necessary // console.log(rec.data.description); // Update the genes incase they changed also. Can // only update the genes for 1 list. var loadMask = new Ext.LoadMask(Ext.getCmp("gene-group-panel").getEl(), { msg : "Saving changes..." }); loadMask.show(); var geneIds = Ext.getCmp("gene-chooser-panel").getGeneIds(); GeneSetController.updateGeneGroup(rec.data.id, rec.data.description, geneIds, { callback : function(d) { // so that system doesn't ask to save again Ext.getCmp('gene-chooser-panel').currentGroupId = null; refreshGeneGroupData(); loadMask.hide() }, errorHandler : function(e) { Ext.Msg.alert('Sorry', e); } }); } } }, { tooltip : "Refresh from the database", icon : "/Gemma/images/icons/arrow_refresh_small.png", handler : function() { refreshGeneGroupData(); } }, { tooltip : "Show/hide public data", id : "geneGroupData-show-public", enableToggle : true, icon : "/Gemma/images/icons/world_add.png", handler : function() { refreshGeneGroupData(); } }, { icon : "/Gemma/images/icons/group_delete.png", tooltip : "Delete a group", handler : function() {deleteGeneGroup();} }] },// toolbar items : [this.geneGroupPanel, this.geneChooserPanel] }); Gemma.GeneGroupImporter.superclass.initComponent.call(this); this.geneGroupPanel.on("keypress", function(e) { if (e.getCharCode() == Ext.EventObject.DELETE) { deleteGeneGroup(); } }, this); refreshGeneGroupData(); }
this.geneGroupPanel = new Gemma.GeneGroupPanel({ id : 'gene-group-panel', region : 'center' }); Ext.apply(this.geneChooserPanel.getTopToolbar().taxonCombo, { stateId : "", stateful : false, stateEvents : [] }); Ext.apply(this, { layout : 'border', height : 400, title : "Gene Group Manager", tbar : { items : [{ tooltip : "Create New Group", icon : "/Gemma/images/icons/group_add.png", id : 'geneimportgroup-save-btn', handler : function(b, e) { Ext.Msg.prompt('New Group', 'Please enter the group name:', function(btn, text) { if (btn == 'ok') { GeneSetController.createGeneGroup(text, [], { callback : function(groupId) { var genePanel = Ext .getCmp('gene-chooser-panel'); genePanel.currentGroupId = null; genePanel.loadGenes([]); refreshGeneGroupData(groupId); genePanel.getTopToolbar().geneCombo.focus(); }, errorHandler : function(e) { Ext.Msg.alert('Sorry', e); } }); } }); } }, { tooltip : "Save changes", icon : "/Gemma/images/icons/database_save.png", id : 'manager-data-panel-save-btn', handler : function(b, e) { var rec = Ext.getCmp("gene-group-panel").getSelectionModel().getSelected(); if (rec) { var loadMask = new Ext.LoadMask(Ext.getCmp("gene-group-panel").getEl(), { msg : "Saving changes..." }); loadMask.show(); var geneIds = Ext.getCmp("gene-chooser-panel").getGeneIds(); GeneSetController.updateGeneGroup(rec.data.id, rec.data.description, geneIds, { callback : function(d) { Ext.getCmp('gene-chooser-panel').currentGroupId = null; refreshGeneGroupData(); loadMask.hide() }, errorHandler : function(e) { Ext.Msg.alert('Sorry', e); } }); } } }, { tooltip : "Refresh from the database", icon : "/Gemma/images/icons/arrow_refresh_small.png", handler : function() { refreshGeneGroupData(); } }, { tooltip : "Show/hide public data", id : "geneGroupData-show-public", enableToggle : true, icon : "/Gemma/images/icons/world_add.png", handler : function() { refreshGeneGroupData(); } }, { icon : "/Gemma/images/icons/group_delete.png", tooltip : "Delete a group", handler : function() {deleteGeneGroup();} }] }, items : [this.geneGroupPanel, this.geneChooserPanel] }); Gemma.GeneGroupImporter.superclass.initComponent.call(this); this.geneGroupPanel.on("keypress", function(e) { if (e.getCharCode() == Ext.EventObject.DELETE) { deleteGeneGroup(); } }, this); refreshGeneGroupData(); }
this.getStore().load({ params : [this.geneid] }); }
initComponent : function() { this.geneChooserPanel = new Gemma.GeneGrid({ region : 'east', id : 'gene-chooser-panel' }); this.geneGroupPanel = new Gemma.GeneGroupPanel({ id : 'gene-group-panel', region : 'center' }); Ext.apply(this.geneChooserPanel.getTopToolbar().taxonCombo, { stateId : "", stateful : false, stateEvents : [] }); Ext.apply(this, { layout : 'border', // width : "100%", height : 400, title : "Gene Group Manager", tbar : { items : [{ tooltip : "Create New Group", icon : "/Gemma/images/icons/group_add.png", id : 'geneimportgroup-save-btn', handler : function(b, e) { Ext.Msg.prompt('New Group', 'Please enter the group name:', function(btn, text) { if (btn == 'ok') { GeneSetController.createGeneGroup(text, [], { callback : function(groupId) { var genePanel = Ext .getCmp('gene-chooser-panel'); genePanel.currentGroupId = null; genePanel.loadGenes([]); refreshGeneGroupData(groupId); genePanel.getTopToolbar().geneCombo.focus(); }, errorHandler : function(e) { Ext.Msg.alert('Sorry', e); } }); } }); } }, { tooltip : "Save changes", icon : "/Gemma/images/icons/database_save.png", id : 'manager-data-panel-save-btn', handler : function(b, e) { var rec = Ext.getCmp("gene-group-panel").getSelectionModel().getSelected(); if (rec) { // update description field if necessary // console.log(rec.data.description); // Update the genes incase they changed also. Can // only update the genes for 1 list. var loadMask = new Ext.LoadMask(Ext.getCmp("gene-group-panel").getEl(), { msg : "Saving changes..." }); loadMask.show(); var geneIds = Ext.getCmp("gene-chooser-panel").getGeneIds(); GeneSetController.updateGeneGroup(rec.data.id, rec.data.description, geneIds, { callback : function(d) { // so that system doesn't ask to save again Ext.getCmp('gene-chooser-panel').currentGroupId = null; refreshGeneGroupData(); loadMask.hide() }, errorHandler : function(e) { Ext.Msg.alert('Sorry', e); } }); } } }, { tooltip : "Refresh from the database", icon : "/Gemma/images/icons/arrow_refresh_small.png", handler : function() { refreshGeneGroupData(); } }, { tooltip : "Show/hide public data", id : "geneGroupData-show-public", enableToggle : true, icon : "/Gemma/images/icons/world_add.png", handler : function() { refreshGeneGroupData(); } }, { icon : "/Gemma/images/icons/group_delete.png", tooltip : "Delete a group", handler : function() {deleteGeneGroup();} }] },// toolbar items : [this.geneGroupPanel, this.geneChooserPanel] }); Gemma.GeneGroupImporter.superclass.initComponent.call(this); this.geneGroupPanel.on("keypress", function(e) { if (e.getCharCode() == Ext.EventObject.DELETE) { deleteGeneGroup(); } }, this); refreshGeneGroupData(); }
var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record),
this.geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo",
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
fn : function(e, selectedGeneGroup) {
fn : function(combo, record, index) {
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..."
var loadMask = new Ext.LoadMask(this.getEl(), { msg : "Loading Genes for " + record.get('name') + " ..."
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); });
this.loadGenes(record.get('geneIds'), function() { loadMask.hide(); });
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })]
extraButtons : [this.geneGroupCombo, { xtype : 'tbfill' }, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })]
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
this.on('ready', function(taxon) {
this.on('ready', function() {
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
* taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it....
* Taxon is passed in during construction.
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon);
var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon.commonName);
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
this.geneGroupCombo.taxon = this.taxon;
initComponent : function() { // has to be done after constructor is done creating the handler... var geneGroupCombo = new Gemma.GeneGroupCombo({ id : "visGeneGroupCombo", reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), listeners : { 'select' : { fn : function(e, selectedGeneGroup) { if (!selectedGeneGroup.data){ return; } var loadMask = new Ext.LoadMask(Ext.getCmp("eedvwId").getEl(), { msg : "Loading Genes..." }); loadMask.show(); this.loadGenes(selectedGeneGroup.data.geneIds, function() { loadMask.hide(); }); }, scope : this } } }); Ext.apply(this, { extraButtons : [geneGroupCombo, new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. Set taxon, hide taxon combo and disable it.... */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.getTopToolbar().taxonCombo.hide(); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
data : [['CommentedEvent', 'Comment'], ['TroubleStatusFlagEvent', 'Trouble flag'], ['OKStatusFlagEvent', 'OK flag (clear Trouble flag)'], ['ValidatedFlagEvent', 'Validated flag']]
data : [['CommentedEvent', 'Comment'], ['TroubleStatusFlagEvent', 'Other (generic) Trouble'], ['ExperimentalDesignTrouble', 'Experimental Design Trouble'], ['OutlierSampleTrouble', 'Outlier sample'], ['OKStatusFlagEvent', 'OK flag (clear Trouble)'], ['ValidatedFlagEvent', 'Validated flag'], ['ValidatedQualityControl', 'QC validated'], ['ValidatedAnnotations', 'Tags validated'], ['ValidatedExperimentalDesign', 'Experimental design validated']]
initComponent : function() { this.auditEventTypeStore = new Ext.data.SimpleStore({ fields : ['type', 'description'], data : [['CommentedEvent', 'Comment'], ['TroubleStatusFlagEvent', 'Trouble flag'], ['OKStatusFlagEvent', 'OK flag (clear Trouble flag)'], ['ValidatedFlagEvent', 'Validated flag']] }); this.auditEventTypeCombo = new Ext.form.ComboBox({ fieldLabel : 'Event type', store : this.auditEventTypeStore, displayField : 'description', valueField : 'type', typeAhead : true, mode : 'local', allowBlank : false, triggerAction : 'all', emptyText : 'Select an event type', editable : false, width : 180 }); this.auditEventCommentField = new Ext.form.TextField({ fieldLabel : 'Comment', width : 400, allowBlank : true }); this.auditEventDetailField = new Ext.form.TextArea({ fieldLabel : 'Details', height : 200, width : 400, allowBlank : true }); this.fs = new Ext.form.FieldSet({ items : [this.auditEventTypeCombo, this.auditEventCommentField, this.auditEventDetailField] }); Ext.apply(this, { items : [this.fs], buttons : [{ text : 'Add Event', handler : function() { if (this.validate()) { this.hide(); this.fireEvent('commit', { comment : this.auditEventCommentField.getValue(), type : this.auditEventTypeCombo.getValue(), details : this.auditEventDetailField.getValue() }); } else { Ext.Msg.alert("Error", "You must fill in the required fields"); } }.createDelegate(this), scope : this }, { text : 'Cancel', handler : this.hide.createDelegate(this) }] }); Gemma.AddAuditEventDialog.superclass.initComponent.call(this); this.addEvents('commit'); }
extraButtons : [new Ext.Button({
extraButtons : [geneGroupCombo, new Ext.Button({
initComponent : function() { // has to be done after constructor is done creating the handler... Ext.apply(this, { extraButtons : [new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
* use getToolbar() at this point.
* use getToolbar() at this point. Set taxon, hide taxon combo and disable it....
initComponent : function() { // has to be done after constructor is done creating the handler... Ext.apply(this, { extraButtons : [new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
this.getTopToolbar().taxonCombo.hide();
initComponent : function() { // has to be done after constructor is done creating the handler... Ext.apply(this, { extraButtons : [new Ext.Button({ id : this.vizButtonId, text : "Show", tooltip : "Click to display data for selected genes, or a 'random' selection of data from this experiment", handler : this.showButHandler, scope : this })] }); Gemma.EEDetailsVisualizationWidget.superclass.initComponent.call(this); this.on('ready', function(taxon) { /* * taxon is the one filled in by staterestore; we need to enforce that we pick an exact taxon. Cant * use getToolbar() at this point. */ var foundTaxon = this.getTopToolbar().taxonCombo.setTaxonByCommonName(this.taxon); this.taxonChanged(foundTaxon, false); this.getTopToolbar().taxonCombo.disable(false); }); },
this.writeMethod(characteristic, [this.entId], callback);
this.writeMethod(characteristic, this.entId, callback);
initComponent : function() { Ext.apply(this, { columns : [{ header : "Category", dataIndex : "className" }, { header : "Term", dataIndex : "termName", renderer : this.termStyler.createDelegate(this) }, { header : "Annotation belongs to:", dataIndex : "parentLink", renderer : this.parentStyler.createDelegate(this), hidden : this.showParent ? false : true }, { header : "Evidence", dataIndex : "evidenceCode" }] }); if (this.pageSize) { Ext.apply(this, { store : new Gemma.PagingDataStore({ proxy : new Ext.data.DWRProxy(this.readMethod), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), pageSize : this.pageSize }) }); Ext.apply(this, { bbar : new Ext.PagingToolbar({ pageSize : this.pageSize, store : this.getStore() }) }); } else { Ext.apply(this, { store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(this.readMethod), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record) }) }); } if (this.editable && this.useDefaultToolbar) { Ext.apply(this, { tbar : new Gemma.AnnotationToolBar({ annotationGrid : this, createHandler : function(characteristic, callback) { this.writeMethod(characteristic, [this.entId], callback); }.createDelegate(this), deleteHandler : function(ids, callback) { this.removeMethod(ids, [this.entId], callback); }.createDelegate(this), mgedTermKey : "experiment", taxonId : this.taxonId }) }); } Gemma.AnnotationGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('className'); // this.relayEvents(this.getStore(), ["loadexception"]); this.autoExpandColumn = this.showParent ? 2 : 1; this.getColumnModel().defaultSortable = true; if (this.editable) { /* * Display all the edit functions. */ var CATEGORY_COLUMN = 0; var VALUE_COLUMN = 1; var PARENT_COLUMN = 2; var EVIDENCE_COLUMN = 3; // Category setup this.categoryCombo = new Gemma.MGEDCombo({ lazyRender : true, termKey : this.mgedTermKey }); var categoryEditor = new Ext.grid.GridEditor(this.categoryCombo); this.categoryCombo.on("select", function(combo, record, index) { categoryEditor.completeEdit(); }); this.getColumnModel().setEditor(CATEGORY_COLUMN, categoryEditor); // Value setup this.valueCombo = new Gemma.CharacteristicCombo({ taxonId : this.taxonId }); var valueEditor = new Ext.grid.GridEditor(this.valueCombo); this.valueCombo.on("select", function(combo, record, index) { valueEditor.completeEdit(); }); this.getColumnModel().setEditor(VALUE_COLUMN, valueEditor); // Evidence setup this.evidenceCombo = new Gemma.EvidenceCodeCombo({ lazyRender : true }); var evidenceEditor = new Ext.grid.GridEditor(this.evidenceCombo); this.evidenceCombo.on("select", function(combo, record, index) { evidenceEditor.completeEdit(); }); this.getColumnModel().setEditor(EVIDENCE_COLUMN, evidenceEditor); this.on("beforeedit", function(e) { var row = e.record.data; var col = this.getColumnModel().getColumnId(e.column); if (col == VALUE_COLUMN) { this.valueCombo.setCategory.call(this.valueCombo, row.className, row.classUri); } }); if (this.getTopToolbar().deleteButton) { this.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.getTopToolbar().deleteButton.enable(); } else { this.getTopToolbar().deleteButton.disable(); } }, this); } this.on("afteredit", function(e) { var col = this.getColumnModel().getColumnId(e.column); if (col == CATEGORY_COLUMN) { var term = this.categoryCombo.getTerm.call(this.categoryCombo); e.record.set("className", term.term); e.record.set("classUri", term.uri); } else if (col == VALUE_COLUMN) { var c = this.valueCombo.getCharacteristic.call(this.valueCombo); e.record.set("termName", c.value); e.record.set("termUri", c.valueUri); } else if (col == EVIDENCE_COLUMN) { var c = this.evidenceCombo.getCode.call(this.evidenceCombo); e.record.set("evidenceCode", c.code); } this.getView().refresh(); }); } this.on("celldblclick", function(grid, rowIndex, cellIndex) { var record = grid.getStore().getAt(rowIndex); var column = grid.getColumnModel().getColumnId(cellIndex); if (column == PARENT_COLUMN) { record.expanded = record.expanded ? 0 : 1; grid.getView().refresh(true); } }, this); if (!this.noInitialLoad) { this.getStore().load({ params : this.getReadParams() }); } },
this.removeMethod(ids, [this.entId], callback);
this.removeMethod(ids, this.entId, callback);
initComponent : function() { Ext.apply(this, { columns : [{ header : "Category", dataIndex : "className" }, { header : "Term", dataIndex : "termName", renderer : this.termStyler.createDelegate(this) }, { header : "Annotation belongs to:", dataIndex : "parentLink", renderer : this.parentStyler.createDelegate(this), hidden : this.showParent ? false : true }, { header : "Evidence", dataIndex : "evidenceCode" }] }); if (this.pageSize) { Ext.apply(this, { store : new Gemma.PagingDataStore({ proxy : new Ext.data.DWRProxy(this.readMethod), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), pageSize : this.pageSize }) }); Ext.apply(this, { bbar : new Ext.PagingToolbar({ pageSize : this.pageSize, store : this.getStore() }) }); } else { Ext.apply(this, { store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(this.readMethod), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record) }) }); } if (this.editable && this.useDefaultToolbar) { Ext.apply(this, { tbar : new Gemma.AnnotationToolBar({ annotationGrid : this, createHandler : function(characteristic, callback) { this.writeMethod(characteristic, [this.entId], callback); }.createDelegate(this), deleteHandler : function(ids, callback) { this.removeMethod(ids, [this.entId], callback); }.createDelegate(this), mgedTermKey : "experiment", taxonId : this.taxonId }) }); } Gemma.AnnotationGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('className'); // this.relayEvents(this.getStore(), ["loadexception"]); this.autoExpandColumn = this.showParent ? 2 : 1; this.getColumnModel().defaultSortable = true; if (this.editable) { /* * Display all the edit functions. */ var CATEGORY_COLUMN = 0; var VALUE_COLUMN = 1; var PARENT_COLUMN = 2; var EVIDENCE_COLUMN = 3; // Category setup this.categoryCombo = new Gemma.MGEDCombo({ lazyRender : true, termKey : this.mgedTermKey }); var categoryEditor = new Ext.grid.GridEditor(this.categoryCombo); this.categoryCombo.on("select", function(combo, record, index) { categoryEditor.completeEdit(); }); this.getColumnModel().setEditor(CATEGORY_COLUMN, categoryEditor); // Value setup this.valueCombo = new Gemma.CharacteristicCombo({ taxonId : this.taxonId }); var valueEditor = new Ext.grid.GridEditor(this.valueCombo); this.valueCombo.on("select", function(combo, record, index) { valueEditor.completeEdit(); }); this.getColumnModel().setEditor(VALUE_COLUMN, valueEditor); // Evidence setup this.evidenceCombo = new Gemma.EvidenceCodeCombo({ lazyRender : true }); var evidenceEditor = new Ext.grid.GridEditor(this.evidenceCombo); this.evidenceCombo.on("select", function(combo, record, index) { evidenceEditor.completeEdit(); }); this.getColumnModel().setEditor(EVIDENCE_COLUMN, evidenceEditor); this.on("beforeedit", function(e) { var row = e.record.data; var col = this.getColumnModel().getColumnId(e.column); if (col == VALUE_COLUMN) { this.valueCombo.setCategory.call(this.valueCombo, row.className, row.classUri); } }); if (this.getTopToolbar().deleteButton) { this.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.getTopToolbar().deleteButton.enable(); } else { this.getTopToolbar().deleteButton.disable(); } }, this); } this.on("afteredit", function(e) { var col = this.getColumnModel().getColumnId(e.column); if (col == CATEGORY_COLUMN) { var term = this.categoryCombo.getTerm.call(this.categoryCombo); e.record.set("className", term.term); e.record.set("classUri", term.uri); } else if (col == VALUE_COLUMN) { var c = this.valueCombo.getCharacteristic.call(this.valueCombo); e.record.set("termName", c.value); e.record.set("termUri", c.valueUri); } else if (col == EVIDENCE_COLUMN) { var c = this.evidenceCombo.getCode.call(this.evidenceCombo); e.record.set("evidenceCode", c.code); } this.getView().refresh(); }); } this.on("celldblclick", function(grid, rowIndex, cellIndex) { var record = grid.getStore().getAt(rowIndex); var column = grid.getColumnModel().getColumnId(cellIndex); if (column == PARENT_COLUMN) { record.expanded = record.expanded ? 0 : 1; grid.getView().refresh(true); } }, this); if (!this.noInitialLoad) { this.getStore().load({ params : this.getReadParams() }); } },
columns : [{ header : 'Name', dataIndex : 'name', editable : false, groupable : false, sortable : true }, { header : 'Description', dataIndex : 'description', editable : false, groupable : false, sortable : true }, { header : 'Owner', hidden : true, tooltip : 'Who owns the data', dataIndex : 'owner', groupable : true, sortable : true }, { header : 'size', sortable : true, dataIndex : 'size', editable : false, groupable : false, tooltip : 'number of genes in group' }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByGene), reader : new Ext.data.ListRangeReader({}, Ext.data.Record .create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "owner" }, { name : "size", type : "int" }])) }) });
store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(this.readMethod), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record) }) });
initComponent : function() { Ext.apply(this, { columns : [{ header : 'Name', dataIndex : 'name', editable : false, groupable : false, sortable : true }, { header : 'Description', dataIndex : 'description', editable : false, groupable : false, sortable : true }, { header : 'Owner', hidden : true, tooltip : 'Who owns the data', dataIndex : 'owner', groupable : true, sortable : true }, { header : 'size', sortable : true, dataIndex : 'size', editable : false, groupable : false, tooltip : 'number of genes in group' }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByGene), reader : new Ext.data.ListRangeReader({}, Ext.data.Record .create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "owner" }, { name : "size", type : "int" }])) }) }); Gemma.GeneGroupGrid.superclass.initComponent.call(this); this.getStore().load({ params : [this.geneid] }); }
Gemma.GeneGroupGrid.superclass.initComponent.call(this);
Gemma.GeneGroupDataView.superclass.initComponent.call(this);
initComponent : function() { Ext.apply(this, { columns : [{ header : 'Name', dataIndex : 'name', editable : false, groupable : false, sortable : true }, { header : 'Description', dataIndex : 'description', editable : false, groupable : false, sortable : true }, { header : 'Owner', hidden : true, tooltip : 'Who owns the data', dataIndex : 'owner', groupable : true, sortable : true }, { header : 'size', sortable : true, dataIndex : 'size', editable : false, groupable : false, tooltip : 'number of genes in group' }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByGene), reader : new Ext.data.ListRangeReader({}, Ext.data.Record .create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "owner" }, { name : "size", type : "int" }])) }) }); Gemma.GeneGroupGrid.superclass.initComponent.call(this); this.getStore().load({ params : [this.geneid] }); }
this.getStore().load({ params : [this.geneid]
this.store.load({ params : this.getReadParams()
initComponent : function() { Ext.apply(this, { columns : [{ header : 'Name', dataIndex : 'name', editable : false, groupable : false, sortable : true }, { header : 'Description', dataIndex : 'description', editable : false, groupable : false, sortable : true }, { header : 'Owner', hidden : true, tooltip : 'Who owns the data', dataIndex : 'owner', groupable : true, sortable : true }, { header : 'size', sortable : true, dataIndex : 'size', editable : false, groupable : false, tooltip : 'number of genes in group' }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByGene), reader : new Ext.data.ListRangeReader({}, Ext.data.Record .create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "owner" }, { name : "size", type : "int" }])) }) }); Gemma.GeneGroupGrid.superclass.initComponent.call(this); this.getStore().load({ params : [this.geneid] }); }
annotationGrid : this,
annotationGrid : this, showValidateButton : true, isValidated : this.entityAnnotsAreValidated,
initComponent : function() { Ext.apply(this, { columns : [{ header : "Category", dataIndex : "className", sortable : true }, { header : "Term", dataIndex : "termName", renderer : this.termStyler.createDelegate(this), sortable : true }, { header : "Annotation belongs to:", dataIndex : "parentLink", renderer : this.parentStyler.createDelegate(this), tooltip : "The 'owner' of this annotation. May be hidden due to security.", hidden : this.showParent ? false : true, sortable : false }, { header : "Evidence", dataIndex : "evidenceCode", sortable : true }] }); if (this.store == null) { Ext.apply(this, { store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(this.readMethod), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record) }) }); } if (this.editable && this.useDefaultToolbar) { Ext.apply(this, { tbar : new Gemma.AnnotationToolBar({ annotationGrid : this, createHandler : function(characteristic, callback) { this.writeMethod(characteristic, this.entId, callback); }.createDelegate(this), deleteHandler : function(ids, callback) { this.removeMethod(ids, this.entId, callback); }.createDelegate(this), mgedTermKey : "experiment", taxonId : this.taxonId }) }); } // Gemma.AnnotationGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('className'); this.loadMask.store = this.getStore(); this.autoExpandColumn = this.showParent ? 2 : 1; this.getColumnModel().defaultSortable = true; if (this.editable) { /* * Display all the edit functions. */ var CATEGORY_COLUMN = 0; var VALUE_COLUMN = 1; var PARENT_COLUMN = 2; var EVIDENCE_COLUMN = 3; // Category setup this.categoryCombo = new Gemma.MGEDCombo({ lazyRender : true, termKey : this.mgedTermKey }); var categoryEditor = new Ext.grid.GridEditor(this.categoryCombo); this.categoryCombo.on("select", function(combo, record, index) { categoryEditor.completeEdit(); }); this.getColumnModel().setEditor(CATEGORY_COLUMN, categoryEditor); // Value setup this.valueCombo = new Gemma.CharacteristicCombo({ taxonId : this.taxonId }); var valueEditor = new Ext.grid.GridEditor(this.valueCombo); this.valueCombo.on("select", function(combo, record, index) { valueEditor.completeEdit(); }); this.getColumnModel().setEditor(VALUE_COLUMN, valueEditor); // Evidence setup this.evidenceCombo = new Gemma.EvidenceCodeCombo({ lazyRender : true }); var evidenceEditor = new Ext.grid.GridEditor(this.evidenceCombo); this.evidenceCombo.on("select", function(combo, record, index) { evidenceEditor.completeEdit(); }); this.getColumnModel().setEditor(EVIDENCE_COLUMN, evidenceEditor); this.on("beforeedit", function(e) { var row = e.record.data; var col = this.getColumnModel().getColumnId(e.column); if (col == VALUE_COLUMN) { this.valueCombo.setCategory.call(this.valueCombo, row.className, row.classUri); } }); if (this.getTopToolbar().deleteButton) { this.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.getTopToolbar().deleteButton.enable(); } else { this.getTopToolbar().deleteButton.disable(); } }, this); } this.on("afteredit", function(e) { var col = this.getColumnModel().getColumnId(e.column); if (col == CATEGORY_COLUMN) { var term = this.categoryCombo.getTerm.call(this.categoryCombo); e.record.set("className", term.term); e.record.set("classUri", term.uri); } else if (col == VALUE_COLUMN) { var c = this.valueCombo.getCharacteristic.call(this.valueCombo); e.record.set("termName", c.value); e.record.set("termUri", c.valueUri); } else if (col == EVIDENCE_COLUMN) { var c = this.evidenceCombo.getCode.call(this.evidenceCombo); e.record.set("evidenceCode", c.code); } this.getView().refresh(); }); } this.on("celldblclick", function(grid, rowIndex, cellIndex) { var record = grid.getStore().getAt(rowIndex); var column = grid.getColumnModel().getColumnId(cellIndex); if (column == PARENT_COLUMN) { record.expanded = record.expanded ? 0 : 1; grid.getView().refresh(true); } }, this); if (!this.noInitialLoad) { this.getStore().load({ params : this.getReadParams() }); } },
handler : this.hide.createDelegate(this, [], true)
handler : this.hide, scope : this
initComponent : function() { this.addEvents({ "commit" : true }); Ext.apply(this, { items : [{ id : 'gene-list-text', xtype : 'textarea', fieldLabel : "Paste in gene symbols, one per line, up to " + Gemma.MAX_GENES_PER_QUERY, width : 290 }], buttons : [{ text : 'Cancel', handler : this.hide.createDelegate(this, [], true) }, { text : 'OK', handler : this.onCommit, scope : this }, { text : 'Clear', handler : function() { Ext.getCmp('gene-list-text').setValue(""); } }] }); Gemma.GeneImportPanel.superclass.initComponent.call(this); }
Ext.apply(this, { columns : [{ header : "Name", dataIndex : "name" }, { header : "Type", dataIndex : "type" }, { header : "Description", dataIndex : "description" }],
Ext.apply(this, { columns : [{ header : 'Name', dataIndex : 'name', editable : false, groupable : false, sortable : true }, { header : 'Description', dataIndex : 'description', editable : false, groupable : false, sortable : true }, { header : 'Owner', hidden : true, tooltip : 'Who owns the data', dataIndex : 'owner', groupable : true, sortable : true }, { header : 'size', sortable : true, dataIndex : 'size', editable : false, groupable : false, tooltip : 'number of genes in group' }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneSetController.findGeneSetsByGene), reader : new Ext.data.ListRangeReader({}, Ext.data.Record .create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "owner" }, { name : "size", type : "int" }])) }) });
initComponent : function() { Ext.apply(this, { columns : [{ header : "Name", dataIndex : "name" }, { header : "Type", dataIndex : "type" }, { header : "Description", dataIndex : "description" }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneController.getProducts), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), remoteSort : false }) }); Gemma.GeneProductGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('type', 'name'); this.getStore().load({ params : [this.geneid] }); }
store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneController.getProducts), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), remoteSort : false }) });
Gemma.GeneGroupGrid.superclass.initComponent.call(this);
initComponent : function() { Ext.apply(this, { columns : [{ header : "Name", dataIndex : "name" }, { header : "Type", dataIndex : "type" }, { header : "Description", dataIndex : "description" }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneController.getProducts), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), remoteSort : false }) }); Gemma.GeneProductGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('type', 'name'); this.getStore().load({ params : [this.geneid] }); }
Gemma.GeneProductGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('type', 'name'); this.getStore().load({ params : [this.geneid] }); }
this.getStore().load({ params : [this.geneid] }); }
initComponent : function() { Ext.apply(this, { columns : [{ header : "Name", dataIndex : "name" }, { header : "Type", dataIndex : "type" }, { header : "Description", dataIndex : "description" }], store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(GeneController.getProducts), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), remoteSort : false }) }); Gemma.GeneProductGrid.superclass.initComponent.call(this); this.getStore().setDefaultSort('type', 'name'); this.getStore().load({ params : [this.geneid] }); }
combo.setValue(record.data.value);
combo.setValue(record.data.value + ".");
initComponent : function() { Ext.apply(this, { record : Ext.data.Record.create([{ name : "id", type : "int" }, { name : "value", type : "string" }, { name : "valueUri", type : "string" }, { name : "categoryUri", type : "string" }, { name : "category", type : "string" }, { name : "hover", mapping : "this", convert : this.getHover.createDelegate(this) }, { name : "style", mapping : "this", convert : this.getStyle.createDelegate(this) }]) }); Ext.apply(this, { store : new Ext.data.Store({ proxy : new Ext.data.DWRProxy(OntologyService.findExactTerm), reader : new Ext.data.ListRangeReader({ id : "id" }, this.record), remoteSort : true }) }); Gemma.CharacteristicCombo.superclass.initComponent.call(this); this.tpl = new Ext.XTemplate('<tpl for="."><div ext:qtip="{hover}" style="font-size:11px" class="x-combo-list-item {style}">{value}</div></tpl>'); this.tpl.compile(); this.characteristic = { category : null, categoryUri : null, value : null, valueUri : null }; this.on("select", function(combo, record, index) { this.characteristic.value = record.data.value; this.characteristic.valueUri = record.data.valueUri; combo.setValue(record.data.value); }); },