Pman.Dialog.AdminEnumImages.bjs
authorChris <chris@roojs.com>
Thu, 4 Jul 2013 10:46:25 +0000 (18:46 +0800)
committerChris <chris@roojs.com>
Thu, 4 Jul 2013 10:46:25 +0000 (18:46 +0800)
Pman.Dialog.AdminEnumImages.js

Pman.Dialog.AdminEnumImages.bjs
Pman.Dialog.AdminEnumImages.js

index ac11dd6..992a1a4 100644 (file)
                                     "header": "Details",
                                     "width": 100,
                                     "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n     var surl = r.json.url.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n     var svurl = r.json.url_view.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n      return String.format(\n          'Download Url : <a href=\"http://{0}{1}\" target=\"_new\">http://{0}{1}</a>' + \n          '<br/>View Url : <a href=\"http://{0}{2}\" target=\"_new\">http://{0}{2}</a>' + \n          '<br/><b>{3}</b><br/>{4}</i>', \n          window.location.host, surl, svurl,\n           v, r.json.descript); \n     \n    }",
+                                    "|renderer": "function(v,x,r) {\n//     var surl = r.json.url.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n  //   var svurl = r.json.url_view.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n    //  return String.format(\n      //    'Download Url : <a href=\"http://{0}{1}\" target=\"_new\">http://{0}{1}</a>' + \n        //  '<br/>View Url : <a href=\"http://{0}{2}\" target=\"_new\">http://{0}{2}</a>' + \n          //'<br/><b>{3}</b><br/>{4}</i>', \n         // window.location.host, surl, svurl,\n          // v, r.json.descript); \n     \n    }",
                                     "|xns": "Roo.grid"
                                 }
                             ]
index 2429f34..b7b6069 100644 (file)
@@ -291,14 +291,14 @@ Pman.Dialog.AdminEnumImages = {
                                 header : 'Details',
                                 width : 100,
                                 renderer : function(v,x,r) {
-                                     var surl = r.json.url.replace(/\/release.php\/Images\//, '/i/').replace(/\/([0-9]+)\/.*$/, '/$1');;
-                                     var svurl = r.json.url_view.replace(/\/release.php\/Images\//, '/i/').replace(/\/([0-9]+)\/.*$/, '/$1');;
-                                      return String.format(
-                                          'Download Url : <a href="http://{0}{1}" target="_new">http://{0}{1}</a>' + 
-                                          '<br/>View Url : <a href="http://{0}{2}" target="_new">http://{0}{2}</a>' + 
-                                          '<br/><b>{3}</b><br/>{4}</i>', 
-                                          window.location.host, surl, svurl,
-                                           v, r.json.descript); 
+                                //     var surl = r.json.url.replace(/\/release.php\/Images\//, '/i/').replace(/\/([0-9]+)\/.*$/, '/$1');;
+                                  //   var svurl = r.json.url_view.replace(/\/release.php\/Images\//, '/i/').replace(/\/([0-9]+)\/.*$/, '/$1');;
+                                    //  return String.format(
+                                      //    'Download Url : <a href="http://{0}{1}" target="_new">http://{0}{1}</a>' + 
+                                        //  '<br/>View Url : <a href="http://{0}{2}" target="_new">http://{0}{2}</a>' + 
+                                          //'<br/><b>{3}</b><br/>{4}</i>', 
+                                         // window.location.host, surl, svurl,
+                                          // v, r.json.descript); 
                                      
                                     }
                             }