提交 ac7e2775 编写于 作者: K Kohsuke Kawaguchi

Avoid using now deprecated names

上级 39acb350
......@@ -44,7 +44,7 @@ import org.kohsuke.stapler.bind.JavaScriptMethod;
* (since it may be canceled if the user simply browses to another page while it is running).
* <ol>
* <li>Write a {@code <script>} section defining {@code function display(data)}.
* (Call {@code ts_refresh(document.getElementById('someid'))} if using a {@code sortable} table.)
* (Call {@code document.getElementById('someid').sortable.refresh()} if using a {@code sortable} table.)
* <li>Use {@code <l:progressiveRendering handler="${it.something()}" callback="display"/>} from your
* Jelly page to display a progress bar and initialize JavaScript infrastructure.
* (The callback attribute can take arbitrary JavaScript expression to be evaluated in the browser
......
......@@ -87,7 +87,7 @@ THE SOFTWARE.
}
r.appendChild(d);
ts_refresh(p);
p.sortable.refresh();
}
}
</script>
......
......@@ -582,7 +582,7 @@ var jenkinsRules = {
},
"TABLE.sortable" : function(e) {// sortable table
ts_makeSortable(e);
e.sortable = new Sortable.Sortable(e);
},
"TABLE.progress-bar" : function(e) { // progressBar.jelly
......
......@@ -49,7 +49,6 @@ var Sortable = (function() {
function Sortable(table) {
this.table = table;
this.arrows = [];
table.sortable = this;
var firstRow = this.getFirstRow();
if (!firstRow) return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册