Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

更新缩略图获取

  • Loading branch information...
commit c423beb4a789022584622e4f2a69c93128fde359 1 parent 6378eec
mouseshi authored
4 public/javascripts/PF/pages/settings_index.js
View
@@ -7,7 +7,7 @@ Pf.settings.homeIndex = {
grid.on('cellclick', function(grid, rowIndex){
var record = grid.store.getAt(rowIndex).data;
studentDetailFormPanel.getForm().setValues(record);
- $("#image img").attr("src",record["image/url"] );
+ $("#image img").attr("src",record["image/url(:thumb)"] );
});
var panel = new Ext.TabPanel({
@@ -91,7 +91,7 @@ Pf.settings.homeIndex = {
var new_record = Ext.getCmp("studentShowGrid").getSelectionModel().getSelected();
if(new_record)
{
- $("#image img").attr("src",new_record.data["image/url"] );
+ $("#image img").attr("src",new_record.data["image/url(:thumb)"] );
}
});
grid.store.reload();
2  public/javascripts/PF/pages/student.js
View
@@ -31,7 +31,7 @@ Pf.classes.student = Ext.extend(Ext.grid.EditorGridPanel,{
"phone",
"home",
"classes/name",
- "image/url",
+ "image/url(:thumb)",
],
root: 'root',
url: '/students/get_all_students.json',
Please sign in to comment.
Something went wrong with that request. Please try again.