Changeset 2329add
- Timestamp:
- 03/13/12 11:46:21 (15 months ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test
- Children:
- 0073410
- Parents:
- dd763818
- git-author:
- yomguy <yomguy@…> (03/13/12 11:46:21)
- git-committer:
- yomguy <yomguy@…> (03/13/12 11:46:21)
- File:
-
- 1 edited
-
telemeta/htdocs/js/playlist.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telemeta/htdocs/js/playlist.js
r461ebfc r2329add 93 93 return new String(d.getTime() + '' + Math.floor(Math.random() * 1000000)).substr(0, 18); 94 94 }, 95 95 96 add : function(dictionary){ 96 97 97 98 if(dictionary.public_id===undefined){ 98 dictionary.public_id = this.uniqid(); //defined in application.js99 dictionary.public_id = this.uniqid(); 99 100 } 100 101 if(dictionary.user===undefined){ … … 106 107 }); 107 108 }, 108 109 109 110 remove: function(id){ 110 111 json([id],'telemeta.del_playlist',function(){ … … 131 132 var dd = {}; 132 133 var playlist = this; 133 134 134 135 var playlists = this.playlists; 135 136 for (var i=0; i< playlists.length; i++){ … … 139 140 } 140 141 } 141 142 142 143 new PopupDiv({ 143 144 'content':dd, … … 157 158 }).show(); 158 159 }, 159 160 160 161 /*shows the popup for adding a resource to a playlist*/ 161 162 showAddResourceToPlaylist: function(anchorElement, resourceType, objectId, optionalOkMessage){ … … 166 167 } 167 168 var pl = this; 168 169 169 170 if(!ar.length){ 170 171 pl.showAdd(anchorElement); 171 172 } 172 173 173 174 //var addFcn = this.addResourceToPlaylist; 174 175 new PopupDiv({ … … 178 179 var val = data.selIndex; 179 180 var callbackok = undefined; 180 181 181 182 if(optionalOkMessage){ 182 183 callbackok = function(){
Note: See TracChangeset
for help on using the changeset viewer.
