← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9433: minor fix

 

------------------------------------------------------------
revno: 9433
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-01-03 23:53:12 +0100
message:
  minor fix
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm	2013-01-03 22:13:45 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDocumentForm.vm	2013-01-03 22:53:12 +0000
@@ -12,9 +12,6 @@
 }
 
 function saveSharingSettings( type, uid, data ) {
-    data.type = type;
-    data.id = uid;
-
     return $.ajax( {
         url: '../api/sharing?type=' + type + '&id=' + uid,
         type: 'POST',
@@ -32,6 +29,8 @@
             }
         } );
 
+        $( '#sharingName' ).val( data.object.name );
+
         $( '#sharingSettings' ).dialog( {
             modal: true,
             width: 480,
@@ -58,7 +57,7 @@
 <div id="sharingSettings" title="Sharing Settings" style="display: none;">
     <p>
         <label style="width: 100%;" for="sharingName">Name</label>
-        <input style="width: 100%;" id="sharingName" value="vg.no" disabled="disabled"/>
+        <input style="width: 100%;" id="sharingName" value="" disabled="disabled"/>
     
         <br />
         <br />